diff options
author | Takashi Iwai <tiwai@suse.de> | 2024-08-07 11:23:01 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-08-07 11:31:38 +0200 |
commit | b977831342ec131aea17831295db48450ada7202 (patch) | |
tree | 3bc0554ea46e21e83b3f72ea0e42c84c560ddce6 | |
parent | 8e3f30b8dc063ef323e535b21f0c6ac7b487ee5a (diff) |
ALSA: seq: Fix missing seq port info bit return for MIDI 1.0 block
The recent extension added a new ALSA sequencer port info flag bit
SNDRV_SEQ_PORT_FLG_IS_MIDI1, but it's not reported back when
inquired. Fix it to report properly.
Fixes: 0079c9d1e58a ("ALSA: ump: Handle MIDI 1.0 Function Block in MIDI 2.0 protocol")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240807092303.1935-7-tiwai@suse.de
-rw-r--r-- | sound/core/seq/seq_ports.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/core/seq/seq_ports.c b/sound/core/seq/seq_ports.c index 535290f24eed..cc2f8e846584 100644 --- a/sound/core/seq/seq_ports.c +++ b/sound/core/seq/seq_ports.c @@ -401,6 +401,9 @@ int snd_seq_get_port_info(struct snd_seq_client_port * port, info->time_queue = port->time_queue; } + if (port->is_midi1) + info->flags |= SNDRV_SEQ_PORT_FLG_IS_MIDI1; + /* UMP direction and group */ info->direction = port->direction; info->ump_group = port->ump_group; |