Skip to content

Commit 80690a2

Browse files
tuxedorstiwai
authored andcommitted
ALSA: hda/realtek - Add quirk for Tuxedo XC 1509
This adds a SND_PCI_QUIRK(...) line for the Tuxedo XC 1509. The Tuxedo XC 1509 and the System76 oryp5 are the same barebone notebooks manufactured by Clevo. To name the fixups both use after the actual underlying hardware, this patch also changes System76_orpy5 to clevo_pb51ed in 2 enum symbols and one function name, matching the other pci_quirk entries which are also named after the device ODM. Fixes: 7f665b1 ("ALSA: hda/realtek - Headset microphone and internal speaker support for System76 oryp5") Signed-off-by: Richard Sailer <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 8983eb6 commit 80690a2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Diff for: sound/pci/hda/patch_realtek.c

+10-9
Original file line numberDiff line numberDiff line change
@@ -1864,8 +1864,8 @@ enum {
18641864
ALC887_FIXUP_BASS_CHMAP,
18651865
ALC1220_FIXUP_GB_DUAL_CODECS,
18661866
ALC1220_FIXUP_CLEVO_P950,
1867-
ALC1220_FIXUP_SYSTEM76_ORYP5,
1868-
ALC1220_FIXUP_SYSTEM76_ORYP5_PINS,
1867+
ALC1220_FIXUP_CLEVO_PB51ED,
1868+
ALC1220_FIXUP_CLEVO_PB51ED_PINS,
18691869
};
18701870

18711871
static void alc889_fixup_coef(struct hda_codec *codec,
@@ -2070,7 +2070,7 @@ static void alc1220_fixup_clevo_p950(struct hda_codec *codec,
20702070
static void alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec,
20712071
const struct hda_fixup *fix, int action);
20722072

2073-
static void alc1220_fixup_system76_oryp5(struct hda_codec *codec,
2073+
static void alc1220_fixup_clevo_pb51ed(struct hda_codec *codec,
20742074
const struct hda_fixup *fix,
20752075
int action)
20762076
{
@@ -2322,18 +2322,18 @@ static const struct hda_fixup alc882_fixups[] = {
23222322
.type = HDA_FIXUP_FUNC,
23232323
.v.func = alc1220_fixup_clevo_p950,
23242324
},
2325-
[ALC1220_FIXUP_SYSTEM76_ORYP5] = {
2325+
[ALC1220_FIXUP_CLEVO_PB51ED] = {
23262326
.type = HDA_FIXUP_FUNC,
2327-
.v.func = alc1220_fixup_system76_oryp5,
2327+
.v.func = alc1220_fixup_clevo_pb51ed,
23282328
},
2329-
[ALC1220_FIXUP_SYSTEM76_ORYP5_PINS] = {
2329+
[ALC1220_FIXUP_CLEVO_PB51ED_PINS] = {
23302330
.type = HDA_FIXUP_PINS,
23312331
.v.pins = (const struct hda_pintbl[]) {
23322332
{ 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
23332333
{}
23342334
},
23352335
.chained = true,
2336-
.chain_id = ALC1220_FIXUP_SYSTEM76_ORYP5,
2336+
.chain_id = ALC1220_FIXUP_CLEVO_PB51ED,
23372337
},
23382338
};
23392339

@@ -2411,8 +2411,9 @@ static const struct snd_pci_quirk alc882_fixup_tbl[] = {
24112411
SND_PCI_QUIRK(0x1558, 0x9501, "Clevo P950HR", ALC1220_FIXUP_CLEVO_P950),
24122412
SND_PCI_QUIRK(0x1558, 0x95e1, "Clevo P95xER", ALC1220_FIXUP_CLEVO_P950),
24132413
SND_PCI_QUIRK(0x1558, 0x95e2, "Clevo P950ER", ALC1220_FIXUP_CLEVO_P950),
2414-
SND_PCI_QUIRK(0x1558, 0x96e1, "System76 Oryx Pro (oryp5)", ALC1220_FIXUP_SYSTEM76_ORYP5_PINS),
2415-
SND_PCI_QUIRK(0x1558, 0x97e1, "System76 Oryx Pro (oryp5)", ALC1220_FIXUP_SYSTEM76_ORYP5_PINS),
2414+
SND_PCI_QUIRK(0x1558, 0x96e1, "System76 Oryx Pro (oryp5)", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2415+
SND_PCI_QUIRK(0x1558, 0x97e1, "System76 Oryx Pro (oryp5)", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2416+
SND_PCI_QUIRK(0x1558, 0x65d1, "Tuxedo Book XC1509", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
24162417
SND_PCI_QUIRK_VENDOR(0x1558, "Clevo laptop", ALC882_FIXUP_EAPD),
24172418
SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_FIXUP_EAPD),
24182419
SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Y530", ALC882_FIXUP_LENOVO_Y530),

0 commit comments

Comments
 (0)