Commit bfb3fcb
committed
ASoC: SOF: add elapse work for spcm to fix trigger stop ipc timeout
We do elapse in interrupt context at the moment, this will lead to ipc
timeout at trigger stop with some possibility, where the pcm elapse will
call trigger stop and the stop ipc will timeout as the ipc interrupt is
disabled at this context.
Here we introduce a work to do pcm period elapse, and the stress test
shows that it fixes this kind of ipc timeout issue.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>1 parent 066e6f4 commit bfb3fcb
2 files changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
55 | 88 | | |
56 | 89 | | |
57 | 90 | | |
| |||
169 | 202 | | |
170 | 203 | | |
171 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
172 | 208 | | |
173 | 209 | | |
174 | 210 | | |
| |||
203 | 239 | | |
204 | 240 | | |
205 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
206 | 245 | | |
207 | 246 | | |
208 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| |||
495 | 496 | | |
496 | 497 | | |
497 | 498 | | |
| 499 | + | |
498 | 500 | | |
499 | 501 | | |
500 | 502 | | |
| |||
0 commit comments