mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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:
parent
b8e5bd2fc8
commit
df58b0fa9d
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue