exynos-linux-stable/sound/firewire/bebob
Takashi Sakamoto ce8b4a95c8 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: 25784ec2d0 ("ALSA: bebob: Add support for Focusrite Saffire/SaffirePro series")
Cc: <stable@vger.kernel.org> # v3.16+
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-12 19:15:41 +01:00
..
bebob.c ALSA: bebob: use more identical mod_alias for Saffire Pro 10 I/O against Liquid Saffire 56 2019-03-19 13:14:11 +01:00
bebob.h ALSA: bebob: unify configurations for some models produced by Yamaha/Terratec 2016-08-24 15:35:11 +02:00
bebob_command.c ALSA: bebob: Prepare for device specific operations 2014-05-26 14:31:15 +02:00
bebob_focusrite.c ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire Pro i/o series 2019-11-12 19:15:41 +01:00
bebob_hwdep.c ALSA: bebob: Add hwdep interface 2014-05-26 14:31:03 +02:00
bebob_maudio.c ALSA: bebob: use address returned by kmalloc() instead of kernel stack for streaming DMA mapping 2018-09-29 03:07:30 -07:00
bebob_midi.c ALSA: bebob: change type of substream counter from atomic_t to unsigned int 2016-02-20 15:45:38 +01:00
bebob_pcm.c ALSA: bebob: change type of substream counter from atomic_t to unsigned int 2016-02-20 15:45:38 +01:00
bebob_proc.c ALSA: bebob: constify various snd_bebob structures 2015-10-11 18:12:37 +02:00
bebob_stream.c ALSA: bebob: Fix prototype of helper function to return negative value 2019-11-06 12:18:16 +01:00
bebob_terratec.c ALSA: bebob: unify configurations for some models produced by Yamaha/Terratec 2016-08-24 15:35:11 +02:00
bebob_yamaha_terratec.c ALSA: bebob: unify configurations for some models produced by Yamaha/Terratec 2016-08-24 15:35:11 +02:00
Makefile ALSA: bebob: rename file with vendor-dependent code so that it's for Yamaha/Terratec 2016-08-24 15:35:03 +02:00