]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: qcom: lpass-cpu: Fix clock disable failure
authorV Sujith Kumar Reddy <vsujithk@codeaurora.org>
Mon, 19 Oct 2020 09:06:03 +0000 (14:36 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 29 Oct 2020 12:24:14 +0000 (12:24 +0000)
commitd08a1890cebe8e0734dbe6fee43e83a15272e481
treecc728d97007141ec15c647bcc12e6b77c58afde7
parent185428836d41afcd93ad4cd091d64f8b94da2081
ASoC: qcom: lpass-cpu: Fix clock disable failure

Disable MI2S bit clock from PAUSE/STOP/SUSPEND usecase instead of
shutdown time. Acheive this by invoking clk_disable API from
cpu daiops trigger instead of cpu daiops shutdown.
Change non-atomic API "clk_prepare_enable" to atomic API
"clk_enable" in trigger, as trigger is being called from atomic context.

Fixes: c69ff12a5a66 ("ASoC: qcom: lpass-cpu: Enable MI2S BCLK and LRCLK together")
Signed-off-by: V Sujith Kumar Reddy <vsujithk@codeaurora.org>
Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
Link: https://lore.kernel.org/r/1603098363-9251-1-git-send-email-srivasam@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/lpass-cpu.c