Uh oh!
There was an error while loading. Please reload this page.
Fixes for smart amp test module - #7101
Conversation
072f025 to
48be8c4Comparefredoh9
commented
Feb 15, 2023
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. |
fredoh9
commented
Feb 15, 2023
Too early updated above.
|
ba26f8b to
37e01d2Compareranj063
commented
Feb 15, 2023
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. |
Uh oh!
There was an error while loading. Please reload this page.
37e01d2 to
d85baadCompareSet 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 <ranjani.sridharan@linux.intel.com>
Clean up the variable names in the copy() function and make it easier to follow. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
d85baad to
d6733b7Compare| buffer_release(buf); | ||
| } | ||
| #if CONFIG_IPC_MAJOR_4 | ||
| sad->feedback_buf = NULL; |
There was a problem hiding this comment.
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.
Yeah, this will need a comment to explain the specific case if needed other wise it could be copy and pasted into other samples.
gkbldcig
commented
Mar 28, 2023
Can one of the admins verify this patch? |
kv2019i
commented
Mar 30, 2023
Good now @RanderWang ? |
kv2019i
left a comment
There was a problem hiding this comment.
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 |
andrula-song
commented
Mar 31, 2023
hi @RanderWang |
RanderWang
commented
Apr 3, 2023
you can discuss with Ranjani |
lgirdwood
commented
Apr 4, 2023
@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. |
lgirdwood
commented
Apr 6, 2023
@ranj063 still needed ? |
kv2019i
commented
Apr 28, 2023
Turning into draft for now... |
No description provided.