]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek - Fix DAC assignments of multiple speakers
authorTakashi Iwai <tiwai@suse.de>
Fri, 21 Oct 2011 13:07:42 +0000 (15:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Oct 2011 13:07:42 +0000 (15:07 +0200)
commit5906eb7b811d6978de7750705d6938cefd190e3f
treecca8f48d2fb249d974127844e039916d13afdda0
parentca8f763fb37fad7af221229289dfe73ba15d8e5c
ALSA: hda/realtek - Fix DAC assignments of multiple speakers

When a device has multiple speakers and still has the auto-mute support,
the driver copies line_outs[] to speaker_outs[].  And then it tries to
assign DACs for both.  This ended up with the assignment only to the
primary DAC to all speakers.

This patch fixes the situation by checking the duplicated LO/SPK case
appropriately.

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