mirror of https://github.com/thesofproject/sof.git
dw-dma: use a generic allocation
When allocating an LLI array no need to use rzalloc() since the array is 0-initialised directly after allocation anyway. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
75ed28b682
commit
aa0aee9b54
|
@ -549,7 +549,7 @@ static int dw_dma_set_config(struct dma_chan_data *channel,
|
|||
if (dw_chan->lli)
|
||||
rfree(dw_chan->lli);
|
||||
|
||||
dw_chan->lli = rzalloc(SOF_MEM_ZONE_SYS_RUNTIME, 0,
|
||||
dw_chan->lli = rmalloc(SOF_MEM_ZONE_SYS_RUNTIME, 0,
|
||||
SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_DMA,
|
||||
sizeof(struct dw_lli) *
|
||||
channel->desc_count);
|
||||
|
|
Loading…
Reference in New Issue