Skip to content

Prepare codec adapter to work with zephyr (1) - #5384

Merged
lgirdwood merged 3 commits into
thesofproject:mainfrom
dbaluta:codec_adapter_zephyr1
Feb 18, 2022
Merged

lgirdwood merged 3 commits into
thesofproject:mainfrom
dbaluta:codec_adapter_zephyr1

Conversation

@dbaluta

@dbaluta dbaluta commented Feb 17, 2022

Copy link
Copy Markdown
Collaborator

This is the first part on preparing codec adapter to work with zephyr.

This does:

  • fix some build warnings / errors (given the fact that zephyr uses prink which has stronger params checks)
  • fix DECLARE_CODEC_ADAPTER macro. this was generic same symbols names for init functions().
  • add codec adapter components to zephyr/wrapper.c

Two comp_err calls have mismatching formats and arguments. When built
with zephyr, comp_err() translates to printk which has better format
checks.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
With the current implementation argument 'adapter' was ignored
for each instance of the codec the sys_*_init function name was the
same.

Fix this by properly using 'adapter' name.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This enables codec_adapter and cadence/passhtrough codecs
with SOF on Zephyr.

passthrough codec can be used as it is, but cadence codec
will also need codec libraries from cadence.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
@lgirdwood
lgirdwood merged commit b06f2cf into thesofproject:main Feb 18, 2022
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.

3 participants