summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_via.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-02-16 16:43:09 +0100
committerTakashi Iwai <tiwai@suse.de>2012-02-16 16:43:09 +0100
commit00bc0ce9130551ef193c3f5db0b7b6e70dff28ac (patch)
treeb6b022250a08073e522ed1bba56586b534a3c77e /sound/pci/hda/patch_via.c
parenta7f3eedc88b547e0ec35ba4cc4ae61cd9bc760ac (diff)
parentc14c95f62ecb8710af14ae0d48e01991b70bb6f4 (diff)
downloadblackbird-op-linux-00bc0ce9130551ef193c3f5db0b7b6e70dff28ac.tar.gz
blackbird-op-linux-00bc0ce9130551ef193c3f5db0b7b6e70dff28ac.zip
Merge branch 'fix/hda' into topic/hda
The fix for bitmap-overflow in Realtek codec driver is needed for the further development of the auto-parser with badness evaluation.
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r--sound/pci/hda/patch_via.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index e5842fe1b1e8..c7eb4d7d05c0 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -666,6 +666,9 @@ static void via_auto_init_analog_input(struct hda_codec *codec)
/* init input-src */
for (i = 0; i < spec->num_adc_nids; i++) {
int adc_idx = spec->inputs[spec->cur_mux[i]].adc_idx;
+ /* secondary ADCs must have the unique MUX */
+ if (i > 0 && !spec->mux_nids[i])
+ break;
if (spec->mux_nids[adc_idx]) {
int mux_idx = spec->inputs[spec->cur_mux[i]].mux_idx;
snd_hda_codec_write(codec, spec->mux_nids[adc_idx], 0,
OpenPOWER on IntegriCloud