Browse Source

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

qctecmdr 5 years ago
parent
commit
8d117c3794
1 changed files with 5 additions and 0 deletions
  1. 5 0
      asoc/codecs/bolero/va-macro.c

+ 5 - 0
asoc/codecs/bolero/va-macro.c

@@ -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;
 }