Skip to content

Sync topology updates from thesofproject/sof (up to d29787252) - #5

Merged
lgirdwood merged 12 commits into
mainfrom
feat/sync-sof-topologies-dec04
Dec 4, 2026
Merged

lgirdwood merged 12 commits into
mainfrom
feat/sync-sof-topologies-dec04

Conversation

@lgirdwood

Copy link
Copy Markdown
Member

Syncs the 12 new topology2 commits landed in thesofproject/sof (817cefbbe..d29787252), preserving original Git authors, commit dates, commit messages, and Signed-off-by: trailers:

  • 084b0e356 topology2: development: parameterize nocodec SSP loopback AEC
  • 2b9275c6b topology2: development: add DMIC + SSP2 loopback AEC topology
  • bee852c98 topology2: wire compressed FFmpeg pipelines to standalone module UUIDs
  • ddd4a1ace audio: webrtc_ns2: fix LLEXT shims, OOM handling, and DP topology config (topology2 changes only)
  • da681afd1 topology2: sof-hda-generic: allow single-function topologies
  • 7cff357d6 topology2: sof-hda-generic: add per-function topology targets
  • 8e3087b3d topology2: add UAOL backend ID 11 variant
  • ce77e3f41 topology2: compr: make the Cadence decoder heap configurable
  • 0d7da7551 topology2: webrtc-ns2: raise default DP CPC budget to 100000
  • 0e495f89f topology2: cavs-nocodec-webrtc-ns2: set SSP0 fsync_freq to 48000
  • 0dba02ab8 topology2: cavs-sdw: add compressed playback pipeline with phase vocoder
  • d29787252 tools: topology: Disable DP mode for Phase Vocoder

Validated locally with cmake + packages (TPLG_VALIDATE=ON), ctest (5/5 passed), tplg_validate.py, and validator/tests pytest.

lrgirdwo and others added 12 commits December 4, 2026 16:06
Parameterize sample rate, bits, format, channel counts/maps, and
rate-matched SSP hw_config (48k/16k) on cavs-nocodec-webrtc-aec.conf, add
nvl platform mapping, and add -16k and -2r1c targets.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Add hybrid DMIC0 capture + SSP2 digital loopback (lbm_mode) speaker
reference AEC topology and TGL/PTL build targets (with nvl mapping).

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Route COMPR_FFMPEG (decoder) and COMPR_FFMPEG_ENC (encoder) pipelines
to the per-codec standalone module UUIDs when COMPR_FFMPEG_LLEXT is
enabled (default), keeping legacy monolithic UUID fallback when
disabled, and pass COMPR_FFMPEG_ENC_CODEC for per-codec encoder
topologies.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Mark the LLEXT weak-symbol workaround in webrtc_ns2-shims.c with a TODO
comment for Zephyr STB_WEAK relocation support, add RNNoise scratch
pre-init and OOM NULL checks, and switch webrtc_ns2 to the DP domain
with required stack/heap sizes and updated topology UUID.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Allow sof-hda-generic.conf to build a topology that has only one of the
HDA, HDMI, DMIC, HDMI-IN and BT functions, the way cavs-sdw.conf is used
for the sof-sdca-* topologies. The functions are already switched by
HDA_CONFIG, NUM_HDMIS, NUM_DMICS, HDMI_IN_CAPTURE and ADD_BT, but some
parts were not tied to them:

- The virtual widgets were always included. Move the codec widgets to
  platform/intel/hda-codec-widgets.conf, included with the HDA_CONFIG
  selection, and include the iDisp widgets with the HDMI function.
- The TDFB class was only available through the HDA confs, so a DMIC
  only topology could not use enhanced capture. Include it when
  HDA_CONFIG is none.

Document the macros in README.md.

Topologies with HDA_CONFIG=none, such as sof-hda-generic-idisp, no
longer carry the HDA codec virtual widgets. The others are unchanged.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Add per-function targets that enable a single function of
sof-hda-generic.conf and disable the others, named the way
sof_hda_get_tplg_files() requests them in Linux, for all the platforms
since MTL:

- sof-hda-id4 and sof-hdmi-pcm3-id1. The HDA codec and HDMI topologies
  have no NHLT blob and don't depend on the platform, so their names
  have no platform and all platforms share them.
- sof-<platform>-dmic-{2ch,4ch}-id6, sof-<platform>-ssp2-bt-id8 and
  sof-<platform>-ssp6-hdmiin-id14 for MTL, LNL, PTL and NVL
  (sof-ptl-ssp2-bt-id8 is already built from cavs-sdw). NVL uses the PTL
  configuration, like in cavs-sdw.conf.
- ARL and WCL use links to the MTL and PTL ones.

HDMI-IN uses SSP1 and SSP2 with BE ids 13 and 14, like
sof-hda-generic-ace3-hdmi-in-port12. Linux names the topology after the
SSP mask (0x6) and the id of the second HDMI-IN link.

Linux falls back to the monolithic topology when any of the function
topologies is missing, so a platform needs all of them.

They are loaded next to each other, so their PCM and pipeline IDs must
not collide. The DMIC targets use pipelines 100/101 like cavs-sdw, BT
uses 200-203 and the BT Deepbuffer (PCM 36) 204 like
sof-ptl-ssp2-bt-id8, and HDMI-IN uses 210-213.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Add sof-uaol-id11 with backend IDs 11 to 14 for wcl-rvp
with jack, amp, PCH DMIC.

Signed-off-by: Naveen Manohar <naveen.m@intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Add COMPR_DECODER_HEAP to set the heap_bytes_requirement of the Cadence
decoder widgets.

For FLAC the memory need scales with blocksize x channels x 4 bytes (U):
about 2 x U is needed by the library (output buffer and per channel
working memory) and 3 x U by the DP output ring buffer, plus small
buffers. The default is kept at 192 KiB, which fits the FLAC decoder
with up to 4608 samples per block (stereo, 32 bit output, ~185 KiB).

FLAC streams above 48kHz can use bigger blocks (up to 16384 samples),
which need a proportionally larger heap: ~384 KiB for 8192 and ~704 KiB
for 16384 samples per block.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Raise the default webrtc-ns2 DP widget cpc budget from 5000 to 100000
in tools/topology/topology2/include/components/webrtc-ns2.conf. 5000 CPC
under-budgets 48 kHz / 480-sample RNNoise frame execution on ACE/cAVS
DSPs; 100000 provides headroom across targets and remains overridable
per widget instance.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Define SSP0_RATE 48000 in cavs-nocodec-webrtc-ns2.conf and bind SSP0
fsync_freq to $SSP0_RATE so SSP0 frame sync matches RNNoise's required
48 kHz graph rate.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Add a new compr-speed-playback FE pipeline class for cavs-sdw that runs
a decoder followed by the phase_vocoder module before the usual SRC,
gain and mixin stages. The decoder and phase_vocoder widgets are placed
on the DP scheduler so they can consume variable amounts of input per
output period, which is what enables time-scaling playback of a
compressed stream.

The pipeline is instantiated from a new platform/intel/compr-speed.conf
for both the Jack (COMPRESSED_SPEED_1) and Speaker (COMPRESSED_SPEED_2)
paths, with defaults added to compr-default.conf (PCM IDs 60/62,
pipeline IDs 95/96, PCM names "Compress Speed Playback[ 2]"). cavs-sdw
gains matching COMPR_SPEED_* defines, an IncludeByKey.COMPRESSED_SPEED
hook, and propagation of COMPRESSED_SPEED_1/2 through the Jack and
amp-links branches so the pipeline is only built when it is requested.

Two development targets, sof-arl-cs42l43-l0-compr-speed and
sof-mtl-rt713-l0-rt1316-l12-compr-speed, are added to tplg-targets.cmake
so the new topology can be built and exercised.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
With this change it is possible to run the Phase Vocoder without
need for DP-DP bind feature. When scheduled normally the render
speeds over 1 must be disabled since it would cause immediate
xrun and playback fail.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@lgirdwood
lgirdwood merged commit 18c8489 into main Dec 4, 2026
6 checks passed
@lgirdwood
lgirdwood deleted the feat/sync-sof-topologies-dec04 branch December 4, 2026 16:21
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.

6 participants