From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-10629.protonmail.ch (mail-10629.protonmail.ch [79.135.106.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC9C63B4423 for ; Sun, 30 Aug 2026 15:15:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.135.106.29 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788102953; cv=none; b=kA3bqvEuC40KP8lHSFGNbays5+TtXFRbu169IMPe6tHNT92HeYR1lTxp1FgDgAdaIpB163AsOH55t8Vo1sOJ8nzIOv4kWYkeltFHpqOisNPZ14pKjOHopIK6drD5p3S6K++M/hX1fZnE+XkRCF2HAQv9tZLVYvkhnUY6KEy4gj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788102953; c=relaxed/simple; bh=iZgjrGqnvOe5pgKwZsQS0+wbB/M9mLRAIsEhxtznrRs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RKDB1e/no65wJlGJwlsFLjXE6JAGGNh9PMInhbtN/WoO1V4rco6ix6c0RnqN1e/n9s7Z/HaY7xwBf8odiia1dtGhQsU7SuxV5WKmPY1P9SYFXE8IXkOtVsYiVnnefdIBpPQUAFvF0zMOp8UG0MHSVg3OvolNrIeoOlas32Tuiag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b=itRhO6NT; arc=none smtp.client-ip=79.135.106.29 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="itRhO6NT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1788102948; x=1788362148; bh=QfDLdBTxpW4yJTto1iymVZAPtNCOLmuHYXz56aJF9po=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=itRhO6NTudB5PM7L+AESHmkpZdY2KhlSSiXqdhgCbkcV0Twezvw+1Qhx7j9FVMsbz aGdOva6Z7cPFUN42PqgFRrQdZoB37cxicBKwQ3+zapmsDh3Nf/uafzQQ9AdVCa6VD0 b8rM/1oK3hClxJvFF00H+UCkoFUR5B0pTCblinl/lrfgAU0iwqKU+7Al1XcjPJUbN2 qk16IZ7RiNRHBj7+5E1igeQ8oNW8A3fpEZbjFEBy9vVA15BhJhJmUx21pteawT5+J0 v7ntJTlTt8VFgZynmS6uWDiQT9BFuByMBkwz96z5EWQCvmb7m/OCh920uIb9YPQJqH scxdzPK4JwCtg== Date: Sun, 30 Aug 2026 15:15:45 +0000 To: Vinod Koul , Bard Liao , Pierre-Louis Bossart , Oder Chiou , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai From: Sergey Lebedev Cc: Bard Liao , Amaan Lalani , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] soundwire: dmi-quirks: drop the ghost RT1320 on the Surface Pro 11 (Intel) Message-ID: <20260830151516.44629-3-lsa.uz@pm.me> In-Reply-To: <20260830151516.44629-1-lsa.uz@pm.me> References: <20260830151516.44629-1-lsa.uz@pm.me> Feedback-ID: 113843758:user:proton X-Pm-Message-ID: d09a73fc846615f0aa6b8870a18c2b6942338aee Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. Suggested-by: Pierre-Louis Bossart Suggested-by: Bard Liao Signed-off-by: Sergey Lebedev --- 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 d75037558..8b3c5c8d1 100644 --- a/drivers/soundwire/dmi-quirks.c +++ b/drivers/soundwire/dmi-quirks.c @@ -111,6 +111,25 @@ static const struct adr_remap ghost_realtek[] =3D { =09{} }; =20 +/* + * The Microsoft Surface Pro 11 (Intel) describes its single physical RT13= 20 + * amplifier twice on link 0, as two _ADR entries differing only in SDCA c= lass + * id and sharing the same unique id. Only the class 1 entry enumerates; t= he + * 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 t= he + * _ADR. Keying on the SKU keeps this remap to the hardware it was verifie= d on. + */ +static const struct adr_remap microsoft_sp11_intel[] =3D { +=09/* ghost rt1320 on link0 */ +=09{ +=09=090x000030025d132000ull, +=09=090x0000000000000000ull +=09}, +=09{} +}; + static const struct dmi_system_id adr_remap_quirk_table[] =3D { =09/* TGL devices */ =09{ @@ -207,6 +226,15 @@ static const struct dmi_system_id adr_remap_quirk_tabl= e[] =3D { =09=09}, =09=09.driver_data =3D (void *)ghost_realtek, =09}, +=09/* LNL devices */ +=09{ +=09=09.matches =3D { +=09=09=09DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), +=09=09=09DMI_EXACT_MATCH(DMI_PRODUCT_SKU, +=09=09=09=09=09"Surface_Pro_11th_Edition_With_Intel_For_Business_2103") +=09=09}, +=09=09.driver_data =3D (void *)microsoft_sp11_intel, +=09}, =09{} }; =20 --=20 2.50.1 (Apple Git-155)