LF-3218-1 ASoC: SOF: imx: Fix PM sleep
authorDaniel Baluta <daniel.baluta@nxp.com>
Fri, 29 Jan 2021 20:32:16 +0000 (22:32 +0200)
committerDaniel Baluta <daniel.baluta@nxp.com>
Sat, 30 Jan 2021 08:36:32 +0000 (10:36 +0200)
commitc1af3c3291ab07d8f0093cea0e7e6f2ba340ffec
tree8c268e5ac2ee2f646b95c96c461176f3daad299f
parentdf6f68c064a2304895031ba64588a96d3b7aec5b
LF-3218-1 ASoC: SOF: imx: Fix PM sleep

This is similar with the refactor for i.MX8MP added in commit
ba2d283f5d9 ("LF-3026-2 ASoC: SOF: imx8m: Remove internal
priv->suspended variable").

Because SOF state machine assumes that even if the DSP wasn't previously
active at a System resume, will re-load the firmware we need to make sure
that all needed resources are active.

Kernel core will take care of enabling the PD, we need to make sure that
we request the MU channels.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
sound/soc/sof/imx/imx8.c