dw-dma: fix buffer and copy alignments

DW-DMA has no specific alignments regarding buffer and copy sizes.
However setting it to 32 bytes breaks stream formats with period
sizes lower than 32 bytes, as linked list is being configured
incorrectly.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2019-10-18 16:37:25 +02:00 committed by Tomasz Lauda
parent ed64f40935
commit 2f818ec801
1 changed files with 2 additions and 2 deletions

View File

@ -137,8 +137,8 @@
#define trace_dwdma_error(__e, ...) \
trace_error(TRACE_CLASS_DMA, __e, ##__VA_ARGS__)
#define DW_DMA_BUFFER_ALIGNMENT 0x20
#define DW_DMA_COPY_ALIGNMENT 0x20
#define DW_DMA_BUFFER_ALIGNMENT 0x4
#define DW_DMA_COPY_ALIGNMENT 0x4
/* TODO: add FIFO sizes */
struct dw_chan_data {