Commit 7730ace
committed
audio: host-zephyr: add HOST_DMA_IPC_POSITION_UPDATES Kconfig
Add a built option HOST_DMA_IPC_POSITION_UPDATES to control whether
functionality to send IPC stream position updates is enabled or
not. Most platforms provide more efficient means for host to
monitor DMA state, so this code is in most cases unncessary.
The current IPC sending code (from audio context) also assume
kernel context, so making this functionality user-space compatible
will require extra work.
Enable DMA IPC position updates by default for IPC3 as the feature can
be controlled by host with sof_ipc_stream_params.no_stream_position IPC
interface. Disable the feature by default for IPC4, as there is no host
IPC interface to control this and copier_update_params() unconditionally
disables IPC updates for IPC4 now, so this code is never used.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent e3246b8 commit 7730ace
4 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
| |||
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
230 | 231 | | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| 277 | + | |
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| |||
291 | 294 | | |
292 | 295 | | |
293 | 296 | | |
| 297 | + | |
294 | 298 | | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
298 | 302 | | |
| 303 | + | |
299 | 304 | | |
300 | 305 | | |
| 306 | + | |
301 | 307 | | |
302 | 308 | | |
303 | 309 | | |
| |||
553 | 559 | | |
554 | 560 | | |
555 | 561 | | |
| 562 | + | |
556 | 563 | | |
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
560 | 567 | | |
561 | 568 | | |
| 569 | + | |
562 | 570 | | |
563 | 571 | | |
564 | 572 | | |
| |||
614 | 622 | | |
615 | 623 | | |
616 | 624 | | |
| 625 | + | |
617 | 626 | | |
| 627 | + | |
618 | 628 | | |
619 | 629 | | |
620 | 630 | | |
| |||
952 | 962 | | |
953 | 963 | | |
954 | 964 | | |
| 965 | + | |
955 | 966 | | |
| 967 | + | |
956 | 968 | | |
957 | 969 | | |
958 | 970 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
249 | 250 | | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
| |||
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| 290 | + | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
| |||
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| 310 | + | |
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
| 316 | + | |
312 | 317 | | |
313 | 318 | | |
| 319 | + | |
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
| |||
721 | 727 | | |
722 | 728 | | |
723 | 729 | | |
| 730 | + | |
724 | 731 | | |
725 | 732 | | |
726 | 733 | | |
727 | 734 | | |
728 | 735 | | |
729 | 736 | | |
| 737 | + | |
730 | 738 | | |
731 | 739 | | |
732 | 740 | | |
| |||
808 | 816 | | |
809 | 817 | | |
810 | 818 | | |
| 819 | + | |
811 | 820 | | |
| 821 | + | |
812 | 822 | | |
813 | 823 | | |
814 | 824 | | |
| |||
1212 | 1222 | | |
1213 | 1223 | | |
1214 | 1224 | | |
| 1225 | + | |
1215 | 1226 | | |
| 1227 | + | |
1216 | 1228 | | |
1217 | 1229 | | |
1218 | 1230 | | |
| |||
0 commit comments