Skip to content

Commit df8f1cc

Browse files
committed
seq: Fix bogus return of snd_seq_client_info_get_ump_conversion()
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: 2aefb5c ("seq: Add UMP support") Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent e550dcd commit df8f1cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/seq/seq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ int snd_seq_client_info_get_ump_groupless_enabled(const snd_seq_client_info_t *i
18701870
int snd_seq_client_info_get_ump_conversion(const snd_seq_client_info_t *info)
18711871
{
18721872
assert(info);
1873-
return info->midi_version;
1873+
return !(info->group_filter & SNDRV_SEQ_FILTER_NO_CONVERT);
18741874
}
18751875

18761876
/**

0 commit comments

Comments
 (0)