Skip to content

topology2: add sof-ptl-rt713-l3-rt1320-l1 for LG Gram 16Z90U#10760

Open
Pyohwan wants to merge 1 commit intothesofproject:mainfrom
Pyohwan:topology2-ptl-rt713-l3-rt1320-l1
Open

topology2: add sof-ptl-rt713-l3-rt1320-l1 for LG Gram 16Z90U#10760
Pyohwan wants to merge 1 commit intothesofproject:mainfrom
Pyohwan:topology2-ptl-rt713-l3-rt1320-l1

Conversation

@Pyohwan
Copy link
Copy Markdown

@Pyohwan Pyohwan commented May 9, 2026

Summary

Add a new SOF topology build target for the LG Gram Pro 2026 (16Z90U-KU7BK), which uses an unusual SoundWire configuration:

  • RT713 jack/headset codec on link 3
  • A single stereo RT1320 SmartAmp on link 1 (not two amps on different links)
  • 2 NHLT DMICs (built-in laptop microphone array)
  • No SMART_MIC ACPI function exposed by RT713

Why a new target

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:

sdw:0:1:025d:1320:01   single RT1320 (stereo) on link 1
sdw:0:3:025d:0713:01   RT713 on link 3

So this target uses NUM_SDW_AMP_LINKS=1 and type-less stream names (SDW1-Playback / SDW3-Playback / SDW3-Capture) because each link has only one dailink, which makes the kernel machine driver skip the -SimpleJack / -SmartAmp suffix (append_dai_type=false when num_link_dailinks==1).

Test plan

  • Built tplg + nhlt bin succeed
  • Loaded on real hardware (LG Gram 16Z90U-KU7BK, Ubuntu 26.04, kernel 7.0.0-15)
  • Speaker (RT1320 stereo) plays both channels
  • Headphone jack output works with auto-routing on plug
  • Headset jack mic captures audio
  • Internal DMIC stereo capture works
  • HDMI 1/2/3 output devices exposed (verified on monitor with audio)
  • PipeWire UCM HiFi profile auto-activates and exposes proper sinks/sources

Dependencies

This topology requires a matching kernel SoundWire machine table entry that I will submit separately to alsa-devel:

  • sound/soc/intel/common/soc-acpi-intel-ptl-match.c — adds link_mask = BIT(1) | BIT(3) entry referencing sof-ptl-rt713-l3-rt1320-l1.tplg

I'll also submit the built .tplg and nhlt-*.bin to linux-firmware once this lands.

@Pyohwan Pyohwan requested review from jsarha and ranj063 as code owners May 9, 2026 08:03
@sofci
Copy link
Copy Markdown
Collaborator

sofci commented May 9, 2026

Can one of the admins verify this patch?

reply test this please to run this test once

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 <vhgksl@daum.net>
@Pyohwan Pyohwan force-pushed the topology2-ptl-rt713-l3-rt1320-l1 branch from acd2013 to 3ac2ad4 Compare May 9, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants