Skip to content

Tools: Testbench: Convert file component to module adapter - #9432

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
singalsu:testbench_file_module
Sep 17, 2024
Merged

Tools: Testbench: Convert file component to module adapter#9432
lgirdwood merged 1 commit into
thesofproject:mainfrom
singalsu:testbench_file_module

Conversation

@singalsu

Copy link
Copy Markdown
Collaborator

This is done as preparation for testbench IPC4 support. The update to IPC4 is simpler for a module adapter component.

@singalsu

Copy link
Copy Markdown
CollaboratorAuthor

I've split out this from testbench IPC4 draft PR to ease review of large PR. I'll address the comments for file here.

Comment threadtools/testbench/topology.c Outdated
file_uuid->d[4] = 0x08;
file_uuid->d[5] = 0xa6;
file_uuid->d[6] = 0x98;
file_uuid->d[7] = 0xc2;

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

This was commented by Liam in #9025, is there a nicer way to set this with a macro?

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.

define a static const UUID and memcpy() it?

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

Yep, that works, thanks!

@kv2019ikv2019i left a comment

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.

Look ok to me, one comment inline

Comment threadsrc/ipc/ipc3/helper.c
return -EBADMSG;
case SOF_COMP_FILEREAD:
case SOF_COMP_FILEWRITE:
config->file.channels = file->channels;

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.

I think you need to keep the check on L218-219 (added recently).

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

Oops yes, missed this in rebase.

This is done as preparation for testbench IPC4 support. The
update to IPC4 is simpler for a module adapter component.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu

Copy link
Copy Markdown
CollaboratorAuthor

There's a build fail in https://sof-ci.01.org/sof-pr-viewer/#/build/PR9432/build14219918, trying again.

@singalsu

Copy link
Copy Markdown
CollaboratorAuthor

SOFCI TEST

@lgirdwood

Copy link
Copy Markdown
Member

@wszypelt@lrudyX good for merge ?

@singalsu

Copy link
Copy Markdown
CollaboratorAuthor

The Jenkins failures sof-ci/jenkins/pr-device-test/main-ace and sof-ci/jenkins/pr-device-test/main-lnl are not related. The Internal Intel CI System/merge/build that previously failed is now passed.

@lgirdwood
lgirdwood merged commit 9d1177a into thesofproject:mainSep 17, 2024
Sign up for freeto 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.

4 participants

@singalsu@lgirdwood@lyakh@kv2019i