Commit e687bdd
audio: chain_dma: fix notification pool overflow
Task for DMA chain uses the same function wrapper for checking DMA
statuses and sending notifications for both Host and Link DMAs. Moreover,
only one xrun_notification_sent flag is defined for that purpose.
For Host DMA notifications are not needed since the task immediately
returns an error on any Host DMA failure. However, the side effect of
using the common function wrapper is that we might clear the flag while
checking the Host DMA status and thus cause a Link DMA notification flood.
This change fixes this issue by removing the common function wrapper and
limiting notification API usage to Link DMA.
Signed-off-by: Wojciech Jablonski <wojciech.jablonski@intel.com>1 parent fd410ef commit e687bdd
1 file changed
Lines changed: 16 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 145 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
159 | 153 | | |
| 154 | + | |
160 | 155 | | |
161 | 156 | | |
162 | 157 | | |
| |||
170 | 165 | | |
171 | 166 | | |
172 | 167 | | |
173 | | - | |
| 168 | + | |
174 | 169 | | |
175 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
176 | 174 | | |
177 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
0 commit comments