Skip to content

Conversation

@singalsu
Copy link
Contributor

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.

@kv2019i kv2019i requested a review from Copilot March 3, 2025 10:04
Copy link

Copilot AI left a 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.

@singalsu singalsu force-pushed the check_audio_equalizer_update branch from 3a4e221 to bb26b2b Compare March 3, 2025 13:48
Copy link
Collaborator

@marc-hb marc-hb left a 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"

@singalsu singalsu force-pushed the check_audio_equalizer_update branch from bb26b2b to d53bb77 Compare March 4, 2025 14:54
@singalsu singalsu marked this pull request as ready for review March 4, 2025 14:54
@singalsu singalsu requested a review from a team as a code owner March 4, 2025 14:54
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @singalsu

@singalsu singalsu force-pushed the check_audio_equalizer_update branch from d53bb77 to 7c7458c Compare March 5, 2025 12:38
Copy link
Collaborator

@marc-hb marc-hb left a 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!

@lgirdwood
Copy link
Member

@golowanow good for you ?

@golowanow
Copy link
Member

@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>
@singalsu singalsu force-pushed the check_audio_equalizer_update branch from 7c7458c to fc45722 Compare March 27, 2025 17:56
@singalsu singalsu requested review from golowanow and marc-hb March 27, 2025 17:57
@golowanow golowanow merged commit 4fa9e7d into thesofproject:main Mar 28, 2025
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants