exynos-linux-stable/sound/firewire/tascam
Takashi Sakamoto 6a0a1e54f7 ALSA: firewire-tascam: check intermediate state of clock status and retry
commit e1a00b5b253a4f97216b9a33199a863987075162 upstream.

2 bytes in MSB of register for clock status is zero during intermediate
state after changing status of sampling clock in models of TASCAM FireWire
series. The duration of this state differs depending on cases. During the
state, it's better to retry reading the register for current status of
the clock.

In current implementation, the intermediate state is checked only when
getting current sampling transmission frequency, then retry reading.
This care is required for the other operations to read the register.

This commit moves the codes of check and retry into helper function
commonly used for operations to read the register.

Fixes: e453df44f0 ("ALSA: firewire-tascam: add PCM functionality")
Cc: <stable@vger.kernel.org> # v4.4+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20190910135152.29800-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-05 12:30:30 +02:00
..
amdtp-tascam.c ALSA: firewire-tascam: add data block processing layer 2015-10-02 18:17:01 +02:00
Makefile ALSA: firewire-tascam: add support for MIDI functionality 2015-10-12 14:16:18 +02:00
tascam-hwdep.c ALSA: firewire-tascam: accessing to user space outside spinlock 2016-08-31 14:24:37 +02:00
tascam-midi.c ALSA: firewire-tascam: add support for MIDI functionality 2015-10-12 14:16:18 +02:00
tascam-pcm.c ALSA: firewire-tascam: handle error code when getting current source of clock 2019-10-05 12:30:29 +02:00
tascam-proc.c ALSA: firewire-tascam: add proc node to show firmware information 2015-10-02 18:17:01 +02:00
tascam-stream.c ALSA: firewire-tascam: check intermediate state of clock status and retry 2019-10-05 12:30:30 +02:00
tascam-transaction.c ALSA: firewire-tascam: fix NULL pointer dereference when model identification fails 2016-02-05 12:45:59 +01:00
tascam.c ALSA: firewire-tascam: fix memory leak of private data 2018-09-29 03:07:31 -07:00
tascam.h ALSA: firewire-tascam: deleyed registration of sound card 2016-04-25 10:40:42 +02:00