ALSA: hda - Fix volume-init for ALC259 with invalid widget caps
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 Jun 2011 13:53:38 +0000 (15:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Jun 2011 13:53:38 +0000 (15:53 +0200)
commit7ec9c6ccc6007b14a916021d4ba7ffbcc7822ae3
treed22b159814380ab5b53aa36715c340ed710010af
parent050ea75317f33e376cc413359c0319ad5cc86e2a
ALSA: hda - Fix volume-init for ALC259 with invalid widget caps

ALC259 seems to provide an invalid widget capability for the input-src
selector widget.  The widget shows the input-amp while it's a selector,
and this confuses the current ALC882 initialization code that is used
for ALC259, too.  For fixing this, check the amp capability and handle
the connection selection individually.

Also, ALC259 has no mute bit in DAC volume, so we need to initialize
it as ZERO instead of MUTE.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c