]> 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)
commit590c0de73c1a933830ff94471ce08e9da086f27a
treecca8f48d2fb249d974127844e039916d13afdda0
parent586b0d6203ba9db1f36cac860c7b7f4f5a4dde82
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