diff options
author | Kai Vehmanen <kai.vehmanen@linux.intel.com> | 2025-10-02 10:47:18 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-10-03 12:39:48 +0100 |
commit | a4b8152c09a832b089864e5e209a479bb0fb5cc9 (patch) | |
tree | 55e5a28740b09e24331f7cf4cd2c2e02c7a4d9e9 /rust/kernel/irq/request.rs | |
parent | 18dbff48a1ea58100f9fa6886cfef286a96a5fb0 (diff) |
ASoC: SOF: ipc4-pcm: do not report invalid delay values
Add a sanity check for the calculated delay value before reporting it to
the application. If the value is clearly invalid, emit a rate limited
warning to kernel log and return a zero delay. This can occur e.g if the
host or link DMA hits a buffer over/underrun condition.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20251002074719.2084-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/kernel/irq/request.rs')
0 files changed, 0 insertions, 0 deletions