-
Notifications
You must be signed in to change notification settings - Fork 59
check-capture: add sample rate changing, topology changing #1304
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
check-capture: add sample rate changing, topology changing #1304
Conversation
pkunieck
commented
Sep 23, 2025
- Added functionality to change topology filename.
- Implemented sample rate modification.
- Enable ultrasound testing capabilities.
|
Can one of the admins verify this patch?
|
0eea1d5 to
1c495b6
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.
Interesting idea but I don't think this the swap should be done every time for each test. IMHO the higher level test framework should have test plans doing something like this:
- Perform the swap using a new script added here. Save the older file, state etc.
- Run any combination of tests without reloading drivers every time. Run just one test if desired.
- Restore previous topology.
In other words, I think the topology file belongs to the "test fixture".
About test plans, see Intel internal sof-framework issue 602.
case-lib/lib.sh
Outdated
| firmware_dir="/lib/firmware/intel/" | ||
| modprobe_file="/etc/modprobe.d/tplg_filename.conf" | ||
| remove_script="/home/ubuntu/sof-test/tools/kmod/sof_remove.sh" | ||
| insert_script="/home/ubuntu/sof-test/tools/kmod/sof_insert.sh" |
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.
$SCRIPT_HOME at the top of this file.
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 for the feedback.
I’ve updated the paths as suggested. Regarding moving the topology swap logic into a separate script and higher-level test plan, I understand your point. In this case, though, the feature was mainly added to support ultrasound handling, and it’s not expected to be used frequently. Because of that, I’m not sure it’s worth introducing a full fixture-level implementation right now.
1c495b6 to
eecee05
Compare
eecee05 to
e20a7f9
Compare
e20a7f9 to
42cdc78
Compare
- Added functionality to change topology filename. - Implemented sample rate modification. - Enable ultrasound testing capabilities. Signed-off-by: Patryk Kuniecki <patryk.kuniecki@intel.com>
42cdc78 to
6f164a3
Compare
|
Please rebase, thx. |