Skip to content

kpb: stop pipeline copy at draining - #1435

Closed
keyonjie wants to merge 1 commit into
thesofproject:masterfrom
keyonjie:master
Closed

keyonjie wants to merge 1 commit into
thesofproject:masterfrom
keyonjie:master

Conversation

@keyonjie

Copy link
Copy Markdown
Contributor

Add a state KPB_STATE_REALTIME for the realtime copy, and stop propagate
copying while at draining.

Signed-off-by: Keyon Jie yang.jie@linux.intel.com

Add a state KPB_STATE_REALTIME for the realtime copy, and stop propagate
copying while at draining.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
@keyonjie

Copy link
Copy Markdown
Contributor Author

SOFCI TEST

@keyonjie

Copy link
Copy Markdown
Contributor Author

@xiulipan @DarrenxWang can you help check why On-device Test Failed:CFL_RVP_HDA:deployfail here?

@keyonjie

Copy link
Copy Markdown
Contributor Author

@xiulipan @DarrenxWang now it passed, thanks.

@keyonjie

Copy link
Copy Markdown
Contributor Author

@mrajwa @tlauda can you please help review this?

@wenqingfu

Copy link
Copy Markdown

what issue id is this PR associated with? @keyonjie

@jajanusz

Copy link
Copy Markdown
Contributor

@mrajwa @tlauda please take a look at this

@keyonjie

Copy link
Copy Markdown
Contributor Author

what issue id is this PR associated with? @keyonjie

No reported issue, only for kpb status cleanup, but I believe @mrajwa will have much more consequent PRs related to be submitted.

@tlauda

tlauda commented May 17, 2019

Copy link
Copy Markdown
Contributor

@mrajwa @keyonjie Shouldn't we still copy the data to the end of keyphrase buffer during the draining phase? Otherwise we will miss the data captured between detection and end of draining.

@keyonjie

Copy link
Copy Markdown
Contributor Author

@mrajwa @keyonjie Shouldn't we still copy the data to the end of keyphrase buffer during the draining phase? Otherwise we will miss the data captured between detection and end of draining.

This dropping is under our design now. about 30~50ms data.

@lbetlej

lbetlej commented May 17, 2019

Copy link
Copy Markdown
Collaborator

@mrajwa @keyonjie Could you confirm that from functionality standpoint there will be no dropped data at KPB ? Data captured from mics after keyphrase is detected and during draining phase should be preserved by KPB until is transmitted to host.

@mrajwa

mrajwa commented May 17, 2019 •

Copy link
Copy Markdown
Contributor

@lbetlej, @tlauda, if your question is "will the history buffer remain intact during the draining event and after draining is done" then yest it will. If your question is "what will happen to the data which will be buffered during the draining and after that (the new data)" then no, it will be lost. We need to "rearm" KPB the whole system for consecutive buffering. Does it answer your question?

PS: please check the release branch, for newest version glk-012-stable-branch

@keyonjie

Copy link
Copy Markdown
Contributor Author

@lbetlej @tlauda what are you really care about here? the data dropping during the draining, or the re-aiming of next detection? If it is the latter, we must design logic to support consecutive kwd firstly, e.g. while we are in draining or real-time copying, the 2nd keyphrase is detected, how should we handle to this 2nd detection?

From the driver side, what it does is only capturing data and pass them to the application.
If the application wants to reset the stream, it will send a trigger stop and reset, so we might need to introduce application developer for this kind of discussion: e.g. if the 2nd keyphrase detected, we might need to give up the previous data(including keyphrase + cmd), this need interaction with application, before we do the whole thing we do for the 1st iteration again.

@tlauda

tlauda commented May 30, 2019

Copy link
Copy Markdown
Contributor

@keyonjie I worry about data dropping during the draining.

@tlauda

tlauda commented May 31, 2019

Copy link
Copy Markdown
Contributor

@keyonjie Should we close this, since the similar change has been also submitted in #1462?

@keyonjie

keyonjie commented Jun 3, 2019

Copy link
Copy Markdown
Contributor Author

@keyonjie I worry about data dropping during the draining.

@tlauda dropping them(about 6~60ms right after detected) looks most simplest way to me, this data doesn't belong to draining(detected) neither key phrase nor real-time data(that we can handle/copy it in real time), we might need figure out how it could be handled, in current solution, this data is excluded.

@keyonjie

keyonjie commented Jun 3, 2019

Copy link
Copy Markdown
Contributor Author

@keyonjie Should we close this, since the similar change has been also submitted in #1462?

That's true, let @mrajwa decide it since he is "re-designing" this part. :-D

@tlauda

tlauda commented Jun 3, 2019

Copy link
Copy Markdown
Contributor

Changes included in #1462.

@tlauda tlauda closed this Jun 3, 2019
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.

6 participants