Skip to content

Conversation

@btian1
Copy link
Contributor

@btian1 btian1 commented May 12, 2023

no change for functionality, changes list below:

  1. Removed dependency in dai-zephyr.c and dai-legacy.c for comp_dai_get_hw_params with direct calling.
  2. Removed one case for COMP_ATTR_VDMA_INDEX in function: copier_get_attribute, since it only used inside copier.
  3. Renamed function name with better aligned with name convention.
  4. Removed copier get hw parameters function.

This is for preparation of copier module interface.

Copy link
Collaborator

Choose a reason for hiding this comment

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

not true for multi endpoint DAI yet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, seems I put too much in one patch again, let me split and upload with new patches.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since multi-endpoint PR merged, seems this part of change need involve again, let me try to submit a new patch to cover this.

@btian1 btian1 requested a review from ranj063 May 14, 2023 12:19
@btian1 btian1 force-pushed the remove_notstandard branch 3 times, most recently from c3b497d to 699aa4a Compare May 15, 2023 05:18
Copy link
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 this for now.

@btian1 btian1 force-pushed the remove_notstandard branch from 699aa4a to eae9842 Compare May 15, 2023 06:52
@btian1 btian1 changed the title [DONT REVIEW] PREAPREATION FOR COPIER MODULER ADAPTER preparation for module adapter interface May 15, 2023
@btian1 btian1 changed the title preparation for module adapter interface [copier]preparation for copier module adapter interface May 15, 2023
@btian1 btian1 marked this pull request as ready for review May 15, 2023 06:59
@btian1 btian1 changed the title [copier]preparation for copier module adapter interface copier: preparation for copier module adapter interface May 15, 2023
Copy link
Collaborator

@RanderWang RanderWang left a comment

Choose a reason for hiding this comment

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

LGTM

@btian1 btian1 force-pushed the remove_notstandard branch from eae9842 to 25f2275 Compare May 15, 2023 08:29
@btian1 btian1 requested review from RanderWang and ranj063 May 15, 2023 08:31
@btian1 btian1 force-pushed the remove_notstandard branch from 25f2275 to 128b5dd Compare May 15, 2023 13:17
@ranj063
Copy link
Collaborator

ranj063 commented May 15, 2023

@btian1 ADL nocodec has failures on playback. Can you please check?

@btian1 btian1 force-pushed the remove_notstandard branch 2 times, most recently from ff174e8 to 1f2cf9d Compare May 16, 2023 01:42
@btian1 btian1 force-pushed the remove_notstandard branch from 1f2cf9d to 975bb2a Compare May 16, 2023 02:33
@btian1
Copy link
Contributor Author

btian1 commented May 19, 2023

trying to resolve remove copier part, however failed with cmocka part, trying to figure out how to call common_get_hw_params in cmocka.

Tried with add dai-legacy.c into cmocka CMakeLists.txt, however, this will brings more errors, trying in isolate the common function in header file.

@btian1 btian1 requested a review from kv2019i May 19, 2023 02:35
@btian1 btian1 marked this pull request as draft May 19, 2023 02:35
@btian1 btian1 force-pushed the remove_notstandard branch 11 times, most recently from 27f58a6 to eab21e0 Compare May 23, 2023 01:36
@btian1 btian1 marked this pull request as ready for review May 23, 2023 02:31
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not specific to this commit, but with the recent copier / DAI integration work, I'm a bit concerned about mixing up of the layers. Now we have copier and DAI layers mixing in with the pipeline code. Is that an intermediate step or is it what we want eventually?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand.

Before this change, the get hw params operation still looks very strange, it calls it by an inline ops driver interface, and this interface is not an standard for module adapter, so this is why this patch exists.

Regarding the change, due to we have to support multiple cases(otherwise, CI will report error)
looks a little redundant, maybe one day, ipc3 support was totally removed from SOF, then we may figure out a better way to implement this get hw params.

currently, seems this is the only way to remove this interface from copier.

@btian1 btian1 requested a review from lyakh May 23, 2023 07:12
@btian1 btian1 force-pushed the remove_notstandard branch 3 times, most recently from e6e6ae3 to 03793ab Compare May 25, 2023 13:19
btian1 added 3 commits May 25, 2023 21:24
inside dai-zephyr/legacy, there is no need to call
comp_dai_get_hw_params, dai_zephyr_get_hw_params can be directly
called without wrap, remove the dpendency in dai-zephyr/legacy.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
COMP_ATTR_VDMA_INDEX is a copier internal usage case, no other
module used, so remove and replace it with direct assign. At the
same time, this keep get_attribute align with module adapter format.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
Change function name from: dai_zephyr_get_hw_params to
dai_common_get_hw_params, due to this name also exist in
dai-legacy.c, need align both legacy and zephyr part to avoid
misunderstanding.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
@btian1 btian1 force-pushed the remove_notstandard branch from 03793ab to b084675 Compare May 26, 2023 01:30
@kv2019i
Copy link
Collaborator

kv2019i commented May 29, 2023

@kv2019i kv2019i merged commit a03e9f6 into thesofproject:main May 29, 2023
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