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: Testbench: Add to IPC4 version UUID based components load, apply initial byte control, etc. #9542

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

singalsu
Copy link
Collaborator

@singalsu singalsu commented Oct 3, 2024

To build and run IPC4 topologies, this needs PRs #9536, #9538. #9501 is needed if the topology is not containing blobs for byte controls (usually they do).

This patch copies similar change from SOF plugin. The load
of host copier, DAI copier, PGA, and process components are
updated to use UUID that is appended to end of IPC4 base module
configuration and other component specific init IPC.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This adds find or byte controls and set to components after
initialize. Also other control types mixer, switch, enum are
parsed but not yet applied to components.

The code is copied and adapted from SOF plugin.

Signed-off-by: Seppo Ingalsuo <[email protected]>
If kept in src_common.h the inclusion to tplg_parser would
create need to include even more headers from SOF. The simple
src_ipc.h contains the only needed SRC IPC4 definition.

The __SOF_AUDIO_SRC_SRC_H__ is updated to match header name
and the ending #endif is moved file end where it should be.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This replaces for IPC4 testbench the previous non-working version
that was a copy of IPC3 version.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This replaces for IPC4 testbench the previous non-working version
that was a copy of IPC3 version.

Signed-off-by: Seppo Ingalsuo <[email protected]>
@@ -52,6 +55,27 @@ struct tb_config {
int channels;
unsigned long format;
};

struct tb_ctl {
Copy link
Member

Choose a reason for hiding this comment

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

Can we include the ABI header rather than duplicate ? I guess this comes from ALSA asoc.h ?


/* src component private data */
struct ipc4_config_src {
struct ipc4_base_module_cfg base;
Copy link
Member

Choose a reason for hiding this comment

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

Should we have size at the start ?

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.

2 participants