aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-07-30 04:37:29 -0400
committerTakashi Iwai <tiwai@suse.de>2010-07-30 04:37:29 -0400
commitce503f38bdb59c9175a9076215a3ba579fad4e64 (patch)
tree37fdca2288c3f7b70fe5b3687921338f0c48017b /sound/pci
parent5aacc2186cc075880a9eca42e6b7f9bb3096d0ea (diff)
ALSA: hda - Increase the connection list size for ALC662
Some ALC662-compatible codecs like ALC892 may have more than 4 connections for the input source. Use HDA_MAX_CONNECTIONS instead of the fixed magic number 4. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_realtek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 14ef38352088..cf9f20805173 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -18657,7 +18657,7 @@ static void alc662_auto_set_output_and_unmute(struct hda_codec *codec,
18657 hda_nid_t dac) 18657 hda_nid_t dac)
18658{ 18658{
18659 int i, num; 18659 int i, num;
18660 hda_nid_t srcs[4]; 18660 hda_nid_t srcs[HDA_MAX_CONNECTIONS];
18661 18661
18662 alc_set_pin_output(codec, nid, pin_type); 18662 alc_set_pin_output(codec, nid, pin_type);
18663 /* need the manual connection? */ 18663 /* need the manual connection? */