]> git.ipfire.org Git - thirdparty/linux.git/commit - sound/pci/hda/patch_realtek.c
ALSA: hda - Check connectivity for auto-mic of Realtek codecs
authorTakashi Iwai <tiwai@suse.de>
Tue, 11 Aug 2009 07:47:30 +0000 (09:47 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 11 Aug 2009 07:47:30 +0000 (09:47 +0200)
commitb59bdf3b0ca11bfc6a539012431d751deaa65b32
treedfaa6317d64d5f0acfa5ae3afed1614d27ec1bb3
parent52b5deefbbd7493092b1cbc35da09e0e2ad46cca
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 <tiwai@suse.de>
sound/pci/hda/patch_realtek.c