Skip to content

Commit 926cbfb

Browse files
committed
tools: test: audio: Add module specific initialize to process_test.m
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>
1 parent 901c0ce commit 926cbfb

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

tools/test/audio/process_test.m

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,22 @@
427427

428428
% No need to collect trace
429429
test.trace = [tempname('/tmp') '.txt'];
430+
431+
switch t.comp
432+
case 'phase_vocoder'
433+
[fh, name, msg] = mkstemp('/tmp/phase_vocoder_enable.sh.XXXXXX');
434+
test.extra_opts = sprintf('-s %s', name);
435+
fprintf(fh, "amixer -c0 cset name='Analog Playback Phase Vocoder speed' 1.0\n");
436+
fprintf(fh, "amixer -c0 cset name='Analog Playback Phase Vocoder enable' on\n");
437+
fclose(fh);
438+
case 'tdfb'
439+
[fh, name, msg] = mkstemp('/tmp/tdfb_enable.sh.XXXXXX');
440+
test.extra_opts = sprintf('-s %s', name);
441+
fprintf(fh, "amixer -c0 cset name='Analog Playback TDFB track' off\n");
442+
fprintf(fh, "amixer -c0 cset name='Analog Playback TDFB angle set' 90\n");
443+
fprintf(fh, "amixer -c0 cset name='Analog Playback TDFB beam' on\n");
444+
fclose(fh);
445+
end
430446
end
431447

432448
function test = test_run_process(test)

0 commit comments

Comments
 (0)