From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F4BC2DC79A for ; Wed, 10 Jun 2026 23:52:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781135536; cv=none; b=WgARN72KDVrvndpeMu6n6pdjvtiHfCaJTZLIhBa7lFL9+D+DLE0+h0wHs7dUzuOadNND3TCeF+tboAKT9/pQRlI3go2d23g6Fjy+nU3HOvU6xHKpTPiXhbqH6Niklbg/iDWQ0iMkohmECodnCstAjEMIXGP+yUrTP2Pyx7HUae8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781135536; c=relaxed/simple; bh=XvXmjNswgEkkL4IDUq64RMfcvfD8wfe1FUyHGBixG3A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kuAhY/jKPJEnajYWebwi0ml1+6mmrvWD7/XhZBR7vEL86tC1d2S320vBH8hxDUCQnY5gOEyMYNGmCFil+mUvWY4ZiBwX/NK1cWcGJqpvQAKhH8fnpxWTaKKmxPSzLTFBvkyknMPxEz4ifo9MV+o8kioIqg2tumQHBkmXCDh1N80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UVypwsve; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UVypwsve" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-bec423a5265so1192528466b.1 for ; Wed, 10 Jun 2026 16:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781135532; x=1781740332; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=R+wAnMpm8w/PKv4rL1o8F2L6hEkDcrRnbe/1tLY579E=; b=UVypwsvefmJc7sHZXNx0FI/qQvxF1mfT/KUVha7z1Bd5rfwz7TpZf1+KIGg4FzGkfA TQwYsp8qYHuwfx08duNVM7y52TJ+HebwBzczzj7eUTCxF0PehL7zKWsTy3UXG49sUhtg 1pQoklyj0tp/GWYiFO6hL0eN+CO0rbmlbyBUnNVvjzxmgrcFY7yMpCvys4R+ytt4ShYH MZ3YRS2ZHRl7Q5+ISWOBqLn1Sb+LEdtDpHvzyr31PY/5aSWFscplT7oo3EAKQqiaadWj YvHzS1xdalHkIJQrEB2Nl4YSyS/DtsB+G2buMMUHjsKmQFme2iEcE9YnTtrhzuEh3PRz rbjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781135532; x=1781740332; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=R+wAnMpm8w/PKv4rL1o8F2L6hEkDcrRnbe/1tLY579E=; b=eA8x/1xi3fqUjNX2F76+pgna6WC4yGkGUGhwP7p1Y/FVCCNLPBqIfgJbB1zZGHUBhf Zt3nLm8moNpanTKo38FrxvIpy2RtHZKTKhmL6xzVLWhCKSidJzIUz6tO2RBuB0yAwaaX 8zwGnfcKxRUyFaEBVqEWQDSCyamIG+Py9Ag3hQoupWDiwRmAF3avWnPmPL9URrTk8c/H cTufEADQWEEXpoARaYfyyusqD/mQsEucdd+MFcYLdYq4ALWYJ0kNwk/CjGdrAviKOUXQ g/gDl1mHaFcf/5kYCqhyuMDFbw3EPaNNTL4qT038AQayH5uJK9p5YtDSNl2zpI+MAi7L Cl5w== X-Forwarded-Encrypted: i=1; AFNElJ+T4vOh8ITopLFIF46Fa0lO4DuZyQ7DPF2+eYcE9m1pp2Ygc4xMm0J+xou2oDNmNtMEZRbfmkdk7nhnbuI=@vger.kernel.org X-Gm-Message-State: AOJu0YwDfxQTIIKkX4PgnbtIM5AEr4ZiuwhVJi1LDCn7pG0by76vrqv8 Nb8+sPNRh8tCzZn6jN6hwNPBf2xrZOQFZADyy1HZq55qSmOzneh0N0Z3 X-Gm-Gg: Acq92OH2S9+TSU5aiwuf3hsoONiIk2uI/TC59+8fAQsyhvPkPGMtBjlkSsqMTYLQ2Qp m+fkl9PtGxz2Vgkro7PzSEfryuhz5bffReEnYyIY9ntdofprYTb3S0MpkDIPZ1VwG7+W5AliN1T k6V8NCVk0ZGTZEhpwsJIl9++uMhMGEL8uoHZ5wqfA/Df/fR8tJceQag45t9ob5xfIcYbhYihdqD GK064BP3sjnGmwgdyytvtSG7y2UENMozON3kHp4Eg/fvc4nmdfh0OfctdV5Ool6l3cfvUeq5j4X qx8g1HWzUy0k7hWu23njEdg53eaP6g1wCYk/0DsTgitTwF9KT8Av18ECZLUMBPkl7aJtaymL/Qr mV6hCrzFkhTyut1yNIynV23ySKEgYEBmUeeWy0FOF3xQnWI3wz1vwPdbeoyc6sIs/M8rRQI/RZK r3YOru7Nxve9atWilQtX4EkL6IMY4C X-Received: by 2002:a17:907:2d2a:b0:bd4:6c96:f87b with SMTP id a640c23a62f3a-bfc87bf967cmr2262666b.28.1781135531695; Wed, 10 Jun 2026 16:52:11 -0700 (PDT) Received: from [127.0.1.1] ([46.251.53.180]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bf054e03716sm1225741366b.34.2026.06.10.16.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 16:52:11 -0700 (PDT) From: Yauhen Kharuzhy Date: Thu, 11 Jun 2026 02:51:56 +0300 Subject: [PATCH v3 2/3] ASoC: Intel: soc-acpi-cht: Add Lenovo Yoga Book entries Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260611-asoc-yogabook-v2-v3-2-3128447b67b6@gmail.com> References: <20260611-asoc-yogabook-v2-v3-0-3128447b67b6@gmail.com> In-Reply-To: <20260611-asoc-yogabook-v2-v3-0-3128447b67b6@gmail.com> To: Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Pierre-Louis Bossart , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Hans de Goede , Yauhen Kharuzhy X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1781135528; l=3008; i=jekhor@gmail.com; s=20260301; h=from:subject:message-id; bh=XvXmjNswgEkkL4IDUq64RMfcvfD8wfe1FUyHGBixG3A=; b=DmEhyMGAmX2Zg43WIT2cyJOFQisjIgOVEUtGP+p4pF2rbayj2ydnETB+jDjuH/ybwON2YRguG y6v2XPXF08hCdCjzBf51FgvgZFyLtoBInPMZnZlUALfJ5FKXGuVCnSo X-Developer-Key: i=jekhor@gmail.com; a=ed25519; pk=C/csaZJs7UBNDgeJcUAmPu4ntqNeaZ3BKfBQiH8tuGc= 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'). Lenovo Yoga Book YB1-X90 device (Android version of the tablet) has the same hardware configuration but lacks a valid ACPI DSDT entry for the codec, so add DMI match data for it and use the same machine data as for YB1-X91. Signed-off-by: Yauhen Kharuzhy --- sound/soc/intel/common/soc-acpi-intel-cht-match.c | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) 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 @@ -17,6 +17,14 @@ static struct snd_soc_acpi_mach cht_surface_mach = { .sof_tplg_filename = "sof-cht-rt5645.tplg", }; +static struct snd_soc_acpi_mach cht_yogabook_mach = { + .id = "10EC5677", + .drv_name = "cht-yogabook", + .fw_filename = "intel/fw_sst_22a8.bin", + .board = "cht-yogabook", + .sof_tplg_filename = "sof-cht-rt5677.tplg", +}; + static struct snd_soc_acpi_mach cht_lenovo_yoga_tab3_x90_mach = { .id = "10WM5102", .drv_name = "bytcr_wm5102", @@ -33,6 +41,24 @@ static const struct dmi_system_id cht_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Surface 3"), }, }, + { + .ident = "Lenovo Yoga Book YB1-X91", + .driver_data = (void *)&cht_yogabook_mach, + /* YB1-X91L/F */ + .matches = { + DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"), + } + }, + { + .ident = "Lenovo Yoga Book YB1-X90", + .driver_data = (void *)&cht_yogabook_mach, + /* YB1-X90L/F, codec is not listed in DSDT */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Intel Corporation"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"), + } + }, { /* * The Lenovo Yoga Tab 3 Pro YT3-X90, with Android factory OS @@ -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", + }, { .comp_ids = &rt5645_comp_ids, .drv_name = "cht-bsw-rt5645", -- 2.53.0