Skip to content

Commit 7e7b937

Browse files
committed
audio: detect_test: add multi-slot frequency detection and IPC4 notification
- Add multi-slot zero-crossing frequency estimation for Slot 0 (Male 120Hz), Slot 1 (Female 220Hz), and Slot 2 (Child 350Hz). - Require 30ms sustained frequency match (consec_match_count >= 3) and energy > 500 to eliminate transient background room noise triggers. - Map IPC4 pipeline IDs 101/102/103 to slot IDs 0/1/2. - Populate IPC4 phrase detection notifications with WOV detector module ID, instance ID, and slot ID. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent a2c2be4 commit 7e7b937

3 files changed

Lines changed: 249 additions & 41 deletions

File tree

src/include/ipc4/detect_test.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ enum ipc4_detect_test_module_config_params {
3030
* Ipc mailbox must contain properly built sof_detect_test_config
3131
* struct.
3232
*/
33-
IPC4_DETECT_TEST_GET_CONFIG = 3
33+
IPC4_DETECT_TEST_GET_CONFIG = 3,
34+
35+
/*
36+
* Use LARGE_CONFIG_SET to assign this detector's slot index in the
37+
* WOV arbiter (0, 1, or 2). Payload is a single uint8_t.
38+
* Set to WOV_SLOT_INVALID (0xff) to disable arbiter integration.
39+
*/
40+
IPC4_DETECT_TEST_SET_WOV_SLOT = 4
3441
};
3542
#endif

0 commit comments

Comments
 (0)