OSDN Git Service

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)
commit5bbe2918acccfa60de1c1a2139de9cc5441d5796
treef3926831b85a15d156bce2d34553e289254eca35
parent886e09c77d2b48559d26928a5705a20ef3ac117d
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