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: Viraja Kommaraju <virajak@codeaurora.org>
This commit is contained in:
Viraja Kommaraju 2016-05-24 14:51:00 +05:30 committed by Kyle Yan
parent 139941fc1e
commit e373447761

View file

@ -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",