MLK-17309-3: ASoC: fsl_hifi: get free memory from hifi framework
authorWeiguang Kong <weiguang.kong@nxp.com>
Tue, 26 Dec 2017 10:37:14 +0000 (18:37 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:23 +0000 (14:52 -0500)
commit7c1b2ff05715b96545a937afed8310650f31f542
tree4e260468fe00b93e99fe9bd24af6d369ca47345e
parentcafba6c6cb052056c2f78473652da1c414966df1
MLK-17309-3: ASoC: fsl_hifi: get free memory from hifi framework

In order to manage the memory simply, all the memory which is
shared between hifi driver and hifi framework are managed by
hifi framework.

So when the driver wants to get free memory, it can send
"ICM_PI_LIB_MEM_ALLOC" command to hifi framework, then hifi
framework will return the address of available memory to
driver. When the driver wants to release the memory, it can
send "ICM_PI_LIB_MEM_FREE" command to hifi framework, the hifi
framework will mark this memory available.

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