]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: fsl_spdif: Disable TX clock when stop
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 10 Mar 2022 02:37:43 +0000 (10:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:52 +0000 (13:57 +0200)
commit19d0b2a63e9f1206aefb8dc2e0facc5cd4b9b9d0
treec8104de0a93ecbae45180a34a00901e952269449
parent8d880226c86f37624e2a5f3c6d92ac0ec3375f96
ASoC: fsl_spdif: Disable TX clock when stop

[ Upstream commit 6ddf611219ba8f7c8fa0d26b39710a641e7d37a5 ]

The TX clock source may be changed in next case, need to
disable it when stop, otherwise the TX may not work after
changing the clock source, error log is:

aplay: pcm_write:2058: write error: Input/output error

Fixes: a2388a498ad2 ("ASoC: fsl: Add S/PDIF CPU DAI driver")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/1646879863-27711-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/fsl_spdif.c