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

Tools: Tune: Add tplg2 support to dcblock setup tool #8122

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

singalsu
Copy link
Collaborator

No description provided.

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.

@ShriramShastry pls review

@singalsu singalsu force-pushed the dcblock_update_setup_tool branch from a509d24 to 2e26222 Compare September 1, 2023 18:52
@singalsu singalsu marked this pull request as ready for review September 1, 2023 18:53
@singalsu singalsu requested a review from a team as a code owner September 1, 2023 18:53
Copy link
Contributor

@ShriramShastry ShriramShastry left a comment

Choose a reason for hiding this comment

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

I've added my review comments.
Thank you !!


%% Settings
bits_R = 32; %Q2.30
qy_R = 30;

if nargin < 2
endian = 'little'
endif
endian = 'little';
Copy link
Contributor

Choose a reason for hiding this comment

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

bits_R looks like unused.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, I can remove. Easy to add back if would be needed again.


% Set the parameters here
tplg_fn = "../../topology/topology1/m4/dcblock_coef_default.m4" % Control Bytes File
tplg1_fn = "../../topology/topology1/m4/dcblock_coef_default.m4" % Control Bytes File
Copy link
Contributor

Choose a reason for hiding this comment

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

Please include a semicolon in all parameter settings if you do not intend to print the output to the console. from line 4to line 10

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since it's consistent I was wondering if it was intentional, and kept as-is, but I can remove. Please chime in if this is not desired.

Copy link
Contributor

Choose a reason for hiding this comment

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

It appears to be perplexing!! A couple of thoughts.

I would not print to the console since they are assigned to a variable, and if we need to look at the variable, and variables must be clearly defined with the intended meaning attached.

Can a rename the blob and text files because they contain the same data for blob3/4 and alsa3/4?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure I'm following but the ipc4 blob contains a different header, so the files are not copies.

Copy link
Contributor

Choose a reason for hiding this comment

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

blob3_fn = "../../ctl/ipc3/dcblock_coef.blob";% Binary file blob
blob4_fn = "../../ctl/ipc4/dcblock_coef.blob";% Binary file blob

alsa3_fn = "../../ctl/ipc3/dcblock_coef.txt";% CSV file in ALSA format
alsa4_fn = "../../ctl/ipc4/dcblock_coef.txt";% CSV file in ALSA format

I mean, aren't dcblock_coef.blob and dcblock_coef.txt the same file?

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's same data but different format. The binary format is for UCM, sof-ctl can use both binary and ascii decimal. I like myself the ascii decimal to quickly visually check the numbers data.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation!

@singalsu singalsu force-pushed the dcblock_update_setup_tool branch from 2e26222 to 8a649b8 Compare September 5, 2023 12:09
@kv2019i
Copy link
Collaborator

kv2019i commented Sep 13, 2023

@singalsu This one is ready to go, but we need a clean pass of required CI.

@singalsu
Copy link
Collaborator Author

SOFCI TEST

@lgirdwood
Copy link
Member

@wszypelt @lrudyX not expecting to see failure here as script change only.

This patch adds generate of blob for tplg2 and ipc4 in
formats .conf, text, and binary formats.

Signed-off-by: Seppo Ingalsuo <[email protected]>
The abs() function need to be added to plot the correct magnitude
response. Matlab warned in this case about ignoring imaginary
part.

Signed-off-by: Seppo Ingalsuo <[email protected]>
The script can be run in both Matlab and Octave with these
changes.

Signed-off-by: Seppo Ingalsuo <[email protected]>
@singalsu singalsu force-pushed the dcblock_update_setup_tool branch from 8a649b8 to 522048b Compare September 14, 2023 16:21
@singalsu
Copy link
Collaborator Author

New force push for rebase, no changes to patch.

@kv2019i kv2019i merged commit e7816e9 into thesofproject:main Sep 14, 2023
40 of 41 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