From: Kailang Yang Date: Fri, 19 Mar 2010 10:14:36 +0000 (+0100) Subject: ALSA: hda - Take internal mic as Front Mic X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~7346^2~1^2~30 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6ff86a3f33e84c430aeb8ff3b7f68b1c052ec1e9;p=mirror_ubuntu-zesty-kernel.git ALSA: hda - Take internal mic as Front Mic Add new check for MIC. Do the internal DMIC as the Front MIC. It could solve the default record source index issue. [Fix the check properly using the bitmask by tiwai] Signed-off-by: Kailang Yang Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 0e76ac2b2ace..d72bcff8d271 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -4218,7 +4218,8 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec, break; case AC_JACK_MIC_IN: { int preferred, alt; - if (loc == AC_JACK_LOC_FRONT) { + if (loc == AC_JACK_LOC_FRONT || + (loc & 0x30) == AC_JACK_LOC_INTERNAL) { preferred = AUTO_PIN_FRONT_MIC; alt = AUTO_PIN_MIC; } else {