ALSA: hda - Disable broken mic auto-muting in Realtek codes

The recent addition of automatic mic-muting is broken in some cases.
The code assumes that the pin nids <= 0x18, but the digital pins can
be less than 0x18.
Also, it assumes the front-mic being the internal mic, but it depends
on the hardware implementation actually.

Instead of complex case-fixes, better to disable the code as now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

+6
+6
sound/pci/hda/patch_realtek.c
··· 829 spec->jack_present ? 0 : PIN_OUT); 830 } 831 832 static void alc_mic_automute(struct hda_codec *codec) 833 { 834 struct alc_spec *spec = codec->spec; ··· 850 snd_hda_codec_amp_stereo(codec, 0x0b, HDA_INPUT, capsrc_idx_fmic, 851 HDA_AMP_MUTE, present ? HDA_AMP_MUTE : 0); 852 } 853 854 /* unsolicited event for HP jack sensing */ 855 static void alc_sku_unsol_event(struct hda_codec *codec, unsigned int res) ··· 1062 AC_VERB_SET_UNSOLICITED_ENABLE, 1063 AC_USRSP_EN | ALC880_HP_EVENT); 1064 1065 if (spec->autocfg.input_pins[AUTO_PIN_MIC] && 1066 spec->autocfg.input_pins[AUTO_PIN_FRONT_MIC]) 1067 snd_hda_codec_write(codec, 1068 spec->autocfg.input_pins[AUTO_PIN_MIC], 0, 1069 AC_VERB_SET_UNSOLICITED_ENABLE, 1070 AC_USRSP_EN | ALC880_MIC_EVENT); 1071 1072 spec->unsol_event = alc_sku_unsol_event; 1073 }
··· 829 spec->jack_present ? 0 : PIN_OUT); 830 } 831 832 + #if 0 /* it's broken in some acses -- temporarily disabled */ 833 static void alc_mic_automute(struct hda_codec *codec) 834 { 835 struct alc_spec *spec = codec->spec; ··· 849 snd_hda_codec_amp_stereo(codec, 0x0b, HDA_INPUT, capsrc_idx_fmic, 850 HDA_AMP_MUTE, present ? HDA_AMP_MUTE : 0); 851 } 852 + #else 853 + #define alc_mic_automute(codec) /* NOP */ 854 + #endif /* disabled */ 855 856 /* unsolicited event for HP jack sensing */ 857 static void alc_sku_unsol_event(struct hda_codec *codec, unsigned int res) ··· 1058 AC_VERB_SET_UNSOLICITED_ENABLE, 1059 AC_USRSP_EN | ALC880_HP_EVENT); 1060 1061 + #if 0 /* it's broken in some acses -- temporarily disabled */ 1062 if (spec->autocfg.input_pins[AUTO_PIN_MIC] && 1063 spec->autocfg.input_pins[AUTO_PIN_FRONT_MIC]) 1064 snd_hda_codec_write(codec, 1065 spec->autocfg.input_pins[AUTO_PIN_MIC], 0, 1066 AC_VERB_SET_UNSOLICITED_ENABLE, 1067 AC_USRSP_EN | ALC880_MIC_EVENT); 1068 + #endif /* disabled */ 1069 1070 spec->unsol_event = alc_sku_unsol_event; 1071 }