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

Commit e3734477 authored by Viraja Kommaraju's avatar Viraja Kommaraju Committed by Kyle Yan
Browse files

ASoC: wcd9330: Fix MCLK enable/disable issue in wcd9330 driver



In wcd9330 driver, external clk enable callback function
is passed with argument as true always, instead of passing
the arguments from caller. This is leading to mclk users
count to increase without check.

CRs-fixed: 1013573
Change-Id: I113657c91dd5eb00791535dc78b7cdad1db5c4aa
Signed-off-by: default avatarViraja Kommaraju <virajak@codeaurora.org>
parent 139941fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2938,7 +2938,7 @@ int tomtom_codec_mclk_enable(struct snd_soc_codec *codec,
			__func__, enable, dapm);
		return __tomtom_mclk_enable(tomtom, enable);
	} else if (tomtom->codec_ext_clk_en_cb)
		return tomtom_codec_ext_clk_en(codec, true, false);
		return tomtom_codec_ext_clk_en(codec, enable, dapm);
	else {
		dev_err(codec->dev,
			"%s: Cannot turn on MCLK\n",