You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case-lib: Add multi-topology support and robustness fixes
SOF can now load multiple topology files, pipeline
library and support modules need updates to handle colon or
comma separated TPLG paths, avoid testing the same physical PCM
device more than once, and dont crash when optional options are unset.
pipeline.sh:
- Add func_tplg_parse_and_validate():
* Normalises colon/comma separators; trims whitespace
* Filters topologies per NO_HDMI_MODE / NO_BT_MODE / NO_DMIC_MODE
* Resolves each path with func_lib_get_tplg_path(); skips missing
files with a warning, aborts only when nothing is left
* Exports TPLG_FILES (comma-joined for sof-tplgreader.py) and
TPLG_COUNT
- Update func_pipeline_export():
* Calls func_tplg_parse_and_validate() instead of single-file lookup
* Passes TPLG_FILES to sof-tplgreader.py (native multi-file support)
* Captures stdout+stderr; logs and die()s on non-zero exit
* Post-eval deduplication by hw:X,Y 'dev' field - renumbers
surviving pipelines contiguously and logs removed duplicates
* Sorts surviving pipelines by numeric 'id' for consistent ordering
- Fix func_pipeline_parse_value(): add 'return 0' on out-of-range
access to prevent spurious 'set -e' failures in callers
hijack.sh:
- Add audio-process cleanup at top of func_exit_handler():
kills leftover aplay/arecord (alsa) or tinyplay/tinycap (tinyalsa)
on test abort, preventing EBUSY errors in subsequent tests
Uses pgrep + pkill + 0.5 s sleep; all guarded with '|| true'
lib.sh:
- Fix logger_disabled(): guard OPT_VAL['s'] with ':-1' default so
tests that dont declare -s option no longer crash with error
'unary operator expected' error from the empty integer comparison
Signed-off-by: Mateusz Junkier <mateusz.junkier@intel.com>
0 commit comments