Commit 480967db authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda/realtek - Drop auto_mic_valid_imux flag

This flag is superfluous now and it's always as same as
spec->auto_mic.  Let's drop.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 37c04207
...@@ -209,7 +209,6 @@ struct alc_spec { ...@@ -209,7 +209,6 @@ struct alc_spec {
unsigned int line_jack_present:1; unsigned int line_jack_present:1;
unsigned int master_mute:1; unsigned int master_mute:1;
unsigned int auto_mic:1; unsigned int auto_mic:1;
unsigned int auto_mic_valid_imux:1; /* valid imux for auto-mic */
unsigned int automute_speaker:1; /* automute speaker outputs */ unsigned int automute_speaker:1; /* automute speaker outputs */
unsigned int automute_lo:1; /* automute LO outputs */ unsigned int automute_lo:1; /* automute LO outputs */
unsigned int detect_hp:1; /* Headphone detection enabled */ unsigned int detect_hp:1; /* Headphone detection enabled */
...@@ -622,7 +621,7 @@ static void alc_mic_automute(struct hda_codec *codec, struct hda_jack_tbl *jack) ...@@ -622,7 +621,7 @@ static void alc_mic_automute(struct hda_codec *codec, struct hda_jack_tbl *jack)
struct alc_spec *spec = codec->spec; struct alc_spec *spec = codec->spec;
hda_nid_t *pins = spec->imux_pins; hda_nid_t *pins = spec->imux_pins;
if (!spec->auto_mic || !spec->auto_mic_valid_imux) if (!spec->auto_mic)
return; return;
if (snd_BUG_ON(spec->int_mic_idx < 0 || spec->ext_mic_idx < 0)) if (snd_BUG_ON(spec->int_mic_idx < 0 || spec->ext_mic_idx < 0))
return; return;
...@@ -1004,8 +1003,6 @@ static bool alc_auto_mic_check_imux(struct hda_codec *codec) ...@@ -1004,8 +1003,6 @@ static bool alc_auto_mic_check_imux(struct hda_codec *codec)
snd_hda_jack_detect_enable_callback(codec, spec->dock_mic_pin, snd_hda_jack_detect_enable_callback(codec, spec->dock_mic_pin,
ALC_MIC_EVENT, ALC_MIC_EVENT,
alc_mic_automute); alc_mic_automute);
spec->auto_mic_valid_imux = 1;
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment