Skip to content

Commit ed13b78

Browse files
committed
audio: ams: add WOV detect and control message definitions
Add AMS message UUIDs, payload structures (wov_detect_payload, wov_ctrl_payload), and command codes for inter-component communication between WOV detectors and the multi-slot WOV arbiter. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent 0da8107 commit ed13b78

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

src/include/sof/lib/ams_msg.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,40 @@ typedef uint8_t ams_uuid_t[16];
1515
#define AMS_KPD_MSG_UUID { 0x80, 0xa1, 0x11, 0x22, 0xb3, 0x6c, 0x11, 0xed, \
1616
0xaf, 0xa1, 0x02, 0x42, 0xac, 0x12, 0x00, 0x02 }
1717

18+
/*
19+
* WOV arbiter AMS message UUIDs.
20+
*
21+
* AMS_WOV_DETECT_MSG_UUID: c3d7e841-12f0-4e8a-b901-5a6b7c8d9e0f
22+
* Sent by a WOV detector (detect_test) to the WOV arbiter when a keyword
23+
* is detected. Payload: struct wov_detect_payload.
24+
*
25+
* AMS_WOV_CTRL_MSG_UUID: f1e2d3c4-b5a6-4789-8ace-1234567890ab
26+
* Sent by the WOV arbiter to all WOV detectors to pause or resume
27+
* detection. Payload: struct wov_ctrl_payload.
28+
*/
29+
#define AMS_WOV_DETECT_MSG_UUID { 0xc3, 0xd7, 0xe8, 0x41, 0x12, 0xf0, 0x4e, \
30+
0x8a, 0xb9, 0x01, 0x5a, 0x6b, 0x7c, 0x8d, \
31+
0x9e, 0x0f }
32+
33+
#define AMS_WOV_CTRL_MSG_UUID { 0xf1, 0xe2, 0xd3, 0xc4, 0xb5, 0xa6, 0x47, \
34+
0x89, 0x8a, 0xce, 0x12, 0x34, 0x56, 0x78, \
35+
0x90, 0xab }
36+
37+
#define WOV_SLOT_INVALID 0xff
38+
39+
/* Payload for AMS_WOV_DETECT_MSG_UUID (detector → arbiter) */
40+
struct wov_detect_payload {
41+
uint8_t slot_id; /* detector slot: 0, 1, or 2 */
42+
};
43+
44+
/* Command codes for AMS_WOV_CTRL_MSG_UUID (arbiter → detectors) */
45+
#define WOV_CTRL_CMD_PAUSE 0
46+
#define WOV_CTRL_CMD_RESUME 1
47+
48+
/* Payload for AMS_WOV_CTRL_MSG_UUID (arbiter → detectors) */
49+
struct wov_ctrl_payload {
50+
uint8_t cmd; /* WOV_CTRL_CMD_PAUSE or WOV_CTRL_CMD_RESUME */
51+
uint8_t active_slot; /* slot being activated (valid for PAUSE) */
52+
};
53+
1854
#endif /* __SOF_LIB_AMS_MSG_H__ */

0 commit comments

Comments
 (0)