Skip to content

ASoC: SOF: sof-client-probes-ipc4: Set param_size extension bits - #5221

Merged
bardliao merged 1 commit into
thesofproject:topic/sof-devfrom
jsarha:probes_ipc4_fix
Oct 31, 2024
Merged

bardliao merged 1 commit into
thesofproject:topic/sof-devfrom
jsarha:probes_ipc4_fix

Conversation

@jsarha

@jsarha jsarha commented Oct 30, 2024

Copy link
Copy Markdown
Collaborator

Write the size of the optional payload of SOF_IPC4_MOD_INIT_INSTANCE message to extension param_size-bits.

The previous IPC4 version does not set these bits that should indicate the size of the optional payload (struct sof_ipc4_probe_cfg). The old firmware side component code works well without these bits, but when the probes are converted to use the generic module API, this does not work anymore.

Fixes: ba98c69 (ASoC: SOF: IPC4: probes: Implement IPC4 ops for probes client device)

Write the size of the optional payload of SOF_IPC4_MOD_INIT_INSTANCE
message to extension param_size-bits.

The previous IPC4 version does not set these bits that should indicate
the size of the optional payload (struct sof_ipc4_probe_cfg). The old
firmware side component code works well without these bits, but when
the probes are converted to use the generic module API, this does not
work anymore.

Fixes: ba98c69 (ASoC: SOF: IPC4: probes: Implement IPC4 ops for probes client device)

Signed-off-by: Jyri Sarha <[email protected]>
@bardliao
bardliao merged commit 346a4c9 into thesofproject:topic/sof-dev Oct 31, 2024
msg.primary |= SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG);
msg.extension = SOF_IPC4_MOD_EXT_DST_MOD_INSTANCE(INVALID_PIPELINE_ID);
msg.extension |= SOF_IPC4_MOD_EXT_CORE_ID(0);
msg.extension |= SOF_IPC4_MOD_EXT_PARAM_SIZE(sizeof(cfg)/sizeof(uint32_t));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Spaces around /

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.

5 participants