Commit 20c85b6
committed
audio: drc: register IPC-time blob validator
Hook a drc blob validator into the model handler so a corrupted
run-time configuration update is rejected before it can replace the
working blob. Playback or capture then continues with the previously
set parameters instead of being interrupted by a bad IPC.
The DRC configuration is a fixed-size struct sof_drc_config, so the
validator requires the IPC payload size to match exactly and the
self-declared config->size to agree with it. The same size check is
also reused at prepare time when the initial blob is fetched.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent e87b9af commit 20c85b6
1 file changed
Lines changed: 38 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
142 | 170 | | |
143 | 171 | | |
144 | 172 | | |
| |||
353 | 381 | | |
354 | 382 | | |
355 | 383 | | |
356 | | - | |
357 | | - | |
| 384 | + | |
| 385 | + | |
358 | 386 | | |
359 | | - | |
| 387 | + | |
360 | 388 | | |
361 | 389 | | |
362 | 390 | | |
| |||
382 | 410 | | |
383 | 411 | | |
384 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
385 | 418 | | |
386 | 419 | | |
387 | 420 | | |
| |||
390 | 423 | | |
391 | 424 | | |
392 | 425 | | |
| 426 | + | |
| 427 | + | |
393 | 428 | | |
394 | 429 | | |
395 | 430 | | |
| |||
0 commit comments