]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
soundwire: dmi-quirks: Disable ghost Realtek devices
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 20 May 2026 16:36:31 +0000 (17:36 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 29 May 2026 06:33:13 +0000 (12:03 +0530)
Many systems ship with a Realtek audio codec in the ACPI that doesn't
physically exist in the system. This confuses the newer function
topology system that creates the soundcard, as it builds the card based
on the ACPI information.

Whilst we are working with the laptop vendors to try and stop this
happening there are quite a few systems where this has shipped. Add a
quirk to disable this "ghost" device.

Currently this patch should cover:
 - Asus UX5406AA
 - Lenovo Yoga Pro 9i (83SF)
 - Lenovo Yoga Slim 7 Ultra (83QK)

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260520163631.3300102-4-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/dmi-quirks.c

index 5854218e1a274e4293deaf6e82d9d6bc59afff37..32a46a2d90f7caa0f6804f69514cf5b8af4d123c 100644 (file)
@@ -90,6 +90,19 @@ static const struct adr_remap intel_rooks_county[] = {
        {}
 };
 
+/*
+ * Many platforms have ghost realtek devices in the ACPI that don't physically
+ * exist, remove those devices.
+ */
+static const struct adr_remap ghost_realtek[] = {
+       /* rt722 on link3 */
+       {
+               0x000330025d072201ull,
+               0x0000000000000000ull
+       },
+       {}
+};
+
 static const struct dmi_system_id adr_remap_quirk_table[] = {
        /* TGL devices */
        {
@@ -164,6 +177,28 @@ static const struct dmi_system_id adr_remap_quirk_table[] = {
                },
                .driver_data = (void *)hp_omen_16,
        },
+       /* PTL devices */
+       {
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "ASUS"),
+                       DMI_MATCH(DMI_BOARD_NAME, "UX5406AA"),
+               },
+               .driver_data = (void *)ghost_realtek,
+       },
+       {
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "83QK"),
+               },
+               .driver_data = (void *)ghost_realtek,
+       },
+       {
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "83SF"),
+               },
+               .driver_data = (void *)ghost_realtek,
+       },
        {}
 };