Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: hda/realtek: add in quirk for Acer Swift Go 16 - SFG16-71

Keyboard has an LED that is ON/OFF when mic is muted/active
- LED is controlled by GPIO pin
- Patch enables led to appear in /sys/class/leds/ as hda::micmute
- Enables LED when mic is MUTED
- Disables LED when mic is active

[ fixed white spaces by tiwai ]

Signed-off-by: Ian Murphy <iano200@gmail.com>
Message-ID: <20240316094157.13890-1-iano200@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Ian Murphy and committed by
Takashi Iwai
bd2d8305 c53898eb

+13
+13
sound/pci/hda/patch_realtek.c
··· 6891 6891 comp_generic_fixup(cdc, action, "i2c", "INT8866", "-%s:00", 1); 6892 6892 } 6893 6893 6894 + static void alc256_fixup_acer_sfg16_micmute_led(struct hda_codec *codec, 6895 + const struct hda_fixup *fix, int action) 6896 + { 6897 + alc_fixup_hp_gpio_led(codec, action, 0, 0x04); 6898 + } 6899 + 6900 + 6894 6901 /* for alc295_fixup_hp_top_speakers */ 6895 6902 #include "hp_x360_helper.c" 6896 6903 ··· 7381 7374 ALC289_FIXUP_DELL_CS35L41_SPI_2, 7382 7375 ALC294_FIXUP_CS35L41_I2C_2, 7383 7376 ALC245_FIXUP_CS35L56_SPI_4_HP_GPIO_LED, 7377 + ALC256_FIXUP_ACER_SFG16_MICMUTE_LED, 7384 7378 }; 7385 7379 7386 7380 /* A special fixup for Lenovo C940 and Yoga Duet 7; ··· 9577 9569 .chained = true, 9578 9570 .chain_id = ALC285_FIXUP_HP_GPIO_LED, 9579 9571 }, 9572 + [ALC256_FIXUP_ACER_SFG16_MICMUTE_LED] = { 9573 + .type = HDA_FIXUP_FUNC, 9574 + .v.func = alc256_fixup_acer_sfg16_micmute_led, 9575 + }, 9580 9576 }; 9581 9577 9582 9578 static const struct snd_pci_quirk alc269_fixup_tbl[] = { ··· 9624 9612 SND_PCI_QUIRK(0x1025, 0x1430, "Acer TravelMate B311R-31", ALC256_FIXUP_ACER_MIC_NO_PRESENCE), 9625 9613 SND_PCI_QUIRK(0x1025, 0x1466, "Acer Aspire A515-56", ALC255_FIXUP_ACER_HEADPHONE_AND_MIC), 9626 9614 SND_PCI_QUIRK(0x1025, 0x1534, "Acer Predator PH315-54", ALC255_FIXUP_ACER_MIC_NO_PRESENCE), 9615 + SND_PCI_QUIRK(0x1025, 0x169a, "Acer Swift SFG16", ALC256_FIXUP_ACER_SFG16_MICMUTE_LED), 9627 9616 SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), 9628 9617 SND_PCI_QUIRK(0x1028, 0x053c, "Dell Latitude E5430", ALC292_FIXUP_DELL_E7X), 9629 9618 SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS),