[PATCH 7/7] ASoC: codecs: lpass-va-macro: set mclk clock rate correctly
Srinivasa Rao Mandadapu
srivasam at codeaurora.org
Mon Sep 20 09:35:31 CEST 2021
Update mclk clock frequency from 9.6MHz to 19.2MHz.
Fixes: 908e6b1df26e (ASoC: codecs: lpass-va-macro: Add support to VA Macro)
Signed-off-by: Venkata Prasad Potturu <potturu at codeaurora.org>
Signed-off-by: Srinivasa Rao Mandadapu <srivasam at codeaurora.org>
---
sound/soc/codecs/lpass-va-macro.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/lpass-va-macro.c b/sound/soc/codecs/lpass-va-macro.c
index 0ea39ae..f2ab09b 100644
--- a/sound/soc/codecs/lpass-va-macro.c
+++ b/sound/soc/codecs/lpass-va-macro.c
@@ -1353,7 +1353,7 @@ static int va_macro_validate_dmic_sample_rate(u32 dmic_sample_rate,
struct va_macro *va)
{
u32 div_factor;
- u32 mclk_rate = VA_MACRO_MCLK_FREQ;
+ u32 mclk_rate = 2 * VA_MACRO_MCLK_FREQ;
if (!dmic_sample_rate || mclk_rate % dmic_sample_rate != 0)
goto undefined_rate;
@@ -1432,7 +1432,7 @@ static int va_macro_probe(struct platform_device *pdev)
}
/* mclk rate */
- clk_set_rate(va->mclk, VA_MACRO_MCLK_FREQ);
+ clk_set_rate(va->mclk, 2 * VA_MACRO_MCLK_FREQ);
clk_prepare_enable(va->mclk);
clk_prepare_enable(va->macro);
--
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc.,
is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.
More information about the Alsa-devel
mailing list