Skip to content

Handle WoV phrase detection notification and kcontrols - #5903

Open
naveen-manohar wants to merge 2 commits into
thesofproject:topic/sof-devfrom
naveen-manohar:ww356_wov-kcontrol
Open

Handle WoV phrase detection notification and kcontrols#5903
naveen-manohar wants to merge 2 commits into
thesofproject:topic/sof-devfrom
naveen-manohar:ww356_wov-kcontrol

Conversation

@naveen-manohar

Copy link
Copy Markdown

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.

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: I45190d31847be31a22b490c2eaaf39d144164950
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

Change-Id: I8c8862f636904f5af519e86d5f9b09374c7316d6
Signed-off-by: Naveen Manohar <naveen.m@intel.com>
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.

1 participant