]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Mar 2012 14:15:51 +0000 (15:15 +0100)
commit4159881137cfd39ec67341b751b0c6ef462b4656
tree03409c36091ab872c348d92b0721ff2c96a648a7
parenta90e6318995564dd0bac2fd136657fa8396b7b6d
ALSA: hda/realtek - Fix ADC assignment with a shared HP/Mic pin

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

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