linux-stable/sound/firewire/motu
Takashi Sakamoto cb1bcf5ed5 ALSA: firewire-motu: fix truncated bytes in message tracepoints
In MOTU protocol v2/v3, first two data chunks across 2nd and 3rd data
channels includes message bytes from device. The total size of message
is 48 bits per data block.

The 'data_block_message' tracepoints event produced by ALSA firewire-motu
driver exposes the sequence of messages to userspace in 64 bit storage,
however lower 32 bits are actually available since current implementation
truncates 16 bits in upper of the message as a result of bit shift
operation within 32 bit storage.

This commit fixes the bug by perform the bit shift in 64 bit storage.

Fixes: c6b0b9e65f ("ALSA: firewire-motu: add tracepoints for messages for unique protocol")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210920110734.27161-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-09-21 18:48:32 +02:00
..
amdtp-motu-trace.h ASoC: Updates for v5.3 2019-07-08 14:45:34 +02:00
amdtp-motu.c ALSA: firewire-motu: fix truncated bytes in message tracepoints 2021-09-21 18:48:32 +02:00
Makefile ALSA: firewire-motu: add support for MOTU 828 2021-06-17 11:37:08 +02:00
motu-hwdep.c ALSA: Convert strlcpy to strscpy when return value is unused 2021-01-08 09:30:05 +01:00
motu-midi.c ALSA: firewire-motu: share PCM buffer size for both direction 2019-10-18 04:35:51 +02:00
motu-pcm.c ALSA: firewire-motu: use table-based calculation of packet formats for proc 2020-05-22 16:52:16 +02:00
motu-proc.c ALSA: firewire-motu: use table-based calculation of packet formats for proc 2020-05-22 16:52:16 +02:00
motu-protocol-v1.c ALSA: firewire-motu: fix register handling for 896 2021-06-23 10:17:29 +02:00
motu-protocol-v2.c ALSA: firewire-motu: add support for MOTU 896HD 2021-08-23 10:58:40 +02:00
motu-protocol-v3.c ALSA: firewire-motu: use macro instead of magic number for clock source in v3 protocol 2021-06-23 10:17:27 +02:00
motu-stream.c ALSA: firewire-motu: fix error return code in snd_motu_stream_reserve_duplex() 2021-06-04 08:47:53 +02:00
motu-transaction.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 345 2019-06-05 17:37:08 +02:00
motu.c ALSA: firewire-motu: add support for MOTU 896HD 2021-08-23 10:58:40 +02:00
motu.h ALSA: firewire-motu: add support for MOTU 896HD 2021-08-23 10:58:40 +02:00