Skip to content

Commit 35076e3

Browse files
bo liugregkh
authored andcommitted
ALSA: hda/conexant: Add quirk for SWS JS201D
commit 4639c50 upstream. The SWS JS201D need a different pinconfig from windows driver. Add a quirk to use a specific pinconfig to SWS JS201D. Signed-off-by: bo liu <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 53e8abc commit 35076e3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sound/pci/hda/patch_conexant.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ enum {
344344
CXT_FIXUP_HP_ZBOOK_MUTE_LED,
345345
CXT_FIXUP_HEADSET_MIC,
346346
CXT_FIXUP_HP_MIC_NO_PRESENCE,
347+
CXT_PINCFG_SWS_JS201D,
347348
};
348349

349350
/* for hda_fixup_thinkpad_acpi() */
@@ -841,6 +842,17 @@ static const struct hda_pintbl cxt_pincfg_lemote[] = {
841842
{}
842843
};
843844

845+
/* SuoWoSi/South-holding JS201D with sn6140 */
846+
static const struct hda_pintbl cxt_pincfg_sws_js201d[] = {
847+
{ 0x16, 0x03211040 }, /* hp out */
848+
{ 0x17, 0x91170110 }, /* SPK/Class_D */
849+
{ 0x18, 0x95a70130 }, /* Internal mic */
850+
{ 0x19, 0x03a11020 }, /* Headset Mic */
851+
{ 0x1a, 0x40f001f0 }, /* Not used */
852+
{ 0x21, 0x40f001f0 }, /* Not used */
853+
{}
854+
};
855+
844856
static const struct hda_fixup cxt_fixups[] = {
845857
[CXT_PINCFG_LENOVO_X200] = {
846858
.type = HDA_FIXUP_PINS,
@@ -996,6 +1008,10 @@ static const struct hda_fixup cxt_fixups[] = {
9961008
.chained = true,
9971009
.chain_id = CXT_FIXUP_HEADSET_MIC,
9981010
},
1011+
[CXT_PINCFG_SWS_JS201D] = {
1012+
.type = HDA_FIXUP_PINS,
1013+
.v.pins = cxt_pincfg_sws_js201d,
1014+
},
9991015
};
10001016

10011017
static const struct snd_pci_quirk cxt5045_fixups[] = {
@@ -1069,6 +1085,7 @@ static const struct snd_pci_quirk cxt5066_fixups[] = {
10691085
SND_PCI_QUIRK(0x103c, 0x8457, "HP Z2 G4 mini", CXT_FIXUP_HP_MIC_NO_PRESENCE),
10701086
SND_PCI_QUIRK(0x103c, 0x8458, "HP Z2 G4 mini premium", CXT_FIXUP_HP_MIC_NO_PRESENCE),
10711087
SND_PCI_QUIRK(0x1043, 0x138d, "Asus", CXT_FIXUP_HEADPHONE_MIC_PIN),
1088+
SND_PCI_QUIRK(0x14f1, 0x0265, "SWS JS201D", CXT_PINCFG_SWS_JS201D),
10721089
SND_PCI_QUIRK(0x152d, 0x0833, "OLPC XO-1.5", CXT_FIXUP_OLPC_XO),
10731090
SND_PCI_QUIRK(0x17aa, 0x20f2, "Lenovo T400", CXT_PINCFG_LENOVO_TP410),
10741091
SND_PCI_QUIRK(0x17aa, 0x215e, "Lenovo T410", CXT_PINCFG_LENOVO_TP410),
@@ -1109,6 +1126,7 @@ static const struct hda_model_fixup cxt5066_fixup_models[] = {
11091126
{ .id = CXT_FIXUP_HP_ZBOOK_MUTE_LED, .name = "hp-zbook-mute-led" },
11101127
{ .id = CXT_FIXUP_HP_MIC_NO_PRESENCE, .name = "hp-mic-fix" },
11111128
{ .id = CXT_PINCFG_LENOVO_NOTEBOOK, .name = "lenovo-20149" },
1129+
{ .id = CXT_PINCFG_SWS_JS201D, .name = "sws-js201d" },
11121130
{}
11131131
};
11141132

0 commit comments

Comments
 (0)