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

Commit 15498c2d authored by Simmi Pateriya's avatar Simmi Pateriya Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSimmi Pateriya <simmip@codeaurora.org>
parent 62b3314e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -884,6 +884,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);