]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ALSA: firewire-motu: fix construction of PCM frame for capture direction
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 26 Feb 2019 04:38:37 +0000 (13:38 +0900)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 20 Mar 2019 19:09:19 +0000 (14:09 -0500)
commitbba64cf4124d14fec737fb18db853309aebbe69c
treeaa521f34f4b579fac21da31c03e4555379f01f8e
parent04301a99ec81207a56694415c4ebb6d96d026756
ALSA: firewire-motu: fix construction of PCM frame for capture direction

BugLink: https://bugs.launchpad.net/bugs/1821074
commit f97a0944a72b26a2bece72516294e112a890f98a upstream.

In data blocks of common isochronous packet for MOTU devices, PCM
frames are multiplexed in a shape of '24 bit * 4 Audio Pack', described
in IEC 61883-6. The frames are not aligned to quadlet.

For capture PCM substream, ALSA firewire-motu driver constructs PCM
frames by reading data blocks byte-by-byte. However this operation
includes bug for lower byte of the PCM sample. This brings invalid
content of the PCM samples.

This commit fixes the bug.

Reported-by: Peter Sjöberg <autopeter@gmail.com>
Cc: <stable@vger.kernel.org> # v4.12+
Fixes: 4641c9394010 ("ALSA: firewire-motu: add MOTU specific protocol layer")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
sound/firewire/motu/amdtp-motu.c