@@ -816,23 +816,6 @@ static const struct hda_pintbl cxt_pincfg_sws_js201d[] = {
816816 {}
817817};
818818
819- /* pincfg quirk for Tuxedo Sirius;
820- * unfortunately the (PCI) SSID conflicts with System76 Pangolin pang14,
821- * which has incompatible pin setup, so we check the codec SSID (luckily
822- * different one!) and conditionally apply the quirk here
823- */
824- static void cxt_fixup_sirius_top_speaker (struct hda_codec * codec ,
825- const struct hda_fixup * fix ,
826- int action )
827- {
828- /* ignore for incorrectly picked-up pang14 */
829- if (codec -> core .subsystem_id == 0x278212b3 )
830- return ;
831- /* set up the top speaker pin */
832- if (action == HDA_FIXUP_ACT_PRE_PROBE )
833- snd_hda_codec_set_pincfg (codec , 0x1d , 0x82170111 );
834- }
835-
836819static const struct hda_fixup cxt_fixups [] = {
837820 [CXT_PINCFG_LENOVO_X200 ] = {
838821 .type = HDA_FIXUP_PINS ,
@@ -993,12 +976,15 @@ static const struct hda_fixup cxt_fixups[] = {
993976 .v .pins = cxt_pincfg_sws_js201d ,
994977 },
995978 [CXT_PINCFG_TOP_SPEAKER ] = {
996- .type = HDA_FIXUP_FUNC ,
997- .v .func = cxt_fixup_sirius_top_speaker ,
979+ .type = HDA_FIXUP_PINS ,
980+ .v .pins = (const struct hda_pintbl []) {
981+ { 0x1d , 0x82170111 },
982+ { }
983+ },
998984 },
999985};
1000986
1001- static const struct snd_pci_quirk cxt5045_fixups [] = {
987+ static const struct hda_quirk cxt5045_fixups [] = {
1002988 SND_PCI_QUIRK (0x103c , 0x30d5 , "HP 530" , CXT_FIXUP_HP_530 ),
1003989 SND_PCI_QUIRK (0x1179 , 0xff31 , "Toshiba P105" , CXT_FIXUP_TOSHIBA_P105 ),
1004990 /* HP, Packard Bell, Fujitsu-Siemens & Lenovo laptops have
@@ -1018,7 +1004,7 @@ static const struct hda_model_fixup cxt5045_fixup_models[] = {
10181004 {}
10191005};
10201006
1021- static const struct snd_pci_quirk cxt5047_fixups [] = {
1007+ static const struct hda_quirk cxt5047_fixups [] = {
10221008 /* HP laptops have really bad sound over 0 dB on NID 0x10.
10231009 */
10241010 SND_PCI_QUIRK_VENDOR (0x103c , "HP" , CXT_FIXUP_CAP_MIX_AMP_5047 ),
@@ -1030,7 +1016,7 @@ static const struct hda_model_fixup cxt5047_fixup_models[] = {
10301016 {}
10311017};
10321018
1033- static const struct snd_pci_quirk cxt5051_fixups [] = {
1019+ static const struct hda_quirk cxt5051_fixups [] = {
10341020 SND_PCI_QUIRK (0x103c , 0x360b , "Compaq CQ60" , CXT_PINCFG_COMPAQ_CQ60 ),
10351021 SND_PCI_QUIRK (0x17aa , 0x20f2 , "Lenovo X200" , CXT_PINCFG_LENOVO_X200 ),
10361022 {}
@@ -1041,7 +1027,7 @@ static const struct hda_model_fixup cxt5051_fixup_models[] = {
10411027 {}
10421028};
10431029
1044- static const struct snd_pci_quirk cxt5066_fixups [] = {
1030+ static const struct hda_quirk cxt5066_fixups [] = {
10451031 SND_PCI_QUIRK (0x1025 , 0x0543 , "Acer Aspire One 522" , CXT_FIXUP_STEREO_DMIC ),
10461032 SND_PCI_QUIRK (0x1025 , 0x054c , "Acer Aspire 3830TG" , CXT_FIXUP_ASPIRE_DMIC ),
10471033 SND_PCI_QUIRK (0x1025 , 0x054f , "Acer Aspire 4830T" , CXT_FIXUP_ASPIRE_DMIC ),
@@ -1092,8 +1078,8 @@ static const struct snd_pci_quirk cxt5066_fixups[] = {
10921078 SND_PCI_QUIRK_VENDOR (0x17aa , "Thinkpad" , CXT_FIXUP_THINKPAD_ACPI ),
10931079 SND_PCI_QUIRK (0x1c06 , 0x2011 , "Lemote A1004" , CXT_PINCFG_LEMOTE_A1004 ),
10941080 SND_PCI_QUIRK (0x1c06 , 0x2012 , "Lemote A1205" , CXT_PINCFG_LEMOTE_A1205 ),
1095- SND_PCI_QUIRK (0x2782 , 0x12c3 , "Sirius Gen1" , CXT_PINCFG_TOP_SPEAKER ),
1096- SND_PCI_QUIRK (0x2782 , 0x12c5 , "Sirius Gen2" , CXT_PINCFG_TOP_SPEAKER ),
1081+ HDA_CODEC_QUIRK (0x2782 , 0x12c3 , "Sirius Gen1" , CXT_PINCFG_TOP_SPEAKER ),
1082+ HDA_CODEC_QUIRK (0x2782 , 0x12c5 , "Sirius Gen2" , CXT_PINCFG_TOP_SPEAKER ),
10971083 {}
10981084};
10991085
0 commit comments