Commit d87f00d
audio: fix AMS callback signature in detect_test and wov_arbiter
The ams_msg_callback_fn type is:
void (*)(const struct ams_message_payload *const, void *)
The on_wov_ctrl() and arb_on_detect() callbacks were written with the
old four-argument form (msg_type_id, message, message_size, ctx) which
no longer matches the typedef, causing build failures on mtl/tgl/lnl.
Also fix the payload field access inside those callbacks:
p->payload_size → p->message_length
p->payload → p->message
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0a30470 commit d87f00d
2 files changed
Lines changed: 6 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 95 | + | |
99 | 96 | | |
100 | 97 | | |
101 | 98 | | |
102 | | - | |
103 | 99 | | |
104 | | - | |
105 | | - | |
| 100 | + | |
106 | 101 | | |
107 | 102 | | |
108 | 103 | | |
109 | | - | |
| 104 | + | |
110 | 105 | | |
111 | 106 | | |
112 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 210 | + | |
214 | 211 | | |
215 | 212 | | |
216 | 213 | | |
217 | | - | |
218 | 214 | | |
219 | | - | |
220 | | - | |
| 215 | + | |
221 | 216 | | |
222 | 217 | | |
223 | 218 | | |
224 | | - | |
| 219 | + | |
225 | 220 | | |
226 | 221 | | |
227 | 222 | | |
| |||
0 commit comments