ALSA: hda/realtek - Fix surround output regression on Acer Aspire 5935
authorTakashi Iwai <tiwai@suse.de>
Fri, 17 Feb 2012 09:12:38 +0000 (10:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:31:11 +0000 (16:31 -0800)
commit8f421627d178f1346bb68c9e7b32b2bd5844ce1d
tree34c7bc68d91b483fce509c9b41b4deb9b52319cc
parent0da0c63e05b5f7de8298753d79304cd137351590
ALSA: hda/realtek - Fix surround output regression on Acer Aspire 5935

commit ef8d60fb79614a86a82720dc2402631dbcafb315 upstream.

The previous fix for the speaker on Acer Aspire 59135 introduced
another problem for surround outputs.  It changed the connections on
the line-in/mic pins for limiting the routes, but it left the modified
connections.  Thus wrong connection indices were written when set to
4ch or 6ch mode.

This patch fixes it by restoring the right connections just after
parsing the tree but before the initialization.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42740

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c