Commits

Weiguang Kong committed b6cf72cb084
MLK-17309-2: ASoC: fsl_hifi: use new way to realize multi-codec In current hifi driver, some resources are shared when multi codec decodes together. When switching between multi-codec, the hifi driver and framework need to save and restore the shared resources,this will waster time and complicate the hifi driver. So by distributing private resources for each codec to avoid this problem. When the user space wants to enable a new codec, it can send "HIFI4_CLIENT_REGISTER" command to hifi driver to apply an available resource, the driver will send a client id to user space. When the user space wants to release the resource, it can send "HIFI4_CLIENT_UNREGISTER" command to hifi driver, then the driver will mark this resource available. Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>