Skip to content

Commit

Permalink
ALSA: hda - Increase the connection list size for ALC662
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jul 30, 2010
1 parent 5aacc21 commit ce503f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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? */
Expand Down

0 comments on commit ce503f3

Please sign in to comment.