ALSA: bebob: fix wrong decoding of clock information for Terratec PHASE 88 Rack FW
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 26 Oct 2014 13:49:45 +0000 (22:49 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Oct 2014 07:39:11 +0000 (08:39 +0100)
commit7ce5c9268bacbe5ceca7849450c80e280aacd4c0
tree39fcbfaed2f3836ad2ea6d335ced878ff6d3415e
parent56779864f135b309c11dd18156784f83ddc1571e
ALSA: bebob: fix wrong decoding of clock information for Terratec PHASE 88 Rack FW

Terratec PHASE 88 rack fw has two registers for source of clock, one is
for internal/external, and another is for wordclock/spdif for external.

When clock source is internal, information in another register has no meaning.
Thus it must be ignored, but current implementation decodes it. This causes
over-indexing reference to labels.

Reported-by: András Murányi <muranyia@gmail.com>
Tested-by: András Murányi <muranyia@gmail.com>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_terratec.c