]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 2 Nov 2019 15:09:20 +0000 (00:09 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Dec 2019 15:58:54 +0000 (15:58 +0000)
commit5c5272d8e1cc6a8280e6d488e3cae1b0e845c5e5
treea69c12519484ec5b6cab7786f582d18c924c70ef
parentc1fb8e44ba97f8589b7fc5137e4b45561a27dcc5
ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire Pro i/o series

commit 706ad6746a66546daf96d4e4a95e46faf6cf689a upstream.

For Focusrite Saffire Pro i/o, the lowest 8 bits of register represents
configured source of sampling clock. The next lowest 8 bits represents
whether the configured source is actually detected or not just after
the register is changed for the source.

Current implementation evaluates whole the register to detect configured
source. This results in failure due to the next lowest 8 bits when the
source is connected in advance.

This commit fixes the bug.

Fixes: 25784ec2d034 ("ALSA: bebob: Add support for Focusrite Saffire/SaffirePro series")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20191102150920.20367-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/firewire/bebob/bebob_focusrite.c