summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-07-30 10:37:29 +0200
committerTakashi Iwai <tiwai@suse.de>2010-07-30 10:37:29 +0200
commitce503f38bdb59c9175a9076215a3ba579fad4e64 (patch)
tree37fdca2288c3f7b70fe5b3687921338f0c48017b
parent5aacc2186cc075880a9eca42e6b7f9bb3096d0ea (diff)
downloadlinux-ce503f38bdb59c9175a9076215a3ba579fad4e64.tar.gz
linux-ce503f38bdb59c9175a9076215a3ba579fad4e64.tar.bz2
linux-ce503f38bdb59c9175a9076215a3ba579fad4e64.zip
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>
-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,
hda_nid_t dac)
{
int i, num;
- hda_nid_t srcs[4];
+ hda_nid_t srcs[HDA_MAX_CONNECTIONS];
alc_set_pin_output(codec, nid, pin_type);
/* need the manual connection? */