Handle WoV phrase detection notification and kcontrols - #5903
Open
naveen-manohar wants to merge 2 commits into
Open
Handle WoV phrase detection notification and kcontrols#5903naveen-manohar wants to merge 2 commits into
naveen-manohar wants to merge 2 commits into
Conversation
naveen-manohar
requested review from
bardliao,
dbaluta,
kv2019i,
lgirdwood,
lyakh,
plbossart,
ranj063 and
ujfalusi
as code owners
August 29, 2026 05:27
Add SOF_IPC4_NOTIFY_PHRASE_DETECTED notification handler, sent by DSP FW when a keyword is detected by WoV pipeline. Handler parses PCM list to find WoV capture PCM pcm_id 11, calls snd_pcm_period_elapsed() to unblock waiting capture stream. Change-Id: I16423e24fa2e274cefbc6def6063176fe60c10a8 Signed-off-by: Naveen Manohar <naveen.m@intel.com>
When DSP reports keyword detection, notify topology-defined WoV kcontrols so that user space can poll for value changes. Checked for 2 kcontrols in loaded topology: - 'wov_trigger_id': RO enum reporting winner slot(0/1/2) - 'wov_event': control that user space polls via POLLPRI Signed-off-by: Naveen Manohar <naveen.m@intel.com>
naveen-manohar
force-pushed
the
ww356_wov-kcontrol
branch
from
August 31, 2026 04:10
54c39e0 to
412f4a9
Compare
Member
|
@jsarha pls review - it may be that your IPC4 wov wakeup PR overlaps here. |
jsarha
requested changes
Aug 31, 2026
jsarha
left a comment
Collaborator
There was a problem hiding this comment.
I think it would be best to use snd_sof_pcm_period_elapsed(), but other than that I do not see anything alarming here. Of course the final judge is, does it work?
| return; | ||
| } | ||
|
|
||
| snd_pcm_period_elapsed(substream); |
Collaborator
There was a problem hiding this comment.
I think you should probably use snd_sof_pcm_period_elapsed() here. See https://github.com/naveen-manohar/linux/blob/412f4a9a9dbe2eda5b9467114c0043c6a0615ee3/sound/soc/sof/pcm.c#L43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add SOF_IPC4_NOTIFY_PHRASE_DETECTED notification handler for WoV.
When DSP FW reports keyword detection, unblock the WoV capture stream
via snd_pcm_period_elapsed()
Notify topology-defined kcontrols ('wov_trigger_id', 'wov_event') for userspace polling.