Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41
@ 2025-05-15 16:28 Stefan Binding
  2025-05-15 16:28 ` [PATCH v1 1/2] ALSA: hda/realtek: Add support for Acer Helios Laptops using CS35L41 HDA Stefan Binding
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Binding @ 2025-05-15 16:28 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-kernel, patches, Stefan Binding

Add support for three Acer laptops using CS35L41 HDA.
These laptops use External boost with I2C.

Stefan Binding (2):
  ALSA: hda/realtek: Add support for Acer Helios Laptops using CS35L41
    HDA
  ALSA: hda: cs35l41: Fix swapped l/r audio channels for Acer Helios
    laptops

 sound/pci/hda/cs35l41_hda_property.c |  6 ++++++
 sound/pci/hda/patch_realtek.c        | 10 ++++++++++
 2 files changed, 16 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 1/2] ALSA: hda/realtek: Add support for Acer Helios Laptops using CS35L41 HDA
  2025-05-15 16:28 [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41 Stefan Binding
@ 2025-05-15 16:28 ` Stefan Binding
  2025-05-15 16:28 ` [PATCH v1 2/2] ALSA: hda: cs35l41: Fix swapped l/r audio channels for Acer Helios laptops Stefan Binding
  2025-05-16  7:59 ` [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41 Takashi Iwai
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Binding @ 2025-05-15 16:28 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-kernel, patches, Stefan Binding

Laptops use 2 CS35L41 Amps with HDA, using External boost with I2C.
Similar to previous Acer laptops, these laptops also need the
ALC255_FIXUP_PREDATOR_SUBWOOFER quirk to function properly.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
---
 sound/pci/hda/patch_realtek.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 8a2b09e4a7d5..ba06b067cf4d 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -8026,6 +8026,7 @@ enum {
 	ALC283_FIXUP_DELL_HP_RESUME,
 	ALC294_FIXUP_ASUS_CS35L41_SPI_2,
 	ALC274_FIXUP_HP_AIO_BIND_DACS,
+	ALC287_FIXUP_PREDATOR_SPK_CS35L41_I2C_2,
 };
 
 /* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -9298,6 +9299,12 @@ static const struct hda_fixup alc269_fixups[] = {
 			{ }
 		}
 	},
+	[ALC287_FIXUP_PREDATOR_SPK_CS35L41_I2C_2] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = cs35l41_fixup_i2c_two,
+		.chained = true,
+		.chain_id = ALC255_FIXUP_PREDATOR_SUBWOOFER
+	},
 	[ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE] = {
 		.type = HDA_FIXUP_PINS,
 		.v.pins = (const struct hda_pintbl[]) {
@@ -10453,6 +10460,9 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1025, 0x1534, "Acer Predator PH315-54", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1025, 0x159c, "Acer Nitro 5 AN515-58", ALC2XX_FIXUP_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1025, 0x169a, "Acer Swift SFG16", ALC256_FIXUP_ACER_SFG16_MICMUTE_LED),
+	SND_PCI_QUIRK(0x1025, 0x1826, "Acer Helios ZPC", ALC287_FIXUP_PREDATOR_SPK_CS35L41_I2C_2),
+	SND_PCI_QUIRK(0x1025, 0x182c, "Acer Helios ZPD", ALC287_FIXUP_PREDATOR_SPK_CS35L41_I2C_2),
+	SND_PCI_QUIRK(0x1025, 0x1844, "Acer Helios ZPS", ALC287_FIXUP_PREDATOR_SPK_CS35L41_I2C_2),
 	SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
 	SND_PCI_QUIRK(0x1028, 0x053c, "Dell Latitude E5430", ALC292_FIXUP_DELL_E7X),
 	SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS),
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v1 2/2] ALSA: hda: cs35l41: Fix swapped l/r audio channels for Acer Helios laptops
  2025-05-15 16:28 [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41 Stefan Binding
  2025-05-15 16:28 ` [PATCH v1 1/2] ALSA: hda/realtek: Add support for Acer Helios Laptops using CS35L41 HDA Stefan Binding
@ 2025-05-15 16:28 ` Stefan Binding
  2025-05-16  7:59 ` [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41 Takashi Iwai
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Binding @ 2025-05-15 16:28 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-kernel, patches, Stefan Binding

Fixes audio channel assignment from ACPI using configuration table.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
---
 sound/pci/hda/cs35l41_hda_property.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sound/pci/hda/cs35l41_hda_property.c b/sound/pci/hda/cs35l41_hda_property.c
index 61d2314834e7..d8249d997c2a 100644
--- a/sound/pci/hda/cs35l41_hda_property.c
+++ b/sound/pci/hda/cs35l41_hda_property.c
@@ -31,6 +31,9 @@ struct cs35l41_config {
 };
 
 static const struct cs35l41_config cs35l41_config_table[] = {
+	{ "10251826", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 },
+	{ "1025182C", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 },
+	{ "10251844", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 },
 	{ "10280B27", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
 	{ "10280B28", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
 	{ "10280BEB", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, -1, 0, 0, 0, 0 },
@@ -452,6 +455,9 @@ struct cs35l41_prop_model {
 static const struct cs35l41_prop_model cs35l41_prop_model_table[] = {
 	{ "CLSA0100", NULL, lenovo_legion_no_acpi },
 	{ "CLSA0101", NULL, lenovo_legion_no_acpi },
+	{ "CSC3551", "10251826", generic_dsd_config },
+	{ "CSC3551", "1025182C", generic_dsd_config },
+	{ "CSC3551", "10251844", generic_dsd_config },
 	{ "CSC3551", "10280B27", generic_dsd_config },
 	{ "CSC3551", "10280B28", generic_dsd_config },
 	{ "CSC3551", "10280BEB", generic_dsd_config },
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41
  2025-05-15 16:28 [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41 Stefan Binding
  2025-05-15 16:28 ` [PATCH v1 1/2] ALSA: hda/realtek: Add support for Acer Helios Laptops using CS35L41 HDA Stefan Binding
  2025-05-15 16:28 ` [PATCH v1 2/2] ALSA: hda: cs35l41: Fix swapped l/r audio channels for Acer Helios laptops Stefan Binding
@ 2025-05-16  7:59 ` Takashi Iwai
  2 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2025-05-16  7:59 UTC (permalink / raw)
  To: Stefan Binding
  Cc: Jaroslav Kysela, Takashi Iwai, linux-sound, linux-kernel, patches

On Thu, 15 May 2025 18:28:31 +0200,
Stefan Binding wrote:
> 
> Add support for three Acer laptops using CS35L41 HDA.
> These laptops use External boost with I2C.
> 
> Stefan Binding (2):
>   ALSA: hda/realtek: Add support for Acer Helios Laptops using CS35L41
>     HDA
>   ALSA: hda: cs35l41: Fix swapped l/r audio channels for Acer Helios
>     laptops

Applied both patches now to for-next branch.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-16  7:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-15 16:28 [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41 Stefan Binding
2025-05-15 16:28 ` [PATCH v1 1/2] ALSA: hda/realtek: Add support for Acer Helios Laptops using CS35L41 HDA Stefan Binding
2025-05-15 16:28 ` [PATCH v1 2/2] ALSA: hda: cs35l41: Fix swapped l/r audio channels for Acer Helios laptops Stefan Binding
2025-05-16  7:59 ` [PATCH v1 0/2] Add Support for three Acer laptops using CS35L41 Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox