Loading sound/pci/hda/patch_realtek.c +10 −36 Original line number Diff line number Diff line Loading @@ -73,12 +73,6 @@ struct alc_multi_io { unsigned int ctl_in; /* cached input-pin control value */ }; enum { ALC_AUTOMUTE_PIN, /* change the pin control */ ALC_AUTOMUTE_AMP, /* mute/unmute the pin AMP */ ALC_AUTOMUTE_MIXER, /* mute/unmute mixer widget AMP */ }; #define MAX_VOL_NIDS 0x40 /* make compatible with old code */ Loading Loading @@ -542,7 +536,6 @@ static void do_automute(struct hda_codec *codec, int num_pins, hda_nid_t *pins, bool mute, bool hp_out) { struct alc_spec *spec = codec->spec; unsigned int mute_bits = mute ? HDA_AMP_MUTE : 0; unsigned int pin_bits = mute ? 0 : (hp_out ? PIN_HP : PIN_OUT); int i; Loading @@ -551,8 +544,6 @@ static void do_automute(struct hda_codec *codec, int num_pins, hda_nid_t *pins, unsigned int val; if (!nid) break; switch (spec->automute_mode) { case ALC_AUTOMUTE_PIN: /* don't reset VREF value in case it's controlling * the amp (see alc861_fixup_asus_amp_vref_0f()) */ Loading @@ -564,21 +555,6 @@ static void do_automute(struct hda_codec *codec, int num_pins, hda_nid_t *pins, val = 0; val |= pin_bits; snd_hda_set_pin_ctl(codec, nid, val); break; case ALC_AUTOMUTE_AMP: snd_hda_codec_amp_stereo(codec, nid, HDA_OUTPUT, 0, HDA_AMP_MUTE, mute_bits); break; case ALC_AUTOMUTE_MIXER: nid = spec->automute_mixer_nid[i]; if (!nid) break; snd_hda_codec_amp_stereo(codec, nid, HDA_INPUT, 0, HDA_AMP_MUTE, mute_bits); snd_hda_codec_amp_stereo(codec, nid, HDA_INPUT, 1, HDA_AMP_MUTE, mute_bits); break; } } } Loading Loading @@ -979,8 +955,6 @@ static int alc_init_automute(struct hda_codec *codec) cfg->hp_outs = cfg->line_outs; } spec->automute_mode = ALC_AUTOMUTE_PIN; for (i = 0; i < cfg->hp_outs; i++) { hda_nid_t nid = cfg->hp_pins[i]; if (!is_jack_detectable(codec, nid)) Loading Loading
sound/pci/hda/patch_realtek.c +10 −36 Original line number Diff line number Diff line Loading @@ -73,12 +73,6 @@ struct alc_multi_io { unsigned int ctl_in; /* cached input-pin control value */ }; enum { ALC_AUTOMUTE_PIN, /* change the pin control */ ALC_AUTOMUTE_AMP, /* mute/unmute the pin AMP */ ALC_AUTOMUTE_MIXER, /* mute/unmute mixer widget AMP */ }; #define MAX_VOL_NIDS 0x40 /* make compatible with old code */ Loading Loading @@ -542,7 +536,6 @@ static void do_automute(struct hda_codec *codec, int num_pins, hda_nid_t *pins, bool mute, bool hp_out) { struct alc_spec *spec = codec->spec; unsigned int mute_bits = mute ? HDA_AMP_MUTE : 0; unsigned int pin_bits = mute ? 0 : (hp_out ? PIN_HP : PIN_OUT); int i; Loading @@ -551,8 +544,6 @@ static void do_automute(struct hda_codec *codec, int num_pins, hda_nid_t *pins, unsigned int val; if (!nid) break; switch (spec->automute_mode) { case ALC_AUTOMUTE_PIN: /* don't reset VREF value in case it's controlling * the amp (see alc861_fixup_asus_amp_vref_0f()) */ Loading @@ -564,21 +555,6 @@ static void do_automute(struct hda_codec *codec, int num_pins, hda_nid_t *pins, val = 0; val |= pin_bits; snd_hda_set_pin_ctl(codec, nid, val); break; case ALC_AUTOMUTE_AMP: snd_hda_codec_amp_stereo(codec, nid, HDA_OUTPUT, 0, HDA_AMP_MUTE, mute_bits); break; case ALC_AUTOMUTE_MIXER: nid = spec->automute_mixer_nid[i]; if (!nid) break; snd_hda_codec_amp_stereo(codec, nid, HDA_INPUT, 0, HDA_AMP_MUTE, mute_bits); snd_hda_codec_amp_stereo(codec, nid, HDA_INPUT, 1, HDA_AMP_MUTE, mute_bits); break; } } } Loading Loading @@ -979,8 +955,6 @@ static int alc_init_automute(struct hda_codec *codec) cfg->hp_outs = cfg->line_outs; } spec->automute_mode = ALC_AUTOMUTE_PIN; for (i = 0; i < cfg->hp_outs; i++) { hda_nid_t nid = cfg->hp_pins[i]; if (!is_jack_detectable(codec, nid)) Loading