OSDN Git Service

ALSA: ump: Add ioctls to inquiry UMP EP and Block info via control API
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 07:53:26 +0000 (09:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 10:10:58 +0000 (12:10 +0200)
commit30fc139260d46e9bdc06e46eec91e9ff61eb387e
tree033bf2e43f50dafadc61f4076f972b465eed5b9a
parent127ae6f6dad2edb2201e27b7e6fa72994b537fad
ALSA: ump: Add ioctls to inquiry UMP EP and Block info via control API

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.

Suggested-by: Jaroslav Kysela <perex@perex.cz>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230523075358.9672-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/sound/asound.h
sound/core/rawmidi.c