mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 23:23:03 +00:00
03667e3d4f
The period size represents the size of the DMA descriptor. To ensure all DMA descriptors start from a well-aligned address, the period size must be divided by (sample size * maxburst), not just by maxburst. This adjustment allows for computing a higher maxburst value, thereby increasing the performance of the DMA transfer. Previously, snd_pcm_lib_period_bytes() returned 0 because the runtime HW parameters are computed after the hw_params() callbacks are used. To address this, we now use params_*() functions to compute the period size accurately. This change optimizes the DMA transfer performance by ensuring proper alignment and efficient use of maxburst values. [andrei.simion@microchip.com: Reword commit message and commit title. Add macros with values for maximum DMA chunk size allowed. Add DMA_BURST_ALIGNED preprocessor function to check the alignment of the DMA burst] Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Signed-off-by: Andrei Simion <andrei.simion@microchip.com> Link: https://patch.msgid.link/20240905095633.113784-1-andrei.simion@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
atmel_ssc_dai.c | ||
atmel_ssc_dai.h | ||
atmel_wm8904.c | ||
atmel-classd.c | ||
atmel-classd.h | ||
atmel-i2s.c | ||
atmel-pcm-dma.c | ||
atmel-pcm-pdc.c | ||
atmel-pcm.h | ||
atmel-pdmic.c | ||
atmel-pdmic.h | ||
Kconfig | ||
Makefile | ||
mchp-i2s-mcc.c | ||
mchp-pdmc.c | ||
mchp-spdifrx.c | ||
mchp-spdiftx.c | ||
mikroe-proto.c | ||
sam9g20_wm8731.c | ||
sam9x5_wm8731.c | ||
tse850-pcm5142.c |