summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-06-19 23:15:59 +0200
committerTakashi Iwai <tiwai@suse.de>2018-06-21 17:33:52 +0200
commit1bce62a6e0dd85c15cbab36a0f7b9d4766cef18e (patch)
treef12fa10a99c791466f2d8996600cc88d92ba1e2c /sound
parent0bed2aa3ac5cbbd0b89bf5e94f165e2ef18180ad (diff)
downloadlinux-stable-1bce62a6e0dd85c15cbab36a0f7b9d4766cef18e.tar.gz
linux-stable-1bce62a6e0dd85c15cbab36a0f7b9d4766cef18e.tar.bz2
linux-stable-1bce62a6e0dd85c15cbab36a0f7b9d4766cef18e.zip
ALSA: hda/realtek - Simplify alc269_fixup_hp_line1_mic1_led()
alc269_fixup_hp_line1_mic1_led() can be simplified more with the existing helper code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index d9461eebcfdf..7934c5df4d80 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -3973,14 +3973,10 @@ static void alc269_fixup_hp_line1_mic1_led(struct hda_codec *codec,
{
struct alc_spec *spec = codec->spec;
+ alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x1a);
if (action == HDA_FIXUP_ACT_PRE_PROBE) {
- spec->gen.vmaster_mute.hook = alc269_fixup_mic_mute_hook;
- spec->mute_led_polarity = 0;
- spec->mute_led_nid = 0x1a;
spec->cap_mute_led_nid = 0x18;
snd_hda_gen_add_micmute_led(codec, alc_cap_micmute_update);
- spec->gen.vmaster_mute_enum = 1;
- codec->power_filter = led_power_filter;
}
}