]> www.infradead.org Git - users/dwmw2/linux.git/commit
ALSA: ump: Transmit RPN/NRPN message at each MSB/LSB data reception
authorTakashi Iwai <tiwai@suse.de>
Wed, 31 Jul 2024 13:05:22 +0000 (15:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 31 Jul 2024 13:08:18 +0000 (15:08 +0200)
commite6ce8a28c768dbbad3f818db286cd0f4c7a921a8
tree5321a62c931f77e77502d932f91e451bc3241a3c
parent3dab73ab925a51ab05543b491bf17463a48ca323
ALSA: ump: Transmit RPN/NRPN message at each MSB/LSB data reception

The UMP 1.1 spec says that an RPN/NRPN should be sent when one of the
following occurs:
* a CC 38 is received
* a subsequent CC 6 is received
* a CC 98, 99, 100, and 101 is received, indicating the last RPN/NRPN
  message has ended and a new one has started

That said, we should send a partial data even if it's not fully
filled.  Let's change the UMP conversion helper code to follow that
rule.

Link: https://patch.msgid.link/20240731130528.12600-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/ump_convert.h
sound/core/ump_convert.c