ASoC: imx-rpmsg: Force codec power on in low power audio mode
authorChancel Liu <chancel.liu@nxp.com>
Tue, 21 Nov 2023 05:25:12 +0000 (13:25 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 21 Nov 2023 14:43:00 +0000 (14:43 +0000)
commit5d9f746ca64c3ebfba3b650dbc4b0de705c83f3b
tree387350a2e6b9d2403d1f747c9199950156d94028
parent27c69d7da1084af0b8b3a20ef9ff01e9eda5270c
ASoC: imx-rpmsg: Force codec power on in low power audio mode

Low power audio mode requires binding codec still power on while Acore
enters into suspend so Mcore can continue playback music.

ASoC machine driver acquires DAPM endpoints through reading
"ignore-suspend-widgets" property from DT and then forces the path
between these endpoints ignoring suspend.

If the rpmsg sound card is in low power audio mode, the suspend/resume
callback of binding codec is overridden to disable the suspend/resume.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://lore.kernel.org/r/20231121052512.20235-2-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-rpmsg.c