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

Commit b3d5d486 authored by Shashi Kant Maurya's avatar Shashi Kant Maurya Committed by Soumya Managoli
Browse files

ASoC: bolero: Return the correct clk_div value



clk_div starts with index 0.
Incorrect check for return value of
clk_div_get is causing CLK_DIV2 setting
being missed. Change is to correct the same.

Change-Id: If0475cee5b1d5a9e0184e90f6046c389cd9122a9
Signed-off-by: default avatarShashi Kant Maurya <smaury@codeaurora.org>
parent 659f37f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -509,7 +509,7 @@ static u8 bolero_dmic_clk_div_get(struct snd_soc_component *component,

	if (priv->macro_params[macro].clk_div_get) {
		ret = priv->macro_params[macro].clk_div_get(component);
		if (ret > 0)
		if (ret >= 0)
			return ret;
	}