ALSA: hda: cs35l41: Fix swapped l/r audio channels for Acer Helios laptops
authorStefan Binding <sbinding@opensource.cirrus.com>
Thu, 15 May 2025 16:28:33 +0000 (17:28 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 May 2025 07:59:19 +0000 (09:59 +0200)
Fixes audio channel assignment from ACPI using configuration table.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://patch.msgid.link/20250515162848.405055-3-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda_property.c

index 61d2314834e7b1da13c9b6189891cb35c6c8a2d2..d8249d997c2a0bc8cc023e072657f0bc3d0d0fe5 100644 (file)
@@ -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 },