]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda/realtek - Fix ADC assignment with a shared HP/Mic pin
authorTakashi Iwai <tiwai@suse.de>
Thu, 22 Mar 2012 13:36:50 +0000 (14:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 16:13:50 +0000 (09:13 -0700)
commit17c7ceb39193493ccf12d489fdfdaf2cdccb0099
tree14981ad5b9b88a2d1d973dbf32f2e08c410dcc83
parent887192b45178fe51e125cb007a69cb3752b332e1
ALSA: hda/realtek - Fix ADC assignment with a shared HP/Mic pin

commit 26acaf08556a3c64ebf8ea3654b51e6acbb0a26c upstream.

The recent Realtek driver tries to assign an extra input via the
headphone plug when only a single input source is found.  The code
worked on Samsung Q1, but it broke ASUS 1015 where the mic is a
digital-mic and only a specific ADC works.

This patch fixes the assignment of ADC in the shared mic/hp case.
Instead of assuming the single ADC at first, reduce the ADCs after
trying to assign both mic and HP pins.

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

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