diff options
author | Kailang Yang <kailang@realtek.com> | 2010-03-19 06:14:36 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-19 06:14:36 -0400 |
commit | 6ff86a3f33e84c430aeb8ff3b7f68b1c052ec1e9 (patch) | |
tree | 76c64be29881d0ae08bc7c31c229378be96ae634 | |
parent | 01da47059ab54544a508b217598fb0e73b73e7a8 (diff) |
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 <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/hda_codec.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
4218 | break; | 4218 | break; |
4219 | case AC_JACK_MIC_IN: { | 4219 | case AC_JACK_MIC_IN: { |
4220 | int preferred, alt; | 4220 | int preferred, alt; |
4221 | if (loc == AC_JACK_LOC_FRONT) { | 4221 | if (loc == AC_JACK_LOC_FRONT || |
4222 | (loc & 0x30) == AC_JACK_LOC_INTERNAL) { | ||
4222 | preferred = AUTO_PIN_FRONT_MIC; | 4223 | preferred = AUTO_PIN_FRONT_MIC; |
4223 | alt = AUTO_PIN_MIC; | 4224 | alt = AUTO_PIN_MIC; |
4224 | } else { | 4225 | } else { |