aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/qcom/lpass-cpu.c
diff options
context:
space:
mode:
authorV Sujith Kumar Reddy <vsujithk@codeaurora.org>2020-11-14 00:08:22 +0530
committerMark Brown <broonie@kernel.org>2020-11-16 20:06:56 +0000
commit60a973862f3c41bc8d4b7a74bd45eda220e248e8 (patch)
tree3228c8ac6ae86e94e5e82f057256fbd38729bf24 /sound/soc/qcom/lpass-cpu.c
parentASoC: qcom: lpass-sc7180: Add 32 bit format support for capture (diff)
downloadwireguard-linux-60a973862f3c41bc8d4b7a74bd45eda220e248e8.tar.xz
wireguard-linux-60a973862f3c41bc8d4b7a74bd45eda220e248e8.zip
ASoC: qcom: sc7180: Register shutdown handler for lpass platform
Register shutdown handler to stop sc7180 lpass platform driver and to disable audio clocks. 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/1605292702-25046-1-git-send-email-srivasam@codeaurora.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass-cpu.c')
-rw-r--r--sound/soc/qcom/lpass-cpu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
index 0c64deaf9374..0d9ff23d7463 100644
--- a/sound/soc/qcom/lpass-cpu.c
+++ b/sound/soc/qcom/lpass-cpu.c
@@ -908,5 +908,15 @@ int asoc_qcom_lpass_cpu_platform_remove(struct platform_device *pdev)
}
EXPORT_SYMBOL_GPL(asoc_qcom_lpass_cpu_platform_remove);
+void asoc_qcom_lpass_cpu_platform_shutdown(struct platform_device *pdev)
+{
+ struct lpass_data *drvdata = platform_get_drvdata(pdev);
+
+ if (drvdata->variant->exit)
+ drvdata->variant->exit(pdev);
+
+}
+EXPORT_SYMBOL_GPL(asoc_qcom_lpass_cpu_platform_shutdown);
+
MODULE_DESCRIPTION("QTi LPASS CPU Driver");
MODULE_LICENSE("GPL v2");