Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795617617; b=ctnCOUzNRj8fUzvA1hajdaN2vIPoiqEyXEVOHRyY4tGpnZij6Zt6zUa5n5FLz6+GIDl1 5TIdfsYGIu1nwcFcr9f1SFfrLuFtskmM5DvZq1M2sFKq7WV93xQDI1td/GVDEIKMTsLaP us5dAuIWDjy7uEdRMZOY/O2JYeobdYRpo4K2w/h3/lodabrxkaGNXfzwpvLDKvLO6r0Qf yZEFx9FvsX9hep/2XwCWfWg7ZQjTBAHnVGlHZ2Wj2+iwHZjW5AgVN0qL0XymZPBVwisEE VDHlkE7Sscz7eVLIxxf9oNSkogB10YCtuHF+ZQCa9tAymPaGXXbHeInLrhKO9oMapgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795617617; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=Oo4YtMyYrWDiZ6LGuMUrjXomE1WNM1zu0IkNursfAB4=; b=hpR671WemchHQwb38+Jmzo2lVHDqF7OaYva843cltQPXoaRzmCIvm15ZLjg1NgmCBP0J Tc7lo9S2YnUdvWxby+vjHYOiiFwBUJ39M87vR77oQuRP8H/uWRlaMNvnE+d1y15OSHGHY 8KRn6eLUApsa2FmAtdE41vB9PDK8VJ2bsuRReDeSfESKDVhEK/gtKfV3FksZdel++hfp6 HiJ5IOfOFycf8DXxkAVdBw+iHkgUkBBT8C9QjMGXQl11RCggP4E/N04RqFuJbD8DhGNIe Zd7875km2W714c0eOgTWPreba/OBoOF7Z7YTHhTvkcvdmPWBr4Msg7tRt6k5Bv/2aHQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wlcvyyiF; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3805606A321; Wed, 25 Nov 2026 14:40:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wlcvyyiF Received: by smtp.kernel.org (Postfix) with ESMTPSA id 100AF1F000C0; Wed, 25 Nov 2026 14:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795617617; bh=Oo4YtMyYrWDiZ6LGuMUrjXomE1WNM1zu0IkNursfAB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=wlcvyyiFD0QANJBku9wwzph+CI4Ipa4rFL/CR/HU/Tok6eRNrDHmwFhpgUJ1o7aGT LkLU7VqxEHDXnzEFpK6kHzXMLY6n5i/P3q8+1b6vitPTMe5g7Vtf+eyAF/wtv+vPat M7qG+qR6eurN0JomSfjJB1ru45vPFUnlMUbtvybA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Pierre-Louis Bossart , Bard Liao , Sergey Lebedev , German Pablo Lindo , Vinod Koul , Sasha Levin Subject: [PATCH 7.3 0005/1005] soundwire: dmi-quirks: drop the ghost RT1320 on the Surface Pro 11 (Intel) Date: Wed, 25 Nov 2026 15:22:23 +0100 Message-ID: <20261125143821.863685822@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261125143821.729802100@linuxfoundation.org> References: <20261125143821.729802100@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sergey Lebedev [ Upstream commit d32e04c052342d7d1cc03f6ba4cbd135cd0112bc ] 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. Link: https://lore.kernel.org/linux-sound/20260830151516.44629-1-lsa.uz@pm.me/ Suggested-by: Pierre-Louis Bossart Suggested-by: Bard Liao Signed-off-by: Sergey Lebedev Reviewed-by: Pierre-Louis Bossart Tested-by: German Pablo Lindo Link: https://patch.msgid.link/20260913210849.6446-1-lsa.uz@pm.me Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/soundwire/dmi-quirks.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/soundwire/dmi-quirks.c b/drivers/soundwire/dmi-quirks.c index 197b754068920..0daa877cd9055 100644 --- a/drivers/soundwire/dmi-quirks.c +++ b/drivers/soundwire/dmi-quirks.c @@ -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 */ { @@ -249,6 +268,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, + }, {} }; -- 2.53.0