From: Takashi Iwai Date: Tue, 11 Aug 2009 07:47:30 +0000 (+0200) Subject: ALSA: hda - Check connectivity for auto-mic of Realtek codecs X-Git-Tag: v2.6.32-rc1~732^2~13^2~35 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=b59bdf3b0ca11bfc6a539012431d751deaa65b32;hp=b59bdf3b0ca11bfc6a539012431d751deaa65b32 ALSA: hda - Check connectivity for auto-mic of Realtek codecs Some Realtek codecs don't provide the full connections for certain pins from each ADC; e.g. ACL662/ALC272 gives only one of two digital-mic pins for each ADC. Thus, depending on the digital mic pin, the ADC/MUX to be used has to be chosen properly. This patch adds the check of the connectivity of pins at auto-mic mode. If no proper connectivity is found, auto_mic flag is turned off to be sure. Also the mux_idx is determined during this check so it won't be checked in the unsol event any more. Signed-off-by: Takashi Iwai ---