]> 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)
commitf3b74f97782fc6d841438a948b618b0e8d16afb7
treef3926831b85a15d156bce2d34553e289254eca35
parent167c64a50deaa63884815c5b9cf707669f42dbc7
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