diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-03-29 10:40:57 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-29 10:40:57 +0400 |
commit | 85255c0e078158ede61ff8bd296e306db6f7ed19 (patch) | |
tree | a63a19f190d1c32dffe0ec5a138e7ce9c6b0ae64 /sound/pci/hda/patch_realtek.c | |
parent | f30c14b64e0eb62319e7a3e930fb7ea2bee9d919 (diff) | |
parent | 9ec8ddad59fadd8021adfea4cb716a49b0e232e9 (diff) | |
download | linux-85255c0e078158ede61ff8bd296e306db6f7ed19.tar.xz |
Merge branch 'fix/hda' into for-linus
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 053d53d8c8b2..9a23444e9e7a 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -10043,8 +10043,11 @@ static void alc882_auto_set_output_and_unmute(struct hda_codec *codec, alc_set_pin_output(codec, nid, pin_type); if (spec->multiout.dac_nids[dac_idx] == 0x25) idx = 4; - else + else { + if (spec->multiout.num_dacs >= dac_idx) + return; idx = spec->multiout.dac_nids[dac_idx] - 2; + } snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_CONNECT_SEL, idx); } |