Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copier: Use correct multiplier for latency to bytes calculation
The latency value is in number of periods (1ms) while the buffer allocated for the DAI copier is at least 2 periods. This can shoot up the calculated stream_start_offset resulting invalid delay reporting. Use the period size of the DAI copier to correct this error. The kernel reported delay currently (on normal non DeepBuffer PCM): at start: ~302 frames after 20x pause/resume: ~6530 frames With this patch: at start: ~254 frames after 20x pause/resume: ~3600 frames The drift rate is about the same with DeepBuffer. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
- Loading branch information