Repository navigation
Conversation
Add Topology2 definitions and targets for Google Resonance Audio binaural rendering: - include/components/resonance-audio.conf: Resonance Audio processing widget with Phase 1 head-tracking/room/speaker-mode kcontrols and dual-pin IPC4 input bindings - include/pipelines/cavs/host-copier-resonance-gain-mixin-playback.conf and resonance-playback.conf: PCM + Resonance playback pipelines - platform/intel/sdw-jack-resonance.conf: RT722 SoundWire jack topology wiring Pin 0 (2ch/4ch/6ch PCM playback on hw:0,0) and Pin 1 (Spatial Metadata ALSA compress stream on pcm_id 55) - development/cavs-nocodec-resonance.conf and development/tplg-targets.cmake: PTL/WCL nocodec and RT722 4ch resonance topology targets Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
There was a problem hiding this comment.
🟡 Changes recommended
Two critical format mismatches prevent advertised multichannel streams from preparing: the 5.1 nocodec instance exposes incompatible outputs, and PCM_FORMAT_ALL host inputs default to stereo, causing Linux to reject four- and six-channel streams.
2 open issues
What changed in this PR
Adds Topology2 support for Google Resonance Audio binaural playback on PTL/WCL nocodec and RT722 systems, complementing the linked DSP module and Linux compress mmap work.
Changes:
- Defines the Resonance processing widget, ALSA controls, and reusable playback pipelines.
- Adds RT722 routing for PCM audio and a separate spatial-pose metadata stream.
- Registers PTL/WCL development targets, including a WCL RT722 alias.
| File | Description |
|---|---|
tools/topology/topology2/platform/intel/sdw-jack-resonance.conf |
Adds SoundWire jack playback and dual-input audio/metadata routing. |
tools/topology/topology2/include/pipelines/cavs/resonance-playback.conf |
Defines a copier-based spatializer pipeline for nocodec playback. |
tools/topology/topology2/include/pipelines/cavs/host-copier-resonance-gain-mixin-playback.conf |
Adds a host-to-mixer playback pipeline with Resonance processing. |
tools/topology/topology2/include/components/resonance-audio.conf |
Defines the widget, controls, formats, and resource requirements. |
tools/topology/topology2/development/tplg-targets.cmake |
Registers nocodec and RT722 development targets and the WCL alias. |
tools/topology/topology2/development/cavs-nocodec-resonance.conf |
Connects spatialized playback to a stereo SSP output. |
tools/topology/topology2/cavs-sdw.conf |
Adds class includes and the Resonance jack-pipeline selection. |
Review effort: Balanced
| ] | ||
| } | ||
|
|
||
| resonance-audio."1" { |
There was a problem hiding this comment.
Fixed in 54550a1: removed default format arrays from Class.Widget.resonance-audio and Class.Pipeline.host-copier-resonance-gain-mixin-playback's resonance-audio widget (so alsatplg does not append stale inherited class arrays), and configured resonance-playback resonance-audio.1 with explicit 2 inputs (2ch/6ch S16) and a single 16/16 stereo output matching module-copier.2. Verified via tplgparse: NUM_IN=[2] (entries=2), NUM_OUT=[1] (entries=1).
| num_input_audio_formats 5 | ||
| Object.Base.input_audio_format [ |
There was a problem hiding this comment.
Fixed in 54550a1: expanded the PCM_FORMAT_ALL=true branch in sdw-jack-resonance.conf across 2ch, 4ch, and 6ch layouts (15 input formats total matching the 5 sample types and output capabilities), and removed the duplicated 32-bit stereo output entry on resonance-audio.1. Verified PCM_FORMAT_ALL=true builds with NUM_IN=[15] and 0 errors in tplg_validate.py.
Address Topology2 review feedback: - Clear default input/output_audio_format arrays from Class.Widget.resonance-audio and Class.Pipeline.host-copier-resonance-gain-mixin-playback so alsatplg does not append stale class formats to per-pipeline/per-instance overrides - Override resonance-playback resonance-audio.1 output_audio_format to single 16-bit 2ch stereo matching module-copier.2 so 6ch 5.1 nocodec streams prepare cleanly - Expand PCM_FORMAT_ALL=true input_audio_format entries in sdw-jack-resonance.conf across 2ch, 4ch, and 6ch channel maps (15 formats total) matching the false branch and output capabilities - Remove duplicated 32-bit stereo output entry on resonance-audio.1 in sdw-jack-resonance.conf Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
|
Addressed all Copilot code review comments (commit
|

Summary
Add Topology2 widget, pipeline, and platform definitions for Google Resonance Audio binaural rendering with Phase 1 ALSA kcontrols and Phase 2 ALSA compress
mmapDMA spatial pose metadata:include/components/resonance-audio.conf:RESAUDprocessing component definition, Phase 1 head-tracking/room/speaker-mode kcontrols, and IPC4 dual-pininput_pin_binding(Pin 0PCM +Pin 1Spatial Metadata).include/pipelines/cavs/host-copier-resonance-gain-mixin-playback.conf&resonance-playback.conf: playback pipelines integrating the Resonance Audio spatializer.platform/intel/sdw-jack-resonance.conf: RT722 SoundWire jack topology wiringPin 0PCM playback (hw:0,0) andPin 1Spatial Metadata compress stream (pcm_id 55).development/cavs-nocodec-resonance.conf&development/tplg-targets.cmake: addssof-ptl-nocodec-resonance,sof-wcl-nocodec-resonance,sof-ptl-rt722-4ch-resonance, andsof-wcl-rt722-4ch-resonancetargets.Related Draft PRs
mmapmetadata support: ALSA: compress: mmap playback O_RDWR and SOF raw metadata stream support linux#6071Verification
alsatplg(0 errors) onbuild-tplg-resonance:topology2_dev_sof-ptl-rt722-4ch-resonancetopology2_dev_sof-wcl-rt722-4ch-resonancetopology2_dev_sof-ptl-nocodec-resonancetopology2_dev_sof-wcl-nocodec-resonancetopology2_prod_sof-ptl-rt722-4chandtopology2_dev_sof-ptl-rt722-4ch-bt(0 errors).