thesofproject / linux

Linux kernel source tree
Other
91 stars 133 forks source link

ASoC: SOF: ipc4/Intel: Place constraint on the PERIOD_TIME based on the DSP host buffer size (which is provided in ms) fro playback #4858

Closed ujfalusi closed 8 months ago

ujfalusi commented 8 months ago

Hi,

when a playback starts, the first DMA burst will fill the DSP host buffer. If user space asks for shorter period size then this burst and starts a playback with less than the burst size of the DSP then it will immediately xrun (DMA copies uninitialized data to DSP).

Place a constraint on the minimum period time (which will be forcing safe period size) to avoid such issue.

ujfalusi commented 8 months ago

Changes since v1:

ujfalusi commented 8 months ago

Merged to #4851 to have all delay related fixes in one place (for make it easier to pick them for upstream)