bolero: va-macro: add dmic va rate to 1.2M for bolero 2.1

In bolero 2.1, VA macro has low power decimations
and support 600k only at 8k/16k. For non-LPI sessions
running at 48k will have mute data if use 600k.
Update driver to use 1.2M for non-LPI sessions.

Change-Id: If495ba8fb780bd22f188835ef87a0ec947df363c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam 2020-01-30 16:11:15 +05:30 • committed by Gerrit - the friendly Code Review server
commit df58b0fa9d

View file

@ -200,6 +200,11 @@ static int va_macro_clk_div_get(struct snd_soc_component *component)
if (!va_macro_get_data(component, &va_dev, &va_priv, __func__))
return -EINVAL;
if ((va_priv->version == BOLERO_VERSION_2_1)
&& !va_priv->lpi_enable
&& (va_priv->dmic_clk_div == VA_MACRO_CLK_DIV_16))
return VA_MACRO_CLK_DIV_8;
return va_priv->dmic_clk_div;
}