-
Notifications
You must be signed in to change notification settings - Fork 349
samples: convert smart amp test module to not expect the blob during init with IPC4 #7042
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
samples: convert smart amp test module to not expect the blob during init with IPC4 #7042
Conversation
|
@lgirdwood 3 tests on KD was failed, I think it's not good to merge |
To be fair, most of the PRs are failing in a same way, if I read the logs right, no? |
|
@ujfalusi a lot of PR has a problem with one test and right now I'm trying to understand why, but here the whole module fails. |
|
@ujfalusi @lgirdwood I'm taking FW and will check these tests on another machine, in a moment I will write how it went. |
Right, so, with this patch the configuration blob is not expected within MOD_INIT_INSTANCE message, a separate LARGE_CONFIG should be use to send the configuration (param_id = 2) and the blob itself should be the exact same payload as it was with IPC3, So in the abi header you need to change the magic to 0x34464F53, set they type to 2 and send that with Linux. |
|
I was not aware that we had any tests for detect_test at all, like we did not have for the smart_amp_test neither. |
|
@iganakov please review proposed changes |
|
@ujfalusi @lgirdwood |
|
@lgirdwood |
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.
ipc4 repeated
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 spotting it, I will use sof_smart_amp_ipc4_config
iganakov
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.
Looks good to me except unused field load_memory_size in sof_detect_test_config. Probably, should be removed.
src/samples/audio/smart_amp_test.c
Outdated
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.
We have the macros defined, use them here?
#define SMART_AMP_NUM_IN_PINS 2
#define SMART_AMP_NUM_OUT_PINS 1
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.
OK, this is why I added the defines ;)
|
The smart amp change in this PR is verified with #6996 and thesofproject/linux#4160, need more time to test the WoV change. |
|
I will drop the detect_test change from the PR for now and open a new one for it to get the smart amp feature enabled faster. |
During the component create (module init) we are not receiving the blob containing the sof_smart_amp_config, only the base_cfg and base_cfg_ext is received. The sof_smart_amp_config content will be sent via large_config_set at a later time. Introduce a new IPC4 only struct to store the base and pin configurations and handle the IPC3 / IPC4 init differently. The blob received via large_config_set must be the same format as the blob with IPC3. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
9ce454b to
9adad6f
Compare
|
Changes since v1:
|
@mszleszy, the detect_test at init will receive the Fwiw, this is how the blob will look like in topology: |
@iganakov, I have intentionally kept the original |
|
@iganakov @softwarecki updates OK for you ? |
Hi,
the module initialization for IPC4 does not contain binary (configuration) blob, only base_cfg and optional bae_cfg_ext.
The configuration blob is sent as a large_config message separately.