]> git.alsa-project.org Git - alsa-lib.git/commitdiff
seq: Fix bogus return of snd_seq_client_info_get_ump_conversion()
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Feb 2025 11:06:09 +0000 (12:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Feb 2025 11:06:09 +0000 (12:06 +0100)
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

index d3af93f585797a3a22fbe0874bcb6d9732fbae00..38cb1afd872fa936692f45f88bf07ffbb748daa6 100644 (file)
@@ -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);
 }
 
 /**