MLK-16099-2: ASoc: fsl: length is not same for alloc and free memory
authorWeiguang Kong <weiguang.kong@nxp.com>
Mon, 31 Jul 2017 01:43:29 +0000 (09:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:12 +0000 (15:36 -0500)
commitec6405ed15ddccb19edd32cad63f4cb5f3a1d8fe
tree103cd2d7427e7193f6ba91c296986e7211089f5b
parent59465bdf8794461455f27f385a706e85cf68d353
MLK-16099-2: ASoc: fsl: length is not same for alloc and free memory

In fsl_hifi4_probe(), the length for dma_alloc_coherent() is
MSG_BUF_SIZE + INPUT_BUF_SIZE + OUTPUT_BUF_SIZE +
FIRMWARE_DATA_BUF_SIZE + SCRATCH_DATA_BUF_SIZE;

However, in fsl_hifi4_remove(), the length for dma_free_coherent()
is MSG_BUF_SIZE + INPUT_BUF_SIZE + OUTPUT_BUF_SIZE +
FIRMWARE_DATA_BUF_SIZE;

By keeping the same length between dma_alloc_coherent() and
dma_free_coherent() to fix this issue.

Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
sound/soc/fsl/fsl_hifi4.c