mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ALSA: ump: Correct return size of fill_rpn()
The RPN/NRPN conversion in fill_rpn() is supposed to return the number
of bytes of the resultant UMP packet, but it returns boolean values.
This would result in the incorrect ump_bytes in the converter, which
will confuse stream processing. Correct to the right value 8 as a MIDI
2.0 UMP packet.
Fixes: e6ce8a28c7 ("ALSA: ump: Transmit RPN/NRPN message at each MSB/LSB data reception")
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20261015075439.50088-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
044d41b43e
commit
85e8c5f933
|
|
@ -323,7 +323,7 @@ static int fill_rpn(struct ump_cvt_to_ump_bank *cc,
|
|||
cc->cc_data_lsb);
|
||||
|
||||
reset_rpn(cc);
|
||||
return 1;
|
||||
return 8;
|
||||
}
|
||||
|
||||
/* convert to a MIDI 1.0 Channel Voice message */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user