]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix invalid initializations for ALC861 auto mode
authorTakashi Iwai <tiwai@suse.de>
Mon, 5 Oct 2009 06:25:13 +0000 (08:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Oct 2009 06:29:49 +0000 (08:29 +0200)
commit9cb2e587c510ed8be11b5ce01ce6b8c1416b36c9
tree36b77ec1a4c315fafaf2dcd63090f4eac755ae30
parent1f580dce882d6ad25a077024f8e2049783652e55
ALSA: hda - Fix invalid initializations for ALC861 auto mode

The recent auto-parser doesn't work for machines with a single output
with ALC861, such as Toshiba laptops, because alc_subsystem_id() sets
the hp_pins[0] while it's listed in line_outs[0].
This ends up with the doubled initialization of the same mixer widget,
and it mutes the DAC route because hp_pins has no DAC assigned.

To fix this problem, just check spec->autocfg.hp_outs and speaker_outs
so that they are really detected pins.

Reference: Novell bnc#544161
http://bugzilla.novell.com/show_bug.cgi?id=544161

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