-
Notifications
You must be signed in to change notification settings - Fork 325
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
Fixes for smart amp test module #7101
base: main
Are you sure you want to change the base?
Conversation
072f025
to
48be8c4
Compare
For alsabat test failure, captured wave file shows empty/silence. But I can generate sinewave and find frequency response right. Trying to find why we have empty wave file. |
Too early updated above.
|
ba26f8b
to
37e01d2
Compare
Thanks @fredoh9. fixed now. |
@fredoh9 Maybe there is an issue or configuration issue, I remembered that when I was in lab, I only hear front left only. |
37e01d2
to
d85baad
Compare
Set the source_buf during prepare if the buffer source queue ID does not match that of the feedback buffer. Set the feedback_buf during copy to also handle the case where the playback stream is started before the feedback stream. Signed-off-by: Ranjani Sridharan <[email protected]>
Clean up the variable names in the copy() function and make it easier to follow. Signed-off-by: Ranjani Sridharan <[email protected]>
d85baad
to
d6733b7
Compare
@@ -692,6 +669,9 @@ static int smart_amp_copy(struct comp_dev *dev) | |||
|
|||
buffer_release(buf); | |||
} | |||
#if CONFIG_IPC_MAJOR_4 | |||
sad->feedback_buf = NULL; |
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.
so on every copy you have to re-assign the feedback buffer... TBH I'm not sure what smart-amp-test is actually for (it's "just" a test, right? So it isn't used in any real audio streaming?) but this seems rather expensive
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.
Yeah, this will need a comment to explain the specific case if needed other wise it could be copy and pasted into other samples.
Can one of the admins verify this patch? |
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.
Lots of code removal !
Good now @RanderWang ? |
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.
Code seems good, but I don't fully understand the conclusion on the long discussion in this PR on the multi-thread case. It is marked as resolved, so I guess this PR is now good to go, but would be good for @RanderWang @lyakh to ack with a +1 that this is ok to proceed.
@lgirdwood @kv2019i. I also discussed my method (#7259) to remove bind & unbind with @ranj063 @lyakh and got a conclusion that we will do bind & unbind job in module adapter. @andrula-song will adapt smart_amp to module interface and bind & unbind will be removed in her PR. We don't need to check feedback buffer in smart_amp_copy |
hi @RanderWang |
you can discuss with Ranjani |
@andrula-song good for you now, if so pls approve or reject. |
apart of this PR already exist in our code, and I am using module adapter to remove bind & unbind. So I don't think merge this PR is necessary. |
@ranj063 still needed ? |
Turning into draft for now... |
No description provided.