* [PATCH v2] ALSA: hda/realtek: Add quirks for ASUS GU604V and GU603V
@ 2023-05-11 16:15 Alexandru Sorodoc
2023-05-11 17:00 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Alexandru Sorodoc @ 2023-05-11 16:15 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: Stefan Binding, Tim Crawford, Andy Chi, Meng Tang, Luke D. Jones,
Philipp Jungkamp, Kacper Michajłow, Yuchi Yang, alsa-devel,
linux-kernel, Alexandru Sorodoc
These models use 2 CS35L41 amplifiers using SPI for down-facing
speakers.
alc285_fixup_speaker2_to_dac1 is needed to fix volume control of the
down-facing speakers.
Pin configs are needed to enable headset mic detection.
Note that these models lack the ACPI _DSD properties needed to
initialize the amplifiers. They can be added during boot to get working
sound out of the speakers:
https://gist.github.com/lamperez/862763881c0e1c812392b5574727f6ff
Signed-off-by: Alexandru Sorodoc <ealex95@gmail.com>
---
v2:
Fixed position of quirk entries in table
sound/pci/hda/patch_realtek.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index bc062c0a1916..4c87a95c5d3d 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -7063,6 +7063,8 @@ enum {
ALC225_FIXUP_DELL1_MIC_NO_PRESENCE,
ALC295_FIXUP_DISABLE_DAC3,
ALC285_FIXUP_SPEAKER2_TO_DAC1,
+ ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1,
+ ALC285_FIXUP_ASUS_HEADSET_MIC,
ALC280_FIXUP_HP_HEADSET_MIC,
ALC221_FIXUP_HP_FRONT_MIC,
ALC292_FIXUP_TPT460,
@@ -8033,6 +8035,22 @@ static const struct hda_fixup alc269_fixups[] = {
.chained = true,
.chain_id = ALC269_FIXUP_THINKPAD_ACPI
},
+ [ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc285_fixup_speaker2_to_dac1,
+ .chained = true,
+ .chain_id = ALC245_FIXUP_CS35L41_SPI_2
+ },
+ [ALC285_FIXUP_ASUS_HEADSET_MIC] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x19, 0x03a11050 },
+ { 0x1b, 0x03a11c30 },
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1
+ },
[ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER] = {
.type = HDA_FIXUP_PINS,
.v.pins = (const struct hda_pintbl[]) {
@@ -9500,6 +9518,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC),
SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
+ SND_PCI_QUIRK(0x1043, 0x1473, "ASUS GU604V", ALC285_FIXUP_ASUS_HEADSET_MIC),
+ SND_PCI_QUIRK(0x1043, 0x1483, "ASUS GU603V", ALC285_FIXUP_ASUS_HEADSET_MIC),
SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A),
SND_PCI_QUIRK(0x1043, 0x1662, "ASUS GV301QH", ALC294_FIXUP_ASUS_DUAL_SPK),
SND_PCI_QUIRK(0x1043, 0x1683, "ASUS UM3402YAR", ALC287_FIXUP_CS35L41_I2C_2),
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v2] ALSA: hda/realtek: Add quirks for ASUS GU604V and GU603V
2023-05-11 16:15 [PATCH v2] ALSA: hda/realtek: Add quirks for ASUS GU604V and GU603V Alexandru Sorodoc
@ 2023-05-11 17:00 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2023-05-11 17:00 UTC (permalink / raw)
To: Alexandru Sorodoc
Cc: Jaroslav Kysela, Takashi Iwai, Stefan Binding, Tim Crawford,
Andy Chi, Meng Tang, Luke D. Jones, Philipp Jungkamp,
Kacper Michajłow, Yuchi Yang, alsa-devel, linux-kernel
On Thu, 11 May 2023 18:15:10 +0200,
Alexandru Sorodoc wrote:
>
> These models use 2 CS35L41 amplifiers using SPI for down-facing
> speakers.
>
> alc285_fixup_speaker2_to_dac1 is needed to fix volume control of the
> down-facing speakers.
>
> Pin configs are needed to enable headset mic detection.
>
> Note that these models lack the ACPI _DSD properties needed to
> initialize the amplifiers. They can be added during boot to get working
> sound out of the speakers:
> https://gist.github.com/lamperez/862763881c0e1c812392b5574727f6ff
>
> Signed-off-by: Alexandru Sorodoc <ealex95@gmail.com>
> ---
> v2:
> Fixed position of quirk entries in table
Thanks, applied now.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-11 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-11 16:15 [PATCH v2] ALSA: hda/realtek: Add quirks for ASUS GU604V and GU603V Alexandru Sorodoc
2023-05-11 17:00 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox