-
Notifications
You must be signed in to change notification settings - Fork 59
Test-case: check-audio-equalizers: Updates for IPC4 systems #1258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test-case: check-audio-equalizers: Updates for IPC4 systems #1258
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 31 out of 31 changed files in this pull request and generated no comments.
3a4e221 to
bb26b2b
Compare
marc-hb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This single, missing line is totally unrelated to your PR but it does get rid of most shellcheck warnings! Please add it.
--- a/test-case/check-audio-equalizer.sh
+++ b/test-case/check-audio-equalizer.sh
@@ -18,6 +18,7 @@ set -e
# source from the relative path of current folder
my_dir=$(dirname "${BASH_SOURCE[0]}")
+# shellcheck source=case-lib/lib.sh
source "$my_dir"/../case-lib/lib.sh
OPT_NAME['t']='tplg' OPT_DESC['t']="tplg file, default value is env TPLG: $TPLG"bb26b2b to
d53bb77
Compare
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @singalsu
d53bb77 to
7c7458c
Compare
marc-hb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code style LGTM. I didn't review the logic!
|
@golowanow good for you ? |
I'm looking through it repeating ci checks. |
This changes improves testing time with current topologies from over two minutes to less than one minute. The test signal is zero PCM codes and the playback output is not analyzed. Shorter ne second playback is sufficient to check that aplay and arecord work with the applied EQ configuration. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This addition helps shellcheck to find the test cases library and should avoid plenty of warnings printed. Also the shellcheck and pylint runs-on are updated to Ubuntu 24.04 in Github workflow. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch moves the helper function has_wname_prefix() from topo_vol_kcontrols.py to tplgtool2.py. It will be used by a new script to find bytes controls. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch updates the test check-audio-equalizer.sh to work with IPC4 topologies with different naming for controls. The control name no more includes the component name, so the search for controls is changed. A tool topo_effect_kcontrols.py is used to find bytes controls for given component. The blobs to test with sof-ctl are updated from SOF git repository. The ipc3 or ipc4 directory is chosen based on runtime check of DUT ipc version. The sof-ctl usage is changed. The control is now referenced with the text control name instead of numid. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
7c7458c to
fc45722
Compare
This patch updates the test check-audio-equalizer.sh to work with IPC4 topologies with different naming for controls. The control name no more includes the component name, so the search for controls is changed. A tool topo_effect_kcontrols.py is used to find bytes controls for given component.
The blobs to test with sof-ctl are updated from SOF git repository. The ipc3 or ipc4 directory is chosen based on runtime check of DUT ipc version.
The sof-ctl usage is changed. The control is now referenced with the text control name instead of numid.