mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
ALSA: ump: Additional proc output
UMP devices may have more interesting information than the traditional rawmidi. Extend the rawmidi_global_ops to allow the optional proc info output and show some more bits in the proc file for UMP. Note that the "Groups" field shows the first and the last UMP Groups, and both numbers are 1-based (i.e. the first group is 1). Reviewed-by: Jaroslav Kysela <perex@perex.cz> Link: https://lore.kernel.org/r/20230523075358.9672-7-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#if IS_ENABLED(CONFIG_SND_SEQUENCER)
|
||||
#include <sound/seq_device.h>
|
||||
#endif
|
||||
#include <sound/info.h>
|
||||
|
||||
/*
|
||||
* Raw MIDI interface
|
||||
@@ -49,6 +50,8 @@ struct snd_rawmidi_global_ops {
|
||||
struct snd_seq_port_info *info);
|
||||
long (*ioctl)(struct snd_rawmidi *rmidi, unsigned int cmd,
|
||||
void __user *argp);
|
||||
void (*proc_read)(struct snd_info_entry *entry,
|
||||
struct snd_info_buffer *buf);
|
||||
};
|
||||
|
||||
struct snd_rawmidi_runtime {
|
||||
|
Reference in New Issue
Block a user