Re: [PATCH v3 2/3] ASoC: Intel: soc-acpi-cht: Add Lenovo Yoga Book entries

From: Cezary Rojewski

Date: Thu Jun 11 2026 - 04:51:20 EST


On 6/11/2026 1:51 AM, Yauhen Kharuzhy wrote:
Lenovo Yoga Book YB1-X91 device uses a Cherry Trail SoC and has a valid
ACPI DSDT entry for the RT5677 codec. This entry has some non-standard
resource definitions, such as jack detection chip information, and
hardware has some additional GPIO controls so use 'cht-yogabook'
for the driver name instead of some default (like 'cht-bsw-rt5677').

...

diff --git a/sound/soc/intel/common/soc-acpi-intel-cht-match.c b/sound/soc/intel/common/soc-acpi-intel-cht-match.c
index 28f600171f9d..5e8a1dc84ee1 100644
--- a/sound/soc/intel/common/soc-acpi-intel-cht-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-cht-match.c

...

@@ -121,6 +147,20 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_cherrytrail_machines[] = {
.board = "cht-bsw",
.sof_tplg_filename = "sof-cht-rt5670.tplg",
},
+ /*
+ * The only known Cherry Trail device with RT5677 codec and 10EC677
+ * DSTD entry is the Lenovo Yoga Book YB1-X91. It has a device-specific
+ * driver, so check DMI and use a machine quirk to override the default
+ * (non-existent) machine driver.
+ */
+ {
+ .id = "10EC5677",
+ .drv_name = "cht-bsw-rt5677",
+ .fw_filename = "intel/fw_sst_22a8.bin",
+ .board = "cht-bsw",
+ .machine_quirk = cht_quirk,
+ .sof_tplg_filename = "sof-cht-rt5677.tplg",

The cover letter reads:

v3:
(...)
- Remove support for SOF;

and yet here you're assigning .sof_tplg_filename.
+ },
{
.comp_ids = &rt5645_comp_ids,
.drv_name = "cht-bsw-rt5645",