From: Takashi Iwai Date: Thu, 22 Mar 2012 13:36:50 +0000 (+0100) Subject: ALSA: hda/realtek - Fix ADC assignment with a shared HP/Mic pin X-Git-Tag: v3.4-rc1~24^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26acaf08556a3c64ebf8ea3654b51e6acbb0a26c;p=pandora-kernel.git 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: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed