diff options
Diffstat (limited to 'sound/pci/hda/alc880_quirks.c')
| -rw-r--r-- | sound/pci/hda/alc880_quirks.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/sound/pci/hda/alc880_quirks.c b/sound/pci/hda/alc880_quirks.c index c844d2b59988..bea22edcfd8c 100644 --- a/sound/pci/hda/alc880_quirks.c +++ b/sound/pci/hda/alc880_quirks.c | |||
| @@ -749,8 +749,7 @@ static void alc880_uniwill_setup(struct hda_codec *codec) | |||
| 749 | spec->autocfg.hp_pins[0] = 0x14; | 749 | spec->autocfg.hp_pins[0] = 0x14; |
| 750 | spec->autocfg.speaker_pins[0] = 0x15; | 750 | spec->autocfg.speaker_pins[0] = 0x15; |
| 751 | spec->autocfg.speaker_pins[0] = 0x16; | 751 | spec->autocfg.speaker_pins[0] = 0x16; |
| 752 | spec->automute = 1; | 752 | alc_simple_setup_automute(spec, ALC_AUTOMUTE_AMP); |
| 753 | spec->automute_mode = ALC_AUTOMUTE_AMP; | ||
| 754 | } | 753 | } |
| 755 | 754 | ||
| 756 | static void alc880_uniwill_init_hook(struct hda_codec *codec) | 755 | static void alc880_uniwill_init_hook(struct hda_codec *codec) |
| @@ -781,8 +780,7 @@ static void alc880_uniwill_p53_setup(struct hda_codec *codec) | |||
| 781 | 780 | ||
| 782 | spec->autocfg.hp_pins[0] = 0x14; | 781 | spec->autocfg.hp_pins[0] = 0x14; |
| 783 | spec->autocfg.speaker_pins[0] = 0x15; | 782 | spec->autocfg.speaker_pins[0] = 0x15; |
| 784 | spec->automute = 1; | 783 | alc_simple_setup_automute(spec, ALC_AUTOMUTE_AMP); |
| 785 | spec->automute_mode = ALC_AUTOMUTE_AMP; | ||
| 786 | } | 784 | } |
| 787 | 785 | ||
| 788 | static void alc880_uniwill_p53_dcvol_automute(struct hda_codec *codec) | 786 | static void alc880_uniwill_p53_dcvol_automute(struct hda_codec *codec) |
| @@ -1051,8 +1049,7 @@ static void alc880_lg_setup(struct hda_codec *codec) | |||
| 1051 | 1049 | ||
| 1052 | spec->autocfg.hp_pins[0] = 0x1b; | 1050 | spec->autocfg.hp_pins[0] = 0x1b; |
| 1053 | spec->autocfg.speaker_pins[0] = 0x17; | 1051 | spec->autocfg.speaker_pins[0] = 0x17; |
| 1054 | spec->automute = 1; | 1052 | alc_simple_setup_automute(spec, ALC_AUTOMUTE_AMP); |
| 1055 | spec->automute_mode = ALC_AUTOMUTE_AMP; | ||
| 1056 | } | 1053 | } |
| 1057 | 1054 | ||
| 1058 | /* | 1055 | /* |
| @@ -1137,8 +1134,7 @@ static void alc880_lg_lw_setup(struct hda_codec *codec) | |||
| 1137 | 1134 | ||
| 1138 | spec->autocfg.hp_pins[0] = 0x1b; | 1135 | spec->autocfg.hp_pins[0] = 0x1b; |
| 1139 | spec->autocfg.speaker_pins[0] = 0x14; | 1136 | spec->autocfg.speaker_pins[0] = 0x14; |
| 1140 | spec->automute = 1; | 1137 | alc_simple_setup_automute(spec, ALC_AUTOMUTE_AMP); |
| 1141 | spec->automute_mode = ALC_AUTOMUTE_AMP; | ||
| 1142 | } | 1138 | } |
| 1143 | 1139 | ||
| 1144 | static const struct snd_kcontrol_new alc880_medion_rim_mixer[] = { | 1140 | static const struct snd_kcontrol_new alc880_medion_rim_mixer[] = { |
| @@ -1188,7 +1184,7 @@ static void alc880_medion_rim_automute(struct hda_codec *codec) | |||
| 1188 | struct alc_spec *spec = codec->spec; | 1184 | struct alc_spec *spec = codec->spec; |
| 1189 | alc_hp_automute(codec); | 1185 | alc_hp_automute(codec); |
| 1190 | /* toggle EAPD */ | 1186 | /* toggle EAPD */ |
| 1191 | if (spec->jack_present) | 1187 | if (spec->hp_jack_present) |
| 1192 | snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, 0); | 1188 | snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, 0); |
| 1193 | else | 1189 | else |
| 1194 | snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, 2); | 1190 | snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, 2); |
| @@ -1210,8 +1206,7 @@ static void alc880_medion_rim_setup(struct hda_codec *codec) | |||
| 1210 | 1206 | ||
| 1211 | spec->autocfg.hp_pins[0] = 0x14; | 1207 | spec->autocfg.hp_pins[0] = 0x14; |
| 1212 | spec->autocfg.speaker_pins[0] = 0x1b; | 1208 | spec->autocfg.speaker_pins[0] = 0x1b; |
| 1213 | spec->automute = 1; | 1209 | alc_simple_setup_automute(spec, ALC_AUTOMUTE_AMP); |
| 1214 | spec->automute_mode = ALC_AUTOMUTE_AMP; | ||
| 1215 | } | 1210 | } |
| 1216 | 1211 | ||
| 1217 | #ifdef CONFIG_SND_HDA_POWER_SAVE | 1212 | #ifdef CONFIG_SND_HDA_POWER_SAVE |
