ALSA: hda - Fix DAC assignment for independent HP
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 Mar 2013 16:20:12 +0000 (17:20 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 Mar 2013 16:20:12 +0000 (17:20 +0100)
commit55a63d4da3b8850480a1c5b222f77c739e30e346
tree9bdeb9139e37c8c3f95413fada7ed6f7a79c5fa7
parenteb49faa6a4703698fa5d8b304b01e7f59e7d1f11
ALSA: hda - Fix DAC assignment for independent HP

The generic parser should evaluate the availability of the independent
HP when specified.  Otherwise a DAC without the direct connection to
the corresponding pin may be assigned for the HP, but the driver
doesn't check it at all.  The problem was actually seen on some
machines with VT1708s or equivalent codec, where DAC0 is assigned to
HP although it can be connected only via aamix.

This patch adds the badness evaluation for the independent HP to make
it working properly.

Reported-by: Lydia Wang <LydiaWang@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c