Uh oh!
There was an error while loading. Please reload this page.
samples: convert smart amp test module to not expect the blob during init with IPC4 - #7042
Conversation
lgirdwood
commented
Feb 6, 2023
wszypelt
commented
Feb 6, 2023
@lgirdwood 3 tests on KD was failed, I think it's not good to merge |
ujfalusi
commented
Feb 6, 2023
To be fair, most of the PRs are failing in a same way, if I read the logs right, no? |
wszypelt
commented
Feb 6, 2023
@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. |
wszypelt
commented
Feb 6, 2023
@ujfalusi@lgirdwood I'm taking FW and will check these tests on another machine, in a moment I will write how it went. |
ujfalusi
commented
Feb 6, 2023
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. |
ujfalusi
commented
Feb 6, 2023
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. |
mwasko
commented
Feb 6, 2023
@iganakov please review proposed changes |
wszypelt
commented
Feb 6, 2023
@ujfalusi@lgirdwood |
mszleszy
commented
Feb 6, 2023
@lgirdwood |
There was a problem hiding this comment.
Thanks for spotting it, I will use sof_smart_amp_ipc4_config
iganakov
left a comment
There was a problem hiding this comment.
Looks good to me except unused field load_memory_size in sof_detect_test_config. Probably, should be removed.
There was a problem hiding this comment.
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.
OK, this is why I added the defines ;)
aiChaoSONG
commented
Feb 7, 2023
The smart amp change in this PR is verified with #6996 and thesofproject/linux#4160, need more time to test the WoV change. |
ujfalusi
commented
Feb 7, 2023
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
9adad6fCompareujfalusi
commented
Feb 7, 2023
Changes since v1:
|
@mszleszy, the detect_test at init will receive the Fwiw, this is how the blob will look like in topology: |
ujfalusi
commented
Feb 7, 2023
@iganakov, I have intentionally kept the original |
lgirdwood
commented
Feb 7, 2023
@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.