diff options
| author | Takashi Iwai <tiwai@suse.de> | 2025-01-10 16:59:34 +0100 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-01-12 13:12:20 +0100 |
| commit | bdf46443f350dd5d226fd528a5a5954ff762f591 (patch) | |
| tree | ae3e0c2b0c92a107b02f0f77237a2ab75259055f /include/sound | |
| parent | 7579790915387396e26041ceafbc07348658edef (diff) | |
| download | linux-next-bdf46443f350dd5d226fd528a5a5954ff762f591.tar.gz linux-next-bdf46443f350dd5d226fd528a5a5954ff762f591.zip | |
ALSA: rawmidi: Expose the tied device number in info ioctl
The UMP legacy rawmidi is derived from the UMP rawmidi, but currently
there is no way to know which device is involved in other side.
This patch extends the rawmidi info ioctl to show the tied device
number. As default it stores -1, indicating that no tied device.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250110155943.31578-2-tiwai@suse.de
Diffstat (limited to 'include/sound')
| -rw-r--r-- | include/sound/rawmidi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/rawmidi.h b/include/sound/rawmidi.h index f31cabf0158c..7f1fec786b72 100644 --- a/include/sound/rawmidi.h +++ b/include/sound/rawmidi.h @@ -118,6 +118,7 @@ struct snd_rawmidi { struct list_head list; unsigned int device; /* device number */ unsigned int info_flags; /* SNDRV_RAWMIDI_INFO_XXXX */ + unsigned int tied_device; char id[64]; char name[80]; |
