Skip to content

Commit

Permalink
ALSA: hda - Parse HP and speaker DACs even for multi connections for …
Browse files Browse the repository at this point in the history
…ALC662

In alc662_auto_fill_dac_nids(), the HP and speaker DACs aren't parsed
when the corresponding pins aren't fixed with single DACs.
Now check these DACs even for non-fixed pins.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jul 7, 2011
1 parent 8e89995 commit bb8bf4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -18845,6 +18845,13 @@ static int alc662_auto_fill_dac_nids(struct hda_codec *codec)
sizeof(hda_nid_t) * (cfg->line_outs - i - 1));
}

if (cfg->hp_outs && !spec->multiout.hp_nid)
spec->multiout.hp_nid =
alc_auto_look_for_dac(codec, cfg->hp_pins[0]);
if (cfg->speaker_outs && !spec->multiout.extra_out_nid[0])
spec->multiout.extra_out_nid[0] =
alc_auto_look_for_dac(codec, cfg->speaker_pins[0]);

return 0;
}

Expand Down

0 comments on commit bb8bf4d

Please sign in to comment.