Commit 29dc68c
committed
ASoC: SOF: Intel: hda-pcm: Place the constraint on period time instead of buffer time
Instead of constraining the buffer time to be double of the host buffer
size it is better to set it for the priod time.
This will implicitly constrain the buffer time to at least 2x of the host
buffer size (num_periods is at least 2) and prohibits applications to
set smaller period size than what will be covered by the initial DMA burst.
Fixes: 02ea2a0 ("ASoC: SOF: Intel: hda-pcm: Use dsp_max_burst_size_in_ms to place constraint")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>1 parent ed718b4 commit 29dc68c
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
296 | 297 | | |
297 | 298 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
304 | | - | |
305 | | - | |
| 302 | + | |
| 303 | + | |
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
| |||
0 commit comments