Skip to content

Conversation

@pkunieck
Copy link
Contributor

  • Added functionality to change topology filename.
  • Implemented sample rate modification.
  • Enable ultrasound testing capabilities.

@sofci
Copy link
Collaborator

sofci commented Sep 23, 2025

Can one of the admins verify this patch?

reply test this please to run this test once

@pkunieck pkunieck force-pushed the add_test_ultrasound_dmic_capture branch from 0eea1d5 to 1c495b6 Compare September 23, 2025 16:02
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.

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"
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@pkunieck pkunieck force-pushed the add_test_ultrasound_dmic_capture branch from 1c495b6 to eecee05 Compare October 7, 2025 14:36
@pkunieck pkunieck marked this pull request as ready for review October 7, 2025 14:36
@pkunieck pkunieck requested review from a team, golowanow and lgirdwood as code owners October 7, 2025 14:36
@pkunieck pkunieck force-pushed the add_test_ultrasound_dmic_capture branch from eecee05 to e20a7f9 Compare October 9, 2025 10:28
@pkunieck pkunieck requested a review from ekurdybx October 9, 2025 10:28
- Added functionality to change topology filename.
- Implemented sample rate modification.
- Enable ultrasound testing capabilities.

Signed-off-by: Patryk Kuniecki <patryk.kuniecki@intel.com>
@pkunieck pkunieck force-pushed the add_test_ultrasound_dmic_capture branch from 42cdc78 to 6f164a3 Compare October 14, 2025 09:50
@pkunieck pkunieck requested a review from redzynix October 14, 2025 09:51
@redzynix
Copy link
Contributor

Please rebase, thx.

@redzynix redzynix merged commit 6007edd into thesofproject:main Oct 15, 2025
3 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.

6 participants