@@ -4639,6 +4639,22 @@ static void alc236_fixup_hp_mute_led_coefbit2(struct hda_codec *codec,
46394639 }
46404640}
46414641
4642+ static void alc245_fixup_hp_mute_led_coefbit (struct hda_codec * codec ,
4643+ const struct hda_fixup * fix ,
4644+ int action )
4645+ {
4646+ struct alc_spec * spec = codec -> spec ;
4647+
4648+ if (action == HDA_FIXUP_ACT_PRE_PROBE ) {
4649+ spec -> mute_led_polarity = 0 ;
4650+ spec -> mute_led_coef .idx = 0x0b ;
4651+ spec -> mute_led_coef .mask = 3 << 2 ;
4652+ spec -> mute_led_coef .on = 2 << 2 ;
4653+ spec -> mute_led_coef .off = 1 << 2 ;
4654+ snd_hda_gen_add_mute_led_cdev (codec , coef_mute_led_set );
4655+ }
4656+ }
4657+
46424658/* turn on/off mic-mute LED per capture hook by coef bit */
46434659static int coef_micmute_led_set (struct led_classdev * led_cdev ,
46444660 enum led_brightness brightness )
@@ -7301,6 +7317,7 @@ enum {
73017317 ALC236_FIXUP_DELL_DUAL_CODECS ,
73027318 ALC287_FIXUP_CS35L41_I2C_2_THINKPAD_ACPI ,
73037319 ALC287_FIXUP_TAS2781_I2C ,
7320+ ALC245_FIXUP_HP_MUTE_LED_COEFBIT ,
73047321};
73057322
73067323/* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -9385,6 +9402,10 @@ static const struct hda_fixup alc269_fixups[] = {
93859402 .chained = true,
93869403 .chain_id = ALC269_FIXUP_THINKPAD_ACPI ,
93879404 },
9405+ [ALC245_FIXUP_HP_MUTE_LED_COEFBIT ] = {
9406+ .type = HDA_FIXUP_FUNC ,
9407+ .v .func = alc245_fixup_hp_mute_led_coefbit ,
9408+ },
93889409};
93899410
93909411static const struct snd_pci_quirk alc269_fixup_tbl [] = {
@@ -9658,6 +9679,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
96589679 SND_PCI_QUIRK (0x103c , 0x89c6 , "Zbook Fury 17 G9" , ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED ),
96599680 SND_PCI_QUIRK (0x103c , 0x89ca , "HP" , ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF ),
96609681 SND_PCI_QUIRK (0x103c , 0x89d3 , "HP EliteBook 645 G9 (MB 89D2)" , ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF ),
9682+ SND_PCI_QUIRK (0x103c , 0x8a25 , "HP Victus 16-d1xxx (MB 8A25)" , ALC245_FIXUP_HP_MUTE_LED_COEFBIT ),
96619683 SND_PCI_QUIRK (0x103c , 0x8a78 , "HP Dev One" , ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST ),
96629684 SND_PCI_QUIRK (0x103c , 0x8aa0 , "HP ProBook 440 G9 (MB 8A9E)" , ALC236_FIXUP_HP_GPIO_LED ),
96639685 SND_PCI_QUIRK (0x103c , 0x8aa3 , "HP ProBook 450 G9 (MB 8AA1)" , ALC236_FIXUP_HP_GPIO_LED ),
0 commit comments