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>
This commit is contained in:
parent
01da47059a
commit
6ff86a3f33
1 changed files with 2 additions and 1 deletions
|
@ -4218,7 +4218,8 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec,
|
||||||
break;
|
break;
|
||||||
case AC_JACK_MIC_IN: {
|
case AC_JACK_MIC_IN: {
|
||||||
int preferred, alt;
|
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;
|
preferred = AUTO_PIN_FRONT_MIC;
|
||||||
alt = AUTO_PIN_MIC;
|
alt = AUTO_PIN_MIC;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue