]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: fsl_xcvr: Improve suspend/resume flow in fsl_xcvr_trigger()
authorChancel Liu <chancel.liu@nxp.com>
Fri, 28 Jun 2024 09:43:54 +0000 (18:43 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 3 Jul 2024 14:17:51 +0000 (15:17 +0100)
commitc288f0a1c08efa65f9e3bb7954eb3cefb966c97d
treed241352a5b7d65decc95bbde3a1b91b84483c861
parent31a45f9190b5b4f5cd8cdec8471babd5215eee04
ASoC: fsl_xcvr: Improve suspend/resume flow in fsl_xcvr_trigger()

In the current flow all interrupts are disabled in runtime suspend
phase. However interrupts enablement only exists in fsl_xcvr_prepare().
After resume fsl_xcvr_prepare() may not be called so it will cause all
interrupts still disabled even if resume from suspend. Interrupts
should be explictily enabled after resume.

Also, DPATH reset setting only exists in fsl_xcvr_prepare(). After
resume from suspend DPATH should be reset otherwise there'll be channel
swap issue.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://patch.msgid.link/20240628094354.780720-1-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_xcvr.c