mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] soundwire: dmi-quirks: Disable ghost devices
@ 2026-09-28 10:56 Bard Liao
  2026-09-28 10:56 ` [PATCH 1/2] soundwire: dmi-quirks: Disable ghost Realtek on Lenovo Yoga 7 Pro Bard Liao
  2026-09-28 10:56 ` [PATCH 2/2] soundwire: dmi-quirks: Disable ghost rt711 on Lenovo Yoga Slim 7 Bard Liao
  0 siblings, 2 replies; 4+ messages in thread
From: Bard Liao @ 2026-09-28 10:56 UTC (permalink / raw)
  To: linux-sound, vkoul
  Cc: vinod.koul, linux-kernel, pierre-louis.bossart, peter.ujfalusi,
	bard.liao

Disable ghost devices on Lenovo Yoga 7 Pro and Lenovo Yoga Slim 7.
The first patch is a RESEND patch and the other one is a new patch.

Bard Liao (2):
  soundwire: dmi-quirks: Disable ghost Realtek on Lenovo Yoga 7 Pro
  soundwire: dmi-quirks: Disable ghost rt711 on Lenovo Yoga Slim 7

 drivers/soundwire/dmi-quirks.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] soundwire: dmi-quirks: Disable ghost Realtek on Lenovo Yoga 7 Pro
  2026-09-28 10:56 [PATCH 0/2] soundwire: dmi-quirks: Disable ghost devices Bard Liao
@ 2026-09-28 10:56 ` Bard Liao
  2026-09-28 10:56 ` [PATCH 2/2] soundwire: dmi-quirks: Disable ghost rt711 on Lenovo Yoga Slim 7 Bard Liao
  1 sibling, 0 replies; 4+ messages in thread
From: Bard Liao @ 2026-09-28 10:56 UTC (permalink / raw)
  To: linux-sound, vkoul
  Cc: vinod.koul, linux-kernel, pierre-louis.bossart, peter.ujfalusi,
	bard.liao

Another Lenovo module that has a Realtek device in the ACPI that
doesn't exist in the physical hardware.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 drivers/soundwire/dmi-quirks.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/soundwire/dmi-quirks.c b/drivers/soundwire/dmi-quirks.c
index 72e59b50b685..0b4f5cec8cfd 100644
--- a/drivers/soundwire/dmi-quirks.c
+++ b/drivers/soundwire/dmi-quirks.c
@@ -235,6 +235,13 @@ static const struct dmi_system_id adr_remap_quirk_table[] = {
 		},
 		.driver_data = (void *)ghost_realtek,
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "83SN"),
+		},
+		.driver_data = (void *)ghost_realtek,
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] soundwire: dmi-quirks: Disable ghost rt711 on Lenovo Yoga Slim 7
  2026-09-28 10:56 [PATCH 0/2] soundwire: dmi-quirks: Disable ghost devices Bard Liao
  2026-09-28 10:56 ` [PATCH 1/2] soundwire: dmi-quirks: Disable ghost Realtek on Lenovo Yoga 7 Pro Bard Liao
@ 2026-09-28 10:56 ` Bard Liao
  2026-09-28 13:04   ` Charles Keepax
  1 sibling, 1 reply; 4+ messages in thread
From: Bard Liao @ 2026-09-28 10:56 UTC (permalink / raw)
  To: linux-sound, vkoul
  Cc: vinod.koul, linux-kernel, pierre-louis.bossart, peter.ujfalusi,
	bard.liao

The device reports both cs42l43 and rt711. But the rt711 codec does not
physically exist. Adding a quirk to disable the ghost device.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 drivers/soundwire/dmi-quirks.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/soundwire/dmi-quirks.c b/drivers/soundwire/dmi-quirks.c
index 0b4f5cec8cfd..11bd4d2681ab 100644
--- a/drivers/soundwire/dmi-quirks.c
+++ b/drivers/soundwire/dmi-quirks.c
@@ -111,6 +111,15 @@ static const struct adr_remap ghost_realtek[] = {
 	{}
 };
 
+static const struct adr_remap ghost_rt711[] = {
+	/* rt711 on link0 */
+	{
+		0x000030025d071101ull,
+		0x0000000000000000ull
+	},
+	{}
+};
+
 static const struct dmi_system_id adr_remap_quirk_table[] = {
 	/* TGL devices */
 	{
@@ -249,6 +258,13 @@ static const struct dmi_system_id adr_remap_quirk_table[] = {
 		},
 		.driver_data = (void *)ghost_realtek,
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "83R0"),
+		},
+		.driver_data = (void *)ghost_rt711,
+	},
 	{}
 };
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] soundwire: dmi-quirks: Disable ghost rt711 on Lenovo Yoga Slim 7
  2026-09-28 10:56 ` [PATCH 2/2] soundwire: dmi-quirks: Disable ghost rt711 on Lenovo Yoga Slim 7 Bard Liao
@ 2026-09-28 13:04   ` Charles Keepax
  0 siblings, 0 replies; 4+ messages in thread
From: Charles Keepax @ 2026-09-28 13:04 UTC (permalink / raw)
  To: Bard Liao
  Cc: linux-sound, vkoul, vinod.koul, linux-kernel,
	pierre-louis.bossart, peter.ujfalusi, bard.liao

On Mon, Sep 28, 2026 at 06:56:40PM +0800, Bard Liao wrote:
> The device reports both cs42l43 and rt711. But the rt711 codec does not
> physically exist. Adding a quirk to disable the ghost device.
> 
> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
> ---

Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-28 13:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 10:56 [PATCH 0/2] soundwire: dmi-quirks: Disable ghost devices Bard Liao
2026-09-28 10:56 ` [PATCH 1/2] soundwire: dmi-quirks: Disable ghost Realtek on Lenovo Yoga 7 Pro Bard Liao
2026-09-28 10:56 ` [PATCH 2/2] soundwire: dmi-quirks: Disable ghost rt711 on Lenovo Yoga Slim 7 Bard Liao
2026-09-28 13:04   ` Charles Keepax

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®