summaryrefslogtreecommitdiff
path: root/include/sound/ump_convert.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-07-31 16:05:22 +0300
committerTakashi Iwai <tiwai@suse.de>2024-07-31 16:08:18 +0300
commite6ce8a28c768dbbad3f818db286cd0f4c7a921a8 (patch)
tree5321a62c931f77e77502d932f91e451bc3241a3c /include/sound/ump_convert.h
parent3dab73ab925a51ab05543b491bf17463a48ca323 (diff)
downloadlinux-e6ce8a28c768dbbad3f818db286cd0f4c7a921a8.tar.xz
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>
Diffstat (limited to 'include/sound/ump_convert.h')
-rw-r--r--include/sound/ump_convert.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/ump_convert.h b/include/sound/ump_convert.h
index 28c364c63245..d099ae27f849 100644
--- a/include/sound/ump_convert.h
+++ b/include/sound/ump_convert.h
@@ -13,6 +13,7 @@ struct ump_cvt_to_ump_bank {
unsigned char cc_nrpn_msb, cc_nrpn_lsb;
unsigned char cc_data_msb, cc_data_lsb;
unsigned char cc_bank_msb, cc_bank_lsb;
+ bool cc_data_msb_set, cc_data_lsb_set;
};
/* context for converting from MIDI1 byte stream to UMP packet */