Commit b085c3b
committed
ASoC: SOF: ipc4-pcm: do not report invalid delay values
If the stream hits an xrun condition, the delay calculation results
in invalid, very large values. The application has no way to interpret
these values as it doesn't know the internal boundary limits used
in delay calculation. Add a sanity to check the delay value before
it is reported back. If it's clearly invalid, return a zero delay and
emit a rate limited warning to kernel log.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 64358e9 commit b085c3b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1261 | 1261 | | |
1262 | 1262 | | |
1263 | 1263 | | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1264 | 1270 | | |
1265 | 1271 | | |
1266 | 1272 | | |
| |||
0 commit comments