ASoC: wcd9335: reset the clsh counters after SSR

After SSR when the clsh registers and state are reset,
all the counters linked to those states should be reset
as well, otherwise it can result in no sound issue.

CRs-fixed: 896210

Change-Id: I395801beee5e5c0d5063df14aa21ebc9c9a5a613
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
This commit is contained in:
Simmi Pateriya 2015-09-16 20:29:08 +05:30 committed by Gerrit - the friendly Code Review server
parent 83da14f9f8
commit 646f698002

View file

@ -789,6 +789,9 @@ void wcd_clsh_init(struct wcd_clsh_cdc_data *clsh)
wcd_clsh_set_int_mode(clsh, WCD_CLSH_STATE_HPHL, CLS_NONE);
wcd_clsh_set_int_mode(clsh, WCD_CLSH_STATE_HPHR, CLS_NONE);
wcd_clsh_set_int_mode(clsh, WCD_CLSH_STATE_LO, CLS_NONE);
clsh->flyback_users = 0;
clsh->buck_users = 0;
clsh->clsh_users = 0;
}
EXPORT_SYMBOL(wcd_clsh_init);