History

ALSA: ump: Add more attributes to UMP EP and FB info

Add a few more fields to snd_ump_endpoint_info and snd_ump_block_info that are added in the new v1.1 spec. Those are filled by the UMP Stream messages. The rawmidi protocol version is bumped to 2.0.4 to indicate those updates. Also, update the proc outputs to show the newly introduced fields.

Takashi Iwai committed 3 years ago

Commit e375b8a1 parent 8c15a182 files · +48 −3Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/sound/asound.h+15−3
@@ -708,7 +708,7 @@ enum { · 707 unmodified lines
708 * Raw MIDI section - /dev/snd/midi??708 * Raw MIDI section - /dev/snd/midi??
709 */709 */
710 710
711#define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 3)711#define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 4)
712 712
713enum {713enum {
714 SNDRV_RAWMIDI_STREAM_OUTPUT = 0,714 SNDRV_RAWMIDI_STREAM_OUTPUT = 0,
@@ -797,7 +797,11 @@ struct snd_ump_endpoint_info { · 82 unmodified lines
797 unsigned int protocol; /* current protocol */797 unsigned int protocol; /* current protocol */
798 unsigned int num_blocks; /* # of function blocks */798 unsigned int num_blocks; /* # of function blocks */
799 unsigned short version; /* UMP major/minor version */799 unsigned short version; /* UMP major/minor version */
800 unsigned short padding[7];800 unsigned short family_id; /* MIDI device family ID */
801 unsigned short model_id; /* MIDI family model ID */
802 unsigned int manufacturer_id; /* MIDI manufacturer ID */
803 unsigned char sw_revision[4]; /* software revision */
804 unsigned short padding;
801 unsigned char name[128]; /* endpoint name string */805 unsigned char name[128]; /* endpoint name string */
802 unsigned char product_id[128]; /* unique product id string */806 unsigned char product_id[128]; /* unique product id string */
803 unsigned char reserved[32];807 unsigned char reserved[32];
@@ -812,6 +816,12 @@ struct snd_ump_endpoint_info { · 8 unmodified lines
812#define SNDRV_UMP_BLOCK_IS_MIDI1 (1U << 0) /* MIDI 1.0 port w/o restrict */816#define SNDRV_UMP_BLOCK_IS_MIDI1 (1U << 0) /* MIDI 1.0 port w/o restrict */
813#define SNDRV_UMP_BLOCK_IS_LOWSPEED (1U << 1) /* 31.25Kbps B/W MIDI1 port */817#define SNDRV_UMP_BLOCK_IS_LOWSPEED (1U << 1) /* 31.25Kbps B/W MIDI1 port */
814 818
819/* UMP block user-interface hint */
820#define SNDRV_UMP_BLOCK_UI_HINT_UNKNOWN 0x00
821#define SNDRV_UMP_BLOCK_UI_HINT_RECEIVER 0x01
822#define SNDRV_UMP_BLOCK_UI_HINT_SENDER 0x02
823#define SNDRV_UMP_BLOCK_UI_HINT_BOTH 0x03
824
815/* UMP groups and blocks */825/* UMP groups and blocks */
816#define SNDRV_UMP_MAX_GROUPS 16826#define SNDRV_UMP_MAX_GROUPS 16
817#define SNDRV_UMP_MAX_BLOCKS 32827#define SNDRV_UMP_MAX_BLOCKS 32
@@ -825,7 +835,9 @@ struct snd_ump_block_info { · 7 unmodified lines
825 unsigned char active; /* Activeness */835 unsigned char active; /* Activeness */
826 unsigned char first_group; /* first group ID */836 unsigned char first_group; /* first group ID */
827 unsigned char num_groups; /* number of groups */837 unsigned char num_groups; /* number of groups */
828 unsigned char padding[3];838 unsigned char midi_ci_version; /* MIDI-CI support version */
839 unsigned char sysex8_streams; /* max number of sysex8 streams */
840 unsigned char ui_hint; /* user interface hint */
829 unsigned int flags; /* various info flags */841 unsigned int flags; /* various info flags */
830 unsigned char name[128]; /* block name string */842 unsigned char name[128]; /* block name string */
831 unsigned char reserved[32];843 unsigned char reserved[32];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t