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)
commit716eef032cdc7604ae3a1a5ad80521f4afa4b3e6
treecca8f48d2fb249d974127844e039916d13afdda0
parentc146623884c471295c50c740787df6f86dbdd395
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