aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-10-10 10:32:49 -0400
committerTakashi Iwai <tiwai@suse.de>2014-10-10 11:25:30 -0400
commit3f4032861cfbff0b9134bf94c5c92e2146d1f068 (patch)
treeb2cd2577b6309e46eae2994b6b6c03d5caf9b66f
parentfd1a2a90d08b0052fa52bd36cebd0592c9e537c2 (diff)
ALSA: bebob: Fix failure to detect source of clock for Terratec Phase 88
This patch fixes a failure to open PCM device with -ENOSYS in Terratec Phase 88. Terratec Phase 88 has two Selector Function Blocks of AVC Audio subunit to switch source of clock. One is to switch internal/external for the source and another is to switch word/spdif for the external clock. The IDs for these Selector Function Blocks are 9 and 8. But in current implementation they're 0 and 0. Reported-by: András Murányi <muranyia@gmail.com> Tested-by: András Murányi <muranyia@gmail.com> Cc: <stable@vger.kernel.org> # v3.16+ Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/firewire/bebob/bebob_terratec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/bebob/bebob_terratec.c b/sound/firewire/bebob/bebob_terratec.c
index eef8ea7d9b97..0e4c0bfc463b 100644
--- a/sound/firewire/bebob/bebob_terratec.c
+++ b/sound/firewire/bebob/bebob_terratec.c
@@ -17,10 +17,10 @@ phase88_rack_clk_src_get(struct snd_bebob *bebob, unsigned int *id)
17 unsigned int enable_ext, enable_word; 17 unsigned int enable_ext, enable_word;
18 int err; 18 int err;
19 19
20 err = avc_audio_get_selector(bebob->unit, 0, 0, &enable_ext); 20 err = avc_audio_get_selector(bebob->unit, 0, 9, &enable_ext);
21 if (err < 0) 21 if (err < 0)
22 goto end; 22 goto end;
23 err = avc_audio_get_selector(bebob->unit, 0, 0, &enable_word); 23 err = avc_audio_get_selector(bebob->unit, 0, 8, &enable_word);
24 if (err < 0) 24 if (err < 0)
25 goto end; 25 goto end;
26 26