diff mbox series

[alsa-lib] seq: Fix bogus return of snd_seq_client_info_get_ump_conversion()

Message ID 20250217110856.30760-1-tiwai@suse.de (mailing list archive)
State New
Headers show
Series [alsa-lib] seq: Fix bogus return of snd_seq_client_info_get_ump_conversion() | expand

Commit Message

Takashi Iwai Feb. 17, 2025, 11:08 a.m. UTC
snd_seq_client_info_get_ump_conversion() should have returned the
proper bit of group_filter bit field, but it just did return
midi_version field -- a stupid copy & paste error.  Let's fix it.

Fixes: 2aefb5c41cc0 ("seq: Add UMP support")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 src/seq/seq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/seq/seq.c b/src/seq/seq.c
index d3af93f58579..38cb1afd872f 100644
--- a/src/seq/seq.c
+++ b/src/seq/seq.c
@@ -1870,7 +1870,7 @@  int snd_seq_client_info_get_ump_groupless_enabled(const snd_seq_client_info_t *i
 int snd_seq_client_info_get_ump_conversion(const snd_seq_client_info_t *info)
 {
 	assert(info);
-	return info->midi_version;
+	return !(info->group_filter & SNDRV_SEQ_FILTER_NO_CONVERT);
 }
 
 /**