From c51afbc5222d2857c0a85f9673bd742fcd7f4421 Mon Sep 17 00:00:00 2001 From: Sudheer Papothi Date: Thu, 1 Aug 2019 10:25:32 +0530 Subject: [PATCH] ASoC: Kona: Disable wakeup capability for DMIC45 clock gpio DMIC45 clock gpio generates dmic clock on the gpio line when the audio capture starts on DMIC4 or DMIC5. But the same gpio is also an wakeup capable interrupt source. So, during audio capture usecase, GIC receives interrupts continuously as clock gpio toggles. Disable wakeup capability for DMIC45 clock gpio to avoid interrupt generation to GIC during the audio capture usecase. Change-Id: I7793455fd1034a5d391c6a163ca776c6ed0c9b89 Signed-off-by: Sudheer Papothi --- asoc/kona.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/asoc/kona.c b/asoc/kona.c index bd9dc28ab6..f25787db9a 100644 --- a/asoc/kona.c +++ b/asoc/kona.c @@ -7733,6 +7733,8 @@ static int msm_asoc_machine_probe(struct platform_device *pdev) pdata->dmic45_gpio_p = of_parse_phandle(pdev->dev.of_node, "qcom,cdc-dmic45-gpios", 0); + if (pdata->dmic45_gpio_p) + msm_cdc_pinctrl_set_wakeup_capable(pdata->dmic45_gpio_p, false); pdata->mi2s_gpio_p[PRIM_MI2S] = of_parse_phandle(pdev->dev.of_node, "qcom,pri-mi2s-gpios", 0);