Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df58b0fa authored by Laxminath Kasam's avatar Laxminath Kasam Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent b8e5bd2f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -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__))
	if (!va_macro_get_data(component, &va_dev, &va_priv, __func__))
		return -EINVAL;
		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;
	return va_priv->dmic_clk_div;
}
}