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
708708 * Raw MIDI section - /dev/snd/midi??
709709 */
710710
711−#define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 3)
711+#define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 4)
712712
713713 enum {
714714 SNDRV_RAWMIDI_STREAM_OUTPUT = 0,
@@ -797,7 +797,11 @@ struct snd_ump_endpoint_info { · 82 unmodified lines
797797 unsigned int protocol; /* current protocol */
798798 unsigned int num_blocks; /* # of function blocks */
799799 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;
801805 unsigned char name[128]; /* endpoint name string */
802806 unsigned char product_id[128]; /* unique product id string */
803807 unsigned char reserved[32];
@@ -812,6 +816,12 @@ struct snd_ump_endpoint_info { · 8 unmodified lines
812816 #define SNDRV_UMP_BLOCK_IS_MIDI1 (1U << 0) /* MIDI 1.0 port w/o restrict */
813817 #define SNDRV_UMP_BLOCK_IS_LOWSPEED (1U << 1) /* 31.25Kbps B/W MIDI1 port */
814818
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+
815825 /* UMP groups and blocks */
816826 #define SNDRV_UMP_MAX_GROUPS 16
817827 #define SNDRV_UMP_MAX_BLOCKS 32
@@ -825,7 +835,9 @@ struct snd_ump_block_info { · 7 unmodified lines
825835 unsigned char active; /* Activeness */
826836 unsigned char first_group; /* first group ID */
827837 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 */
829841 unsigned int flags; /* various info flags */
830842 unsigned char name[128]; /* block name string */
831843 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