@@ -95,6 +95,41 @@ tools/testbench/build_testbench/install/bin/sof-testbench4 -r 48000 -c 2 -b S32_
9595sox --encoding signed-integer -L -r 48000 -c 2 -b 32 out.raw out.wav
9696```
9797
98+ As second example apply in one second intervals bytes control blobs
99+ for IIR equalizer. The impact is easiest to hear with pink noise
100+ signal. Create the control script below and run the following commands
101+ to create the input, run testbench, and convert to wav for examining
102+ the output.
103+
104+ ```
105+ #!/bin/sh
106+
107+ # Example test sequence for IIR equalizer, switch other processing off
108+
109+ amixer -c0 cset name='Post Mixer Analog Playback DRC switch' off
110+ amixer -c0 cset name='Post Mixer Analog Playback Volume' 45
111+ sof-ctl -c name='Post Mixer Analog Playback FIR Eq bytes' -s tools/ctl/ipc4/eq_fir/pass.txt
112+ sof-ctl -c name='Post Mixer Analog Playback IIR Eq bytes' -s tools/ctl/ipc4/eq_iir/pass.txt
113+ sleep 1
114+ sof-ctl -c name='Post Mixer Analog Playback IIR Eq bytes' -s tools/ctl/ipc4/eq_iir/loudness.txt
115+ sleep 1
116+ sof-ctl -c name='Post Mixer Analog Playback IIR Eq bytes' -s tools/ctl/ipc4/eq_iir/bandpass.txt
117+ sleep 1
118+ sof-ctl -c name='Post Mixer Analog Playback IIR Eq bytes' -s tools/ctl/ipc4/eq_iir/bassboost.txt
119+ sleep 1
120+ sof-ctl -c name='Post Mixer Analog Playback IIR Eq bytes' -s tools/ctl/ipc4/eq_iir/highpass_50hz_0db_48khz.txt
121+ ```
122+
123+ ```
124+ sox -n --encoding signed-integer -L -r 48000 -c 2 -b 32 in.raw synth 5 pinknoise norm -20
125+
126+ tools/testbench/build_testbench/install/bin/sof-testbench4 -r 48000 -c 2 -b S32_LE -p 1,2 \
127+ -t tools/build_tools/topology/topology2/production/sof-hda-generic.tplg \
128+ -i in.raw -o out.raw -s controls.sh
129+
130+ sox --encoding signed-integer -L -r 48000 -c 2 -b 32 out.raw out.wav
131+ ```
132+
98133### Run testbench with helper script
99134
100135The scripts/sof-testbench-helper.sh simplifies the task. See the help
0 commit comments