-
Notifications
You must be signed in to change notification settings - Fork 349
copier: preparation for copier module adapter interface #7598
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
Conversation
src/audio/pipeline/pipeline-params.c
Outdated
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
c3b497d to
699aa4a
Compare
src/audio/dai-legacy.c
Outdated
There was a problem hiding this comment.
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.
699aa4a to
eae9842
Compare
RanderWang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
eae9842 to
25f2275
Compare
25f2275 to
128b5dd
Compare
|
@btian1 ADL nocodec has failures on playback. Can you please check? |
ff174e8 to
1f2cf9d
Compare
1f2cf9d to
975bb2a
Compare
|
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. |
27f58a6 to
eab21e0
Compare
src/audio/pipeline/pipeline-params.c
Outdated
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
e6e6ae3 to
03793ab
Compare
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>
03793ab to
b084675
Compare
|
Known fails in https://sof-ci.01.org/sofpr/PR7598/build8568/devicetest/index.html and https://sof-ci.01.org/sofpr/PR7598/build8567/devicetest/index.html . Proceeding with merge. |
no change for functionality, changes list below:
This is for preparation of copier module interface.