Commit 19e2b30
committed
audio: pipeline: IPC3 xrun IPC messages should not be sent in IPC4 builds
The IPC interface to notify host of over/underruns is different between
IPC3 and IPC4. The pipeline_xrun() implementation however was called in
common code and could lead to corruption of the host-DSP mailboxes.
In practise errors were not hit in current SOF builds as none of the DMA
drivers that are used with targets using IPC4, return runtime errors in
their dma_reload() implementations, so dai_report_xrun() was never called.
Zephyr DMA does allow errors to be returned for reload, so correct
the implementation to never send IPC3 notifications in IPC4 builds.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent b1a7c44 commit 19e2b30
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
165 | 177 | | |
166 | 178 | | |
167 | 179 | | |
| |||
172 | 184 | | |
173 | 185 | | |
174 | 186 | | |
| 187 | + | |
175 | 188 | | |
0 commit comments