]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ALSA: seq: Add port direction to snd_seq_port_info
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 07:53:49 +0000 (09:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 10:11:25 +0000 (12:11 +0200)
commitff166a9d19fab3d77f50e9413df046fb1d7c01cc
tree83f10c67596229f116c898a0ee27622b16486cd6
parent177ccf811df4a893df339a72dc732bb26b66d055
ALSA: seq: Add port direction to snd_seq_port_info

Add a new field "direction" to snd_seq_port_info for allowing a client
to tell the expected direction of the port access.  A port might still
allow subscriptions for read/write (e.g. for MIDI-CI) even if the
primary usage of the port is a single direction (either input or
output only).  This new "direction" field can help to indicate such
cases.

When the direction is unspecified at creating a port and the port has
either read or write capability, the corresponding direction bits are
set automatically as default.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230523075358.9672-29-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/sound/asequencer.h
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_dummy.c
sound/core/seq/seq_midi.c
sound/core/seq/seq_ports.c
sound/core/seq/seq_ports.h
sound/core/seq/seq_virmidi.c