Skip to content

test-case: webrtc_aec: add stereo-independent MIMO check, asymmetric ref, and SSP loopback options - #1369

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
lgirdwood:topic/webrtc-aec-ssp-loopback
Nov 27, 2026
Merged

lgirdwood merged 1 commit into
thesofproject:mainfrom
lgirdwood:topic/webrtc-aec-ssp-loopback

Conversation

@lgirdwood

@lgirdwood lgirdwood commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Rebased cleanly onto main (d43ff6f, after 56ae42c and d43ff6f merged the initial WebRTC test suite). Pairs with thesofproject/sof#11545 (topic/webrtc-aec-stereo, bumped webrtc-apm to 07232bb5e525).

Changes (check-webrtc-aec.sh, sof-webrtc-tool.py)

  • tools/sof-webrtc-tool.py:
    • Add --mic-channels and --ref-channels for asymmetric R x C AEC configurations (e.g. 2R x 1C, 2R x 4C, DMIC + SSP2 lbm_mode).
    • Add --stereo-independent MIMO stimulus generator (uncorrelated per-channel far-end, cross-talk, distinct per-mic near-end frequencies 997 Hz / 1301 Hz+) and analyzer verifying independent per-channel ERLE, per-channel near-end preservation, and ch0 != ch1 anti-cloning.
  • test-case/check-webrtc-aec.sh:
    • Add -R (--ref-ch), -I (--stereo-ind), and comma-separated -d (--delay-ms) delay sweep support.
    • Initialize pb_first_ch for single-playback-pipeline topologies such as hybrid DMIC0 + SSP2 lbm_mode (cavs-dmic-ssp-lbm-webrtc-aec.conf), and auto-enable --stereo-independent when both mic and ref are >= 2 channels.

Usage with SSP Digital Loopback Topologies

  • Dual-SSP lbm_mode (sof-ptl-nocodec-webrtc-aec.tplg, sof-tgl-nocodec-webrtc-aec.tplg):
    TPLG=sof-ptl-nocodec-webrtc-aec.tplg ./test-case/check-webrtc-aec.sh -m ssp -I -d 20
  • Hybrid DMIC0 + SSP2 lbm_mode (sof-ptl-dmic-ssp-lbm-webrtc-aec.tplg / sof-tgl-dmic-ssp-lbm-webrtc-aec.tplg):
    TPLG=sof-ptl-dmic-ssp-lbm-webrtc-aec.tplg ./test-case/check-webrtc-aec.sh -m ssp -d 20

Verification Done Locally

  • bash -n test-case/check-webrtc-aec.sh case-lib/webrtc.sh and python3 -m py_compile tools/sof-webrtc-tool.py tools/topo_webrtc_kcontrols.py passed.
  • sof-webrtc-tool.py generate/analyze --profile aec --stereo-independent passed on synthetic 2ch stereo capture (ERLE=20.01dB, rc=0).
  • Hardware execution on Spider (tgl) / Aphid (ptl) is pending DUT run.

@lgirdwood
lgirdwood force-pushed the topic/webrtc-aec-ssp-loopback branch from dc1b9ae to 403498f Compare November 26, 2026 20:12
@lgirdwood lgirdwood changed the title test-case: add standalone SSP loopback WebRTC AEC test and tooling test-case: webrtc_aec: add stereo-independent MIMO check, asymmetric ref, and SSP loopback options Nov 26, 2026
…ic ref options

Add --stereo-independent, --mic-channels, and --ref-channels to sof-webrtc-tool.py and -R/-I plus comma-separated delay sweeps (-d) to check-webrtc-aec.sh for SSP loopback multi-channel AEC validation.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
@lgirdwood
lgirdwood force-pushed the topic/webrtc-aec-ssp-loopback branch from 403498f to 38fa156 Compare November 26, 2026 20:32
@lgirdwood
lgirdwood marked this pull request as ready for review November 26, 2026 20:34
@lgirdwood
lgirdwood requested review from a team and marc-hb as code owners November 26, 2026 20:34
@lgirdwood
lgirdwood merged commit 0b509a4 into thesofproject:main Nov 27, 2026
3 checks passed
@lgirdwood
lgirdwood deleted the topic/webrtc-aec-ssp-loopback branch November 27, 2026 12:42
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