ALSA: hda: use last DAC defined for hp_pin
authorMatthew Ranostay <mranostay@embeddedalley.com>
Wed, 24 Sep 2008 01:46:30 +0000 (21:46 -0400)
committerJaroslav Kysela <perex@perex.cz>
Fri, 10 Oct 2008 11:41:27 +0000 (13:41 +0200)
commitfedb7569100ac858bea7954d82c74e5561bf2c03
tree27925416d9c24ec0121b59b0c89cbc764ab069a9
parentcdad5b8db91ac46a8e226306d062fe4c896b2bed
ALSA: hda: use last DAC defined for hp_pin

Patch allows the last DAC in the dac_nids for the hp_nid if there is an
available one this isn't in use by a line_out entry or if hp_nid isn't already
defined. This solves the issues with the 'Headphone Playback' mixer
controls on the 92hd73xxx branch and possibly others.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/patch_sigmatel.c