-
Notifications
You must be signed in to change notification settings - Fork 322
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
[FEATURE] sof-ctl should be able to insert ABI header. #1535
Comments
@singalsu is this merged now ? |
@lgirdwood Sorry no. The usage of this feature is not clear. Why do we want to specify the version in command line if we do not know the rest of the ext binary structure? The sof-ctl tool can't have capability re-format requests for past ABIs. In another feature issue #791 the idea is that sof-ctl would return the current ABI constant blurb and process component could then insert the stable own binary settings data into the end. |
@lgirdwood I noticed that @keyonjie has added option "-r" but it's not exactly this. If you mean overwrite the bytes location with command line provided version it's a simple change. How should the header validate ("If this arg is not given then sof-ctl should validate header instead.") behave from user point of view? |
@lgirdwood @keyonjie Please help describe this requirement (how it differs from existing "-r" and now proposed "-p" functionality). I'd like to keep PR #1792 as [RFC] until we have this one implemented as well. |
Hi @lgirdwood can you help to describe the usage scenario that you mentioned with "A command line argument like sof-ctl -a 3:8:0 to insert header for ABI. If this arg is not given then sof-ctl should validate header instead."? Per my understanding, we have 2 kinds of usage scenarios when using sof-ctl tool:
So, @lgirdwood is what you described is the last scenario in #2 above? if it is, then I think it can already generate the ABI header automatically, with the ABI version that the tool(sof-ctl) was compiled in the sof source repo, I think it is better to add allows the user to specify random ABI version here? @singalsu is adding another usage scenario, that is using sof-ctl like "ABI header generator",
We can specify the 'size' flag as Seppo wanted, specify the 'abi' flag as you want(if your intention was this), or specify the magic number and type(e.g. in KWD case) as we want. @lgirdwood please help confirm what's your intention, the #2 or #3 usage scenario? |
@singalsu @keyonjie intention is to allow external tuning tools (which do not know anything about ABI) to be able to send and recieve data from the FW.
Can you guys confirm this is supported. |
Option "-r" should do examples 1 and 2 for set data and get data but it doesn't work as I thought it would go. This test is with ASCII CSV data. I'm not using myself binaries at the moment.
Maybe this should be fixed? I'll test next with binary data, need to do a convert script... |
Here's my test with binary data without header, write works (a lot of bass can be heard 👍 ) :
Also binary data get without header works
So in my opinion examples 1-2 by @lgirdwood work with binary data. @keyonjie Should I work to fix the CSV ASCII data set/get with -r ? Am I using the correct command line switches? |
@singalsu yes, you are using the correct command lines, set/get for CSV ASCII text data with -r(raw data without ABI header) is not supported yet (as we don't have this requirement in demux or kwd scenarios, I didn't work on that), it will be good if you can add this for EQ. |
The PR #1792 is merged now so we can close this! |
Is your feature request related to a problem? Please describe.
sof-ctl currently can't insert ABI header. A common use case is to generate new binary blob (using proprietary tools) and upload to FW for runtime tuning. Proprietary tools may not be able to generate the header.
Describe the solution you'd like
A command line argument like
sof-ctl -a 3:8:0
to insert header for ABI. If this arg is not given then sof-ctl should validate header instead.The text was updated successfully, but these errors were encountered: