ASoC: codecs: tx-macro: Enable tx top soundwire mic clock
authorSrinivasa Rao Mandadapu <srivasam@codeaurora.org>
Tue, 26 Oct 2021 07:43:06 +0000 (13:13 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 26 Oct 2021 11:35:19 +0000 (12:35 +0100)
Enable tx path soundwire mic0 and mic1 clock.

Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
Co-developed-by: Venkata Prasad Potturu <potturu@codeaurora.org>
Signed-off-by: Venkata Prasad Potturu <potturu@codeaurora.org>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/1635234188-7746-4-git-send-email-srivasam@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-tx-macro.c

index 5dcae73b2ab8292fe6a55948c46bb0e2cefc0c1e..d472af1e9ae496bbcfa653e513bb91815bc91cec 100644 (file)
@@ -1674,6 +1674,9 @@ static int tx_macro_component_probe(struct snd_soc_component *comp)
 
        snd_soc_component_update_bits(comp, CDC_TX0_TX_PATH_SEC7, 0x3F,
                                      0x0A);
+       /* Enable swr mic0 and mic1 clock */
+       snd_soc_component_update_bits(comp, CDC_TX_TOP_CSR_SWR_AMIC0_CTL, 0xFF, 0x00);
+       snd_soc_component_update_bits(comp, CDC_TX_TOP_CSR_SWR_AMIC1_CTL, 0xFF, 0x00);
 
        return 0;
 }