tools: test: audio: Add module specific initialize to Octave scripts#10923
tools: test: audio: Add module specific initialize to Octave scripts#10923singalsu wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Octave-based audio component tests to generate per-run “control script” files (passed to sof-testbench4 via -s) to initialize module-specific ALSA controls, instead of relying on a shared static script.
Changes:
- Generate a temporary
amixercontrol script viamkstemp()and pass it to the testbench with-sfor TDFB tests. - Update
tdfb_direction_test.mto use the new TDFB tune path and include-salongside-d 4. - Add module-specific initialization in
process_test.mforphase_vocoderandtdfbcomponents using-sscripts.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| tools/test/audio/tdfb_test.m | Creates a per-run temporary control script and passes it via test.extra_opts (-s). |
| tools/test/audio/tdfb_direction_test.m | Updates tune paths and adds a per-run control script (-d 4 -s ...) for direction tracing tests. |
| tools/test/audio/process_test.m | Adds component-specific initialization scripts for phase_vocoder and tdfb via -s. |
The modules phase_vocoder and tdfb are by default algorithms switched off for passthrough. To measure with process_test() the the true characteristic the controls need to be set to enable the processing. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
The init script tdfb_enable.sh was missing from upstream, so the script tdfb_test.m was not working. With this change, the enable script is created on the fly. The tdfb_direct_test.m had the same issue with a missing script from upstream. Additionally, the tdfb setup tool directory path is fixed as well as the tdfb tune data directory. The line4 and circular8 array tests are removed since they are not built by default. The production configuration line2 test is kept. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
59862fc to
39de1e0
Compare
| delete_check(1, test.fn_out); | ||
| test = test_run(test); | ||
| if isfield(test, 'extra_opts_file') && ~isempty(test.extra_opts_file) | ||
| delete_check(1, test.extra_opts_file); | ||
| end |
| array_data_list = {'line2_50mm_az0el0deg_48khz'}; | ||
| tdfb_name_list = {''}; |
There was a problem hiding this comment.
Currently we can't support the needed topologies in ipc4 testbench. Maybe add later the four microphones tests when we have the needed topologies.
| delete_check(1, test.fn_out); | ||
| test = test_run(test); | ||
| if isfield(test, 'extra_opts_file') && ~isempty(test.extra_opts_file) | ||
| delete_check(1, test.extra_opts_file); | ||
| end |
There was a problem hiding this comment.
The controls file is useful for debugging the issue, better to keep it.
| function test = test_run_process(test) | ||
| delete_check(1, test.fn_out); | ||
| test = test_run(test); | ||
| delete_check(1, test.trace); | ||
| if isfield(test, 'extra_opts_file') && ~isempty(test.extra_opts_file) | ||
| delete_check(1, test.extra_opts_file); | ||
| end |
There was a problem hiding this comment.
The file is useful for debugging the issue. Better to keep it.
No description provided.