Commit f66cb85
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 07e6734 commit f66cb85
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1268 | 1274 | | |
1269 | 1275 | | |
1270 | 1276 | | |
| |||
0 commit comments