]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card-utils: Don't reset clock of active DAI
authorSameer Pujar <spujar@nvidia.com>
Thu, 10 Mar 2022 11:16:39 +0000 (16:46 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 11 Mar 2022 13:42:29 +0000 (13:42 +0000)
commitb5b83ca725fa65678bbebf0d6d1cf4d3a48b06f9
treef3926831b85a15d156bce2d34553e289254eca35
parent143e751a8dca22cd6de1ac36f325c81678c4b781
ASoC: simple-card-utils: Don't reset clock of active DAI

Playback or capture errors are seen when clock is reset during an active
stage of DAI. Presently this scenario happens when DAI has both playback
and capture sessions running and one of these finishes first which will
be followed by clock rate reset. The remaining active session will be
affected in such case.

Address this problem by allowing clock rate reset to happen only when
the DAI is no more active.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/1646910999-2501-1-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card-utils.c