From 3ac2ad4821dc2be5511f3d2ddbfb819675be14e8 Mon Sep 17 00:00:00 2001 From: Jang Pyohwan Date: Sat, 9 May 2026 17:03:06 +0900 Subject: [PATCH] topology2: add sof-ptl-rt713-l3-rt1320-l1 for LG Gram 16Z90U Add a new build target for the LG Gram Pro 2026 (16Z90U-KU7BK), which has: - RT713 jack/headset codec on SoundWire link 3 - A single stereo RT1320 SmartAmp on SoundWire link 1 - 2 NHLT DMICs (built-in microphone array) This combination is unique because: - Existing rt713-rt1320 boards have two RT1320 amps on different links (NUM_SDW_AMP_LINKS=2), but the LG Gram uses one stereo RT1320 chip, so NUM_SDW_AMP_LINKS=1 is required. - The RT713 ACPI does not expose a SMART_MIC function, so SDW_DMIC=0 is used and NUM_DMICS=2 enables the NHLT-attached PCH DMICs for the laptop's built-in microphone array. - Stream names use the SDW%d-Playback/Capture form (without -SimpleJack/-SmartAmp suffix) because each link has only one dailink, so the kernel machine driver does not append the dai-type suffix (append_dai_type=false when num_link_dailinks==1). Tested on Ubuntu 26.04 with kernel 7.0.0-15 and a matching kernel match-table patch. Speaker, headphone jack, headset mic, and internal DMIC all work via the UCM HiFi profile. Signed-off-by: Jang Pyohwan --- .../topology/topology2/production/tplg-targets-ace3.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/topology/topology2/production/tplg-targets-ace3.cmake b/tools/topology/topology2/production/tplg-targets-ace3.cmake index 09a2c55f86b3..953964b068a9 100644 --- a/tools/topology/topology2/production/tplg-targets-ace3.cmake +++ b/tools/topology/topology2/production/tplg-targets-ace3.cmake @@ -158,6 +158,13 @@ SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack" SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=Playback-SmartAmp,SDW_DMIC_STREAM=Capture-SmartMic,\ SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack" +# LG Gram Pro 2026 (16Z90U-KU7BK) with RT713 on link 3 and single stereo RT1320 on link 1 +"cavs-sdw\;sof-ptl-rt713-l3-rt1320-l1\;PLATFORM=ptl,SDW_DMIC=0,NUM_SDW_AMP_LINKS=1,\ +NUM_DMICS=2,PDM1_MIC_A_ENABLE=0,PDM1_MIC_B_ENABLE=0,DMIC0_ID=3,DMIC1_ID=4,\ +SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=SDW1-Playback,\ +SDW_JACK_OUT_STREAM=SDW3-Playback,SDW_JACK_IN_STREAM=SDW3-Capture,\ +PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-ptl-rt713-l3-rt1320-l1.bin" + "cavs-sdw\;sof-ptl-cs42l43-l2-cs35l56x6-l13\;NUM_SDW_AMP_LINKS=3,SDW_DMIC=1,\ SDW_AMP_FEEDBACK=false,SDW_SPK_STREAM=Playback-SmartAmp,SDW_DMIC_STREAM=Capture-SmartMic,\ SDW_JACK_OUT_STREAM=Playback-SimpleJack,SDW_JACK_IN_STREAM=Capture-SimpleJack"