Skip to content
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

Audio: Tune: Cleanup for the setup scripts for audio processing components #9749

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

singalsu
Copy link
Collaborator

Cleaning up various blobs export scripts.

@singalsu singalsu marked this pull request as ready for review December 20, 2024 08:51
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Questions inline.

"cd tools/tune/aria; octave sof_aria_blobs.m");
sof_tplg2_write(tplg2_fn, blob8, "aria_config", ...
"Exported with script sof_aria_blobs.m" , ...
"cd tools/tune/aria; octave sof_aria_blobs.m");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, check_create_dir() is dropped from this one place, but not all? I guess this call on old L23 was unnecessary and so can be removed? I'd prefer a rename (that touches so many places) to be in its own commit and put any small refactoring changes to separate commits.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't remember exactly why so, but I'll try to split this. I try to keep every commit functional to not break bisect. There was probably some issue with those path create helpers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was a lazy delete, there was no directory check in sof_check_create_dir(). It's now added to 2nd commit as well as these cleanups.

This patch renames the common helper functions with sof_prefix.
The other scripts are updated to use the updated names. There is
no change in functionality.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch adds to sof_tplg_write() and sof_tplg2_write() helper
functions create of file directory path if such is missing. Other
format blob export functions already have the same check.

The duplicated checks are removed from component specific blobs
create functions.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch updates the equalizer tools to use the common helper
functions instead of the originally developed similar functions
for equalizers. The old duplicated functions are deleted.

Signed-off-by: Seppo Ingalsuo <[email protected]>
The common functions version of topology blob export supports
the howto comment. These changes add the instructions text to
all equalizer blobs.

Signed-off-by: Seppo Ingalsuo <[email protected]>
To align the suffix for binary blob files for UCM cset-tlv
and sof-ctl the file naming is changed from .blob to .bin.
The .bin is better associated for binary files.

Signed-off-by: Seppo Ingalsuo <[email protected]>
@singalsu singalsu force-pushed the sof_tune_common_cleanup branch from b42041e to e26b072 Compare January 9, 2025 09:39
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.

3 participants