summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-11-27 10:00:58 +0300
committerTakashi Iwai <tiwai@suse.de>2024-11-27 10:10:09 +0300
commit7be34f6feedd60e418de1c2c48e661d70416635f (patch)
treefcfeb0e4761ba0aeff45ce744d174e9e6af84725 /rust/helpers/build_bug.c
parent9ad467a2b2716d4ed12f003b041aa6c776a13ff5 (diff)
downloadlinux-7be34f6feedd60e418de1c2c48e661d70416635f.tar.xz
ALSA: ump: Fix evaluation of MIDI 1.0 FB info
The m1.0 field of UMP Function Block info specifies whether the given FB is a MIDI 1.0 port or not. When implementing the UMP support on Linux, I somehow interpreted as if it were bit flags, but the field is actually an enumeration from 0 to 2, where 2 means MIDI 1.0 *and* low speed. This patch corrects the interpretation and sets the right bit flags depending on the m1.0 field of FB Info. This effectively fixes the missing detection of MIDI 1.0 FB when m1.0 is 2. Fixes: 37e0e14128e0 ("ALSA: ump: Support UMP Endpoint and Function Block parsing") Cc: <stable@vger.kernel.org> Link: https://patch.msgid.link/20241127070059.8099-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions