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

Commit 778ce72e authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ASoC: wcd9335: avoid changing FS counter with SRW master clk



The Soundwire master FS counter should be enabled/disabled
only when codec MCLK is turned on/off. Avoid changing this
value along with Soundwire master clock.

Change-Id: I849b09cc2809102ca125e7e6d65bdad581ee0e90
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 4c5e5900
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -9171,9 +9171,6 @@ static int tasha_swrm_clock(void *handle, bool enable)
		tasha->swr_clk_users++;
		if (tasha->swr_clk_users == 1) {
			__tasha_cdc_mclk_enable(tasha, true);
			wcd9xxx_reg_update_bits(&tasha->wcd9xxx->core_res,
				WCD9335_CDC_CLK_RST_CTRL_FS_CNT_CONTROL,
				0x01, 0x01);
			wcd9xxx_reg_update_bits(&tasha->wcd9xxx->core_res,
				WCD9335_CDC_CLK_RST_CTRL_SWR_CONTROL,
				0x01, 0x01);
@@ -9184,9 +9181,6 @@ static int tasha_swrm_clock(void *handle, bool enable)
			wcd9xxx_reg_update_bits(&tasha->wcd9xxx->core_res,
				WCD9335_CDC_CLK_RST_CTRL_SWR_CONTROL,
				0x01, 0x00);
			wcd9xxx_reg_update_bits(&tasha->wcd9xxx->core_res,
				WCD9335_CDC_CLK_RST_CTRL_FS_CNT_CONTROL,
				0x01, 0x00);
			__tasha_cdc_mclk_enable(tasha, false);
		}
	}