MLK-17309-4: ASoC: fsl_hifi: fix crash issue when destination not align
authorWeiguang Kong <weiguang.kong@nxp.com>
Tue, 26 Dec 2017 10:50:31 +0000 (18:50 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:24 +0000 (14:52 -0500)
commit441f8693a8e75b4f1515406997381357f3bb2656
treeef9fc2dba04207d0f5b87b6816acfae2f292a73d
parent7c1b2ff05715b96545a937afed8310650f31f542
MLK-17309-4: ASoC: fsl_hifi: fix crash issue when destination not align

When loading the codec libs in driver, if the destination is
not 4-bytes alignment when doing memset_hifi(), the driver
will print a warning message and the driver may crash in some
cases.

So by changing the memset() function and aligning the virtual address
based on the physical address to fix this issue.

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