summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhani Kumar Uppalapati <phaniu@codeaurora.org>2016-10-06 17:32:22 -0700
committerPhani Kumar Uppalapati <phaniu@codeaurora.org>2016-10-12 12:08:33 -0700
commitef04ecd5920ad79dfacc1d3228e5ea76749aebf5 (patch)
tree7ce82b3bc02dab49113becd40a006b3ca2adfa86
parent116d2e852d36f8481d4ec177bd1c70c03d24d827 (diff)
ASoC: wcd934x: update keeper enable for soundwire functionality
Keeper enable bit is used to reduce the current leakage from soundwire master. Enable this bit before starting audio use-case through soundwire and disable once use-case is completed. Change-Id: If2dc9e7fd9a2710391d02c0e52a291b3cffc63b6 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
-rw-r--r--sound/soc/codecs/wcd934x/wcd934x.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/wcd934x/wcd934x.c b/sound/soc/codecs/wcd934x/wcd934x.c
index b4a73d17c322..3efe587ccc5e 100644
--- a/sound/soc/codecs/wcd934x/wcd934x.c
+++ b/sound/soc/codecs/wcd934x/wcd934x.c
@@ -8681,6 +8681,9 @@ static int tavil_swrm_clock(void *handle, bool enable)
if (enable) {
tavil->swr.clk_users++;
if (tavil->swr.clk_users == 1) {
+ regmap_update_bits(tavil->wcd9xxx->regmap,
+ WCD934X_TEST_DEBUG_NPL_DLY_TEST_1,
+ 0x10, 0x00);
__tavil_cdc_mclk_enable(tavil, true);
regmap_update_bits(tavil->wcd9xxx->regmap,
WCD934X_CDC_CLK_RST_CTRL_SWR_CONTROL,
@@ -8693,6 +8696,9 @@ static int tavil_swrm_clock(void *handle, bool enable)
WCD934X_CDC_CLK_RST_CTRL_SWR_CONTROL,
0x01, 0x00);
__tavil_cdc_mclk_enable(tavil, false);
+ regmap_update_bits(tavil->wcd9xxx->regmap,
+ WCD934X_TEST_DEBUG_NPL_DLY_TEST_1,
+ 0x10, 0x10);
}
}
dev_dbg(tavil->dev, "%s: swrm clock users %d\n",