Commit b31388f
buffers: Fix set_underrun/set_overrun calls
After commit 5821682 ("heap: simplify heap API")
flags sent via IPC by the App processor are merged with caps.
There is an overlap after this merged so SOF_BUF_OVERRUN_PERMITTED
overlaps with SOF_MEM_FLAG_DMA for example.
Also, it looks like the old `flags` are mostly unused. For now
just remove the call audio_stream_set_underrun/audio_stream_set_overrun
inside buffer_alloc_struct and set it in the buffer_new() function where
we do have access to unmodified flags received from Linux.
In the future, we might completely remove the `old` flags.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>1 parent 42c0875 commit b31388f
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 220 | | |
224 | 221 | | |
225 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
0 commit comments