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

Commit a5316f0d authored by Laxminath Kasam's avatar Laxminath Kasam Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: wcd9335: Fix compander disable after SSR



After SSR, observe tones heard with high volume.
compander and hph_mode mixer controls are reset
in post reset callback which will not be in
sync with userspace settings. Avoid reset of
compander and hph_mode controls in post reset
callback.

CRs-Fixed: 1010471
Change-Id: Iacb3e27a35027037613e82e483b10b635d492a75
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent fc19e02b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -13443,8 +13443,6 @@ static int tasha_post_reset_cb(struct wcd9xxx *wcd9xxx)

	/* Class-H Init*/
	wcd_clsh_init(&tasha->clsh_d);
	/* Default HPH Mode to Class-H HiFi */
	tasha->hph_mode = CLS_H_HIFI;

	for (i = 0; i < TASHA_MAX_MICBIAS; i++)
		tasha->micb_ref[i] = 0;
@@ -13452,8 +13450,6 @@ static int tasha_post_reset_cb(struct wcd9xxx *wcd9xxx)
	tasha_update_reg_defaults(tasha);

	tasha->codec = codec;
	for (i = 0; i < COMPANDER_MAX; i++)
		tasha->comp_enabled[i] = 0;

	dev_dbg(codec->dev, "%s: MCLK Rate = %x\n",
		__func__, control->mclk_rate);