[PATCH v5 0/2] ASoC: Intel: Add Lenovo Yoga Book RT5677 support
From: Maurizio Casciano
Date: Thu Aug 27 2026 - 14:12:55 EST
The Lenovo Yoga Book YB1-X91F/L uses a Cherry Trail SSP2 link with an
RT5677 codec and a TS3A227E headset detector. Its amplifiers and
headphone path also require board-specific GPIO sequencing.
Add a generic Cherry Trail RT5677 machine driver and match the Yoga Book
ACPI codec ID. The machine entry supports both the legacy SST firmware
and the separately maintained SOF IPC3 topology.
This continues Yauhen Kharuzhy's v3 work and supersedes my RFC series.
The driver retains Yauhen's copyright, Co-developed-by and Signed-off-by
trailers, and links to both his original implementation and v3 posting.
Changes since v4:
- restore Yauhen's Co-developed-by and immediately adjacent Signed-off-by
trailers on both patches;
- format the complete trailer blocks without separating blank lines; and
- clear the existing PCM format mask before selecting S24_LE in the codec
fixup, since params_set_format() is additive.
The series is based on ASoC for-next at 8a070652d919. Both touched C
files passed sparse 0.6.5-rc1. Strict checkpatch reports no errors; its
only warning is the generic new-file MAINTAINERS prompt, while the
existing sound/soc/intel/ entry already covers the driver. A clean
20-job bindeb-pkg build completed successfully.
Runtime testing used an integration kernel containing the same v5 source
state on a Lenovo Yoga Book YB1-X91L. It used the stock signed
intel/sof/sof-cht.ri firmware, version 2.2.0-57864, and the separately
maintained sof-cht-rt5677.tplg topology. The following passed:
- UCM Speaker1 and Mic1 route enablement;
- PCM0 playback and capture at 48 kHz stereo in S16_LE, S24_LE and
S32_LE formats;
- PCM1 deep-buffer playback at 48 kHz stereo in S32_LE format;
- a bounded routed speaker tone and a non-empty three-second Mic1
capture; and
- PipeWire playback and capture with advancing PCM pointers and clean
PCM closure after each stream.
The GNOME Settings speaker and microphone tests also passed physical
verification. No SOF, IPC, XRUN or ASoC errors were logged during those
tests. The SOF topology source is maintained separately at:
https://github.com/Yoga-Book/Yoga-Book-Sound-Open-Firmware/commits/feature/cht-rt5677-topology2-ipc3/
Maurizio Casciano (2):
ASoC: Intel: Add Cherry Trail RT5677 machine driver
ASoC: Intel: cht: Add Yoga Book RT5677 machine entry
sound/soc/intel/boards/Kconfig | 14 +
sound/soc/intel/boards/Makefile | 2 +
sound/soc/intel/boards/cht_rt5677.c | 612 ++++++++++++++++++
.../intel/common/soc-acpi-intel-cht-match.c | 8 +
4 files changed, 636 insertions(+)
create mode 100644 sound/soc/intel/boards/cht_rt5677.c
base-commit: 8a070652d9194babdd35bf7cbd2c6722b441e8f4
--
2.53.0