@@ -2974,6 +2974,16 @@ static void cs35l41_fixup_i2c_four(struct hda_codec *cdc, const struct hda_fixup
29742974 comp_generic_fixup (cdc , action , "i2c" , "CSC3551" , "-%s:00-cs35l41-hda.%d" , 4 );
29752975}
29762976
2977+ static void aw88399_fixup_i2c_two (struct hda_codec * cdc , const struct hda_fixup * fix , int action )
2978+ {
2979+ comp_generic_fixup (cdc , action , "i2c" , "AWDZ8399" , "-%s:00-aw88399-hda.%d" , 2 );
2980+ }
2981+
2982+ static void alc287_fixup_legion_16iax_aw88399 (struct hda_codec * codec ,
2983+ const struct hda_fixup * fix , int action )
2984+ {
2985+ }
2986+
29772987static void cs35l41_fixup_spi_two (struct hda_codec * codec , const struct hda_fixup * fix , int action )
29782988{
29792989 comp_generic_fixup (codec , action , "spi" , "CSC3551" , "-%s:00-cs35l41-hda.%d" , 2 );
@@ -3736,6 +3746,8 @@ enum {
37363746 ALC285_FIXUP_ASUS_GA605K_I2C_SPEAKER2_TO_DAC1 ,
37373747 ALC269_FIXUP_POSITIVO_P15X_HEADSET_MIC ,
37383748 ALC289_FIXUP_ASUS_ZEPHYRUS_DUAL_SPK ,
3749+ ALC287_FIXUP_AW88399_I2C_2 ,
3750+ ALC287_FIXUP_LENOVO_LEGION_AW88399 ,
37393751};
37403752
37413753/* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -6172,7 +6184,17 @@ static const struct hda_fixup alc269_fixups[] = {
61726184 { 0x1e , 0x90170150 }, /* Internal Speaker */
61736185 { }
61746186 },
6175- }
6187+ },
6188+ [ALC287_FIXUP_AW88399_I2C_2 ] = {
6189+ .type = HDA_FIXUP_FUNC ,
6190+ .v .func = aw88399_fixup_i2c_two ,
6191+ },
6192+ [ALC287_FIXUP_LENOVO_LEGION_AW88399 ] = {
6193+ .type = HDA_FIXUP_FUNC ,
6194+ .v .func = alc287_fixup_legion_16iax_aw88399 ,
6195+ .chained = true,
6196+ .chain_id = ALC287_FIXUP_AW88399_I2C_2 ,
6197+ },
61766198};
61776199
61786200static const struct hda_quirk alc269_fixup_tbl [] = {
@@ -7110,6 +7132,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
71107132 SND_PCI_QUIRK (0x17aa , 0x38fa , "Thinkbook 16P Gen5" , ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD ),
71117133 SND_PCI_QUIRK (0x17aa , 0x38fd , "ThinkBook plus Gen5 Hybrid" , ALC287_FIXUP_TAS2781_I2C ),
71127134 SND_PCI_QUIRK (0x17aa , 0x3902 , "Lenovo E50-80" , ALC269_FIXUP_DMIC_THINKPAD_ACPI ),
7135+ SND_PCI_QUIRK (0x17aa , 0x3906 , "Lenovo Legion Pro 7 16IAX10H" , ALC287_FIXUP_LENOVO_LEGION_AW88399 ),
7136+ SND_PCI_QUIRK (0x17aa , 0x3907 , "Lenovo Legion Pro 7 16IAX10H" , ALC287_FIXUP_LENOVO_LEGION_AW88399 ),
71137137 SND_PCI_QUIRK (0x17aa , 0x390d , "Lenovo Yoga Pro 7 14ASP10" , ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN ),
71147138 SND_PCI_QUIRK (0x17aa , 0x3913 , "Lenovo 145" , ALC236_FIXUP_LENOVO_INV_DMIC ),
71157139 SND_PCI_QUIRK (0x17aa , 0x391f , "Yoga S990-16 pro Quad YC Quad" , ALC287_FIXUP_TXNW2781_I2C ),
0 commit comments