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:
parent
139941fc1e
commit
e373447761
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue