Skip to content

Rename codec_adapter to module_adapter#5593

Merged
lgirdwood merged 18 commits into
thesofproject:mainfrom
ranj063:fix/codec_bytes_to_process
May 4, 2022
Merged

Rename codec_adapter to module_adapter#5593
lgirdwood merged 18 commits into
thesofproject:mainfrom
ranj063:fix/codec_bytes_to_process

Conversation

@ranj063

@ranj063 ranj063 commented Mar 24, 2022

Copy link
Copy Markdown
Collaborator

Just a whole lot of renames. No functional changes.

@ranj063

ranj063 commented Mar 24, 2022

Copy link
Copy Markdown
Collaborator Author

@dbaluta @kkarask Please note that the kconfig menu has changes to COMP_MODULE_ADAPTER with this PR.

@ranj063 ranj063 changed the title Rename codec_adapter to module_adapter. Rename codec_adapter to module_adapter Mar 24, 2022
@keqiaozhang

Copy link
Copy Markdown
Collaborator

SOFCI TEST

@kv2019i kv2019i 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.

That has been some work to split this into small patches. But easy to review this way. I'd have been happy with one big patch as well.

@kkarask

kkarask commented Mar 24, 2022

Copy link
Copy Markdown

There is a need to change build file. We should sync to adjust this change to CI process.

@dbaluta dbaluta 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.

This looks good to me, but I prefer to have the renaming done after my dynamic codec patches are in.

See:
#5596

@ranj063 ranj063 force-pushed the fix/codec_bytes_to_process branch from fb8fb3c to 1076f2a Compare April 13, 2022 16:18
@ranj063

ranj063 commented Apr 13, 2022

Copy link
Copy Markdown
Collaborator Author

There is a need to change build file. We should sync to adjust this change to CI process.

@kkarask can you please change the QB CI to use the new config CONFIG_MODULE_ADAPTER instead of CONFIG_CODEC_ADAPTER. It will be needed for this PR to pass.

@kkarask

kkarask commented Apr 14, 2022

Copy link
Copy Markdown

I will be ready today - is it ok?

@ranj063

ranj063 commented Apr 14, 2022

Copy link
Copy Markdown
Collaborator Author

I will be ready today - is it ok?

@kkarask sure, let me know if you have any other issues with this PR

@lgirdwood

Copy link
Copy Markdown
Member

@dbaluta does this mean you are OK to merge whilst part 2 of your coded work is testing ? Just clarifying.

@sys-pt1s

Copy link
Copy Markdown

Can one of the admins verify this patch?

@wszypelt

wszypelt commented Apr 15, 2022

Copy link
Copy Markdown

@ranj063 @sys-pt1s @lgirdwood @dbaluta
We ran the first tests, unfortunately the problem is probably still here:
image

Because we have errors with the file not found

@ranj063

ranj063 commented Apr 15, 2022

Copy link
Copy Markdown
Collaborator Author

Because we have errors with the file not found

@wszypelt what is the error you're seeing? Can you please paste the error log ? Is it during build?

@dbaluta

dbaluta commented Apr 18, 2022

Copy link
Copy Markdown
Collaborator

@dbaluta does this mean you are OK to merge whilst part 2 of your coded work is testing ? Just clarifying.

@lgirdwood lets wait a little bit more time until we merge this PR. part 2 of my codec work has a problem with Intel internal tests and I will try to debug it but it will take a while.

Also, since @ranj063 is not in the office this week I don't think would be a problem to wait a little bit until we merge this current PR.

@wszypelt

wszypelt commented Apr 19, 2022

Copy link
Copy Markdown

@ranj063 yes, the error occurs while building the codec FW

13:46:15,096 INFO  - In file included from /quickbuild/workspace1/24733/SOF_FW/src/audio/module_adapter/module_adapter.c:16:
13:46:15,096 INFO  - /quickbuild/workspace1/24733/SOF_FW/src/include/sof/audio/module_adapter/module_adapter.h:11:52: error: sof/audio/codec_adapter/module/generic.h: No such file or directory
13:46:15,100 INFO  - CMakeFiles/sof.dir/build.make:995: recipe for target 'CMakeFiles/sof.dir/src/audio/module_adapter/module_adapter.c.o' failed
13:46:15,100 INFO  - make[3]: *** [CMakeFiles/sof.dir/src/audio/module_adapter/module_adapter.c.o] Error 2

@ranj063 ranj063 force-pushed the fix/codec_bytes_to_process branch from 1076f2a to b886a9a Compare April 25, 2022 17:20
ranj063 added 5 commits April 27, 2022 08:26
to module_adapter_trigger(). No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
to module_adapter_reset(). No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
to module_adapter_free(). No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
To module_adapter.h. No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
to module_adapter. No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
@ranj063 ranj063 force-pushed the fix/codec_bytes_to_process branch from b886a9a to f23fe0a Compare April 27, 2022 15:35
@ranj063

ranj063 commented Apr 27, 2022

Copy link
Copy Markdown
Collaborator Author

@ranj063 part 3 now merged so this PR is next.

@lgirdwood conflicts fixed now. @wszypelt could you please update the config in QB and retry this one?

ranj063 added 5 commits April 27, 2022 09:07
to DECLARE_MODULE_ADAPTER and comp_driver to comp_module_adapter.
Also rename SOF_COMP_MODULE_ADAPTER to SOF_COM_MODULE_ADAPTER.
No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
to cadence.h. It isn't used elsewhere.

Signed-off-by: Ranjani Sridharan <[email protected]>
No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
and fix all the includes accordingly. No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
No functional changes.

Signed-off-by: Ranjani Sridharan <[email protected]>
@ranj063 ranj063 force-pushed the fix/codec_bytes_to_process branch from f23fe0a to 2d0dd91 Compare April 27, 2022 16:08
@lgirdwood

Copy link
Copy Markdown
Member

@ranj063 can you check CI. Thanks !

@ranj063

ranj063 commented Apr 27, 2022

Copy link
Copy Markdown
Collaborator Author

@ranj063 can you check CI. Thanks !

Sure. I cant seem to load any of them but its also quite surprising the regular tests fail. This PR doesnt touch anything outside of the codec_adapter. @wszypelt any ideas?

@lgirdwood

Copy link
Copy Markdown
Member

@ranj063 can you check CI. Thanks !

Sure. I cant seem to load any of them but its also quite surprising the regular tests fail. This PR doesnt touch anything outside of the codec_adapter. @wszypelt any ideas?

Could be the DUT needing a reboot ? @wszypelt good to merge ?

@wszypelt

Copy link
Copy Markdown

@lgirdwood @ranj063 Yes, one of the DUTs needed a reset, PR is under testing. there should be results soon.

@wszypelt

Copy link
Copy Markdown

@ranj063 @lgirdwood I don't really understand what happened, do we no longer need a configuration file change to get the codec build to work? (COMP_MODULE_ADAPTER) Even if, as you can see there was a problem with ipc error -22 on codec tests.

@ranj063

ranj063 commented Apr 28, 2022

Copy link
Copy Markdown
Collaborator Author

@ranj063 @lgirdwood I don't really understand what happened, do we no longer need a configuration file change to get the codec build to work? (COMP_MODULE_ADAPTER) Even if, as you can see there was a problem with ipc error -22 on codec tests.

@wszypelt yes, you do need a configuration change when building to include COMP_MODULE_ADAPTER and CADENCE_CODEC selected. Could you please send me the config from your build?

@wszypelt

Copy link
Copy Markdown

@ranj063 Unfortunately, the changes can be made together with the team from the internal service, additionally I'm now on ooo, back to work at Wednesday

@dbaluta

dbaluta commented May 4, 2022

Copy link
Copy Markdown
Collaborator

@ranj063 thanks! Looks good to me.

@lgirdwood

Copy link
Copy Markdown
Member

@wszypelt any ETA on CI updates ?

@wszypelt

wszypelt commented May 4, 2022

Copy link
Copy Markdown

@lgirdwood The case was reported and explained, I am waiting for a move from the internal service, I hope that everything will be done within an hour.

@wszypelt

wszypelt commented May 4, 2022

Copy link
Copy Markdown

@lgirdwood @ranj063
After many tries, it finally started to work! Quick merge please. Then I will be able run the rest of the pull requests

@lgirdwood lgirdwood merged commit b4591ca into thesofproject:main May 4, 2022
@lgirdwood

Copy link
Copy Markdown
Member

@wszypelt merged

@marc-hb

marc-hb commented May 11, 2022

Copy link
Copy Markdown
Collaborator

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.