It'd be convenient to have ioctls to inquiry the UMP Endpoint and UMP Block information directly via the control API without opening the rawmidi interface, just like SNDRV_CTL_IOCTL_RAWMIDI_INFO. This patch extends the rawmidi ioctl handler to support those; new ioctls, SNDRV_CTL_IOCTL_UMP_ENDPOINT_INFO and SNDRV_CTL_IOCTL_UMP_BLOCK_INFO, return the snd_ump_endpoint and snd_ump_block data that is specified by the device field, respectively.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -1178,6 +1178,8 @@ struct snd_ctl_tlv { · 1177 unmodified lines | ||
| 1178 | 1178 | #define SNDRV_CTL_IOCTL_RAWMIDI_INFO _IOWR('U', 0x41, struct snd_rawmidi_info) |
| 1179 | 1179 | #define SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE _IOW('U', 0x42, int) |
| 1180 | 1180 | #define SNDRV_CTL_IOCTL_UMP_NEXT_DEVICE _IOWR('U', 0x43, int) |
| 1181 | +#define SNDRV_CTL_IOCTL_UMP_ENDPOINT_INFO _IOWR('U', 0x44, struct snd_ump_endpoint_info) | |
| 1182 | +#define SNDRV_CTL_IOCTL_UMP_BLOCK_INFO _IOWR('U', 0x45, struct snd_ump_block_info) | |
| 1181 | 1183 | #define SNDRV_CTL_IOCTL_POWER _IOWR('U', 0xd0, int) |
| 1182 | 1184 | #define SNDRV_CTL_IOCTL_POWER_STATE _IOR('U', 0xd1, int) |
| 1183 | 1185 | |