Skip to contentSkip to conversation

soundwire: dmi-quirks: drop the ghost RT1320 on the Surface Pro 11 (Intel)

PATCH Applied Sergey Lebedev 3 participants 3 messages Sep 13 – Oct 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 soundwire: dmi-quirks: drop the ghost RT1320 on the Surface Pro 11 (Intel)

The Microsoft Surface Pro 11 for Business (Intel, Lunar Lake) carries a single physical RT1320 amplifier on link 0 and describes it twice:

  SWRA  _ADR 0x000030025D132000   SDCA class 0
  SWRB  _ADR 0x000030025D132001   SDCA class 1

Identical apart from the class id: same link, same manufacturer, part and version, same unique id 0. The part reports class 1, so only SWRB enumerates. SWRA never attaches on any boot or firmware version tested, including the November 2025 bundle.

The ghost is not harmless. It consumes an amplifier index in find_acpi_adr_device(), so the real part is named "rt1320-2" and the stock sof-soundwire UCM profile enables switches on a device that is not there. Its endpoints also reach create_sdw_dailink(), which builds DAI link names from link id and function type alone; the ghost declares the same SmartMic function as the real part, so the card fails to register at all:

sysfs: cannot create duplicate filename

    '.../sof_sdw/SDW0-Capture-SmartMic'

kobject_add_internal failed for SDW0-Capture-SmartMic with -EEXIST sof_sdw sof_sdw: probe with driver sof_sdw failed with error -12

Remap its _ADR to zero so sdw_acpi_find_slaves() never creates the peripheral, which is how ghost devices are handled already - see ghost_realtek and global_ghost_adr in this file. Both failures then disappear, because neither path is reached.

Matched on DMI_PRODUCT_SKU rather than the product name. A later batch of the same model could carry a different RT1320 version, which would change the _ADR; keying on the SKU keeps this remap to the hardware it was verified on, and follows dell_sku_0A3E above.

---
v4: resent on its own. v3 was a two-patch series whose 1/2 had already been
applied as 9b30521074f0, which makes the series awkward to pick up; this is the remaining patch.

No code change since v3, and it still applies to dmi-quirks.c as that file stands today. Carries Pierre-Louis Bossart's Reviewed-by from the v3 thread.

 drivers/soundwire/dmi-quirks.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
drivers/soundwire/dmi-quirks.c +28 -0
index d75037558..8b3c5c8d1 100644
@@ -111,6 +111,25 @@ static const struct adr_remap ghost_realtek[] = {
 	{}
 };
 
+/*
+ * The Microsoft Surface Pro 11 (Intel) describes its single physical RT1320
+ * amplifier twice on link 0, as two _ADR entries differing only in SDCA class
+ * id and sharing the same unique id. Only the class 1 entry enumerates; the
+ * class 0 entry is a ghost.
+ *
+ * Matched on the product SKU rather than the product name: a later batch of the
+ * same model could carry a different RT1320 version, which would change the
+ * _ADR. Keying on the SKU keeps this remap to the hardware it was verified on.
+ */
+static const struct adr_remap microsoft_sp11_intel[] = {
+	/* ghost rt1320 on link0 */
+	{
+		0x000030025d132000ull,
+		0x0000000000000000ull
+	},
+	{}
+};
+
 static const struct dmi_system_id adr_remap_quirk_table[] = {
 	/* TGL devices */
 	{
@@ -207,6 +226,15 @@ static const struct dmi_system_id adr_remap_quirk_table[] = {
 		},
 		.driver_data = (void *)ghost_realtek,
 	},
+	/* LNL devices */
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_SKU,
+					"Surface_Pro_11th_Edition_With_Intel_For_Business_2103")
+		},
+		.driver_data = (void *)microsoft_sp11_intel,
+	},
 	{}
 };
 
Signature · 1 line
2.50.1 (Apple Git-155)
Tested-by on v4 1/1
#1 lore raw

Test for [PATCH v4] soundwire: dmi-quirks: drop the ghost RT1320 on the Surface Pro 11 (Intel)

The Surface Pro 11 with intel lunar lake series suffers form audio problems caused by ghost peripherals, using this patch solves the problem and makes usable not only the speakers, but also the microphone.

The cuality is not the same as in windows, but is good enough for casual use

The Patch seems it has gotten stuck/forgotten, hope this test brings back on track the patch

maintainer Applied
#2 lore raw
In reply to Sergey Lebedev
Quoted 6 lines · Sergey Lebedev

The Microsoft Surface Pro 11 for Business (Intel, Lunar Lake) carries a single physical RT1320 amplifier on link 0 and describes it twice:

  SWRA  _ADR 0x000030025D132000   SDCA class 0
  SWRB  _ADR 0x000030025D132001   SDCA class 1
Quoted 6 lines

Identical apart from the class id: same link, same manufacturer, part and version, same unique id 0. The part reports class 1, so only SWRB enumerates. SWRA never attaches on any boot or firmware version tested, including the November 2025 bundle.

[...]

Applied, thanks!

[1/1] soundwire: dmi-quirks: drop the ghost RT1320 on the Surface Pro 11 (Intel)

      commit: d32e04c052342d7d1cc03f6ba4cbd135cd0112bc

Best regards,

Signature · 1 line
~Vinod