Skip to content

Commit e2a829b

Browse files
berolinuxtiwai
authored andcommitted
ALSA: hda/realtek - Fix speakers on Acer Predator Helios 500 Ryzen laptops
On an Acer Predator Helios 500 (Ryzen version), the laptop's speakers don't work out of the box. The problem can be worked around with hdajackretask, remapping the "Black Headphone, Right side" pin (0x21) to the Internal speaker. This patch adds a quirk to change this mapping by default. [ corrected ALC299_FIXUP_PREDATOR_SPK definition and adapted for the latest tree by tiwai ] Signed-off-by: Bernhard Rosenkraenzer <bero@lindev.ch> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 113ce08 commit e2a829b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5689,6 +5689,7 @@ enum {
56895689
ALC225_FIXUP_WYSE_DISABLE_MIC_VREF,
56905690
ALC286_FIXUP_ACER_AIO_HEADSET_MIC,
56915691
ALC256_FIXUP_ASUS_MIC_NO_PRESENCE,
5692+
ALC299_FIXUP_PREDATOR_SPK,
56925693
};
56935694

56945695
static const struct hda_fixup alc269_fixups[] = {
@@ -6706,6 +6707,13 @@ static const struct hda_fixup alc269_fixups[] = {
67066707
.chained = true,
67076708
.chain_id = ALC256_FIXUP_ASUS_HEADSET_MODE
67086709
},
6710+
[ALC299_FIXUP_PREDATOR_SPK] = {
6711+
.type = HDA_FIXUP_PINS,
6712+
.v.pins = (const struct hda_pintbl[]) {
6713+
{ 0x21, 0x90170150 }, /* use as headset mic, without its own jack detect */
6714+
{ }
6715+
}
6716+
},
67096717
};
67106718

67116719
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -6724,6 +6732,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
67246732
SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK),
67256733
SND_PCI_QUIRK(0x1025, 0x1099, "Acer Aspire E5-523G", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
67266734
SND_PCI_QUIRK(0x1025, 0x110e, "Acer Aspire ES1-432", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
6735+
SND_PCI_QUIRK(0x1025, 0x1246, "Acer Predator Helios 500", ALC299_FIXUP_PREDATOR_SPK),
67276736
SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
67286737
SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
67296738
SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
@@ -7124,6 +7133,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
71247133
{.id = ALC255_FIXUP_DELL_HEADSET_MIC, .name = "alc255-dell-headset"},
71257134
{.id = ALC295_FIXUP_HP_X360, .name = "alc295-hp-x360"},
71267135
{.id = ALC295_FIXUP_CHROME_BOOK, .name = "alc-sense-combo"},
7136+
{.id = ALC299_FIXUP_PREDATOR_SPK, .name = "predator-spk"},
71277137
{}
71287138
};
71297139
#define ALC225_STANDARD_PINS \

0 commit comments

Comments
 (0)