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

Commit 69010f11 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: codecs: sdm660_cdc: Return from digclock control if cacheonly"

parents 668b3028 d0a8ecde
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -122,6 +122,8 @@ static int msm_digcdc_clock_control(bool flag)
	if (flag) {
		mutex_lock(&pdata->cdc_int_mclk0_mutex);
		if (atomic_read(&pdata->int_mclk0_enabled) == false) {
			if (msm_dig_cdc->regmap->cache_only == true)
				return ret;
			if (pdata->native_clk_set)
				pdata->digital_cdc_core_clk.clk_freq_in_hz =
							NATIVE_MCLK_RATE;
@@ -141,8 +143,6 @@ static int msm_digcdc_clock_control(bool flag)
				 */
				msm_dig_cdc->regmap->cache_only = true;
				return ret;
			} else {
				msm_dig_cdc->regmap->cache_only = false;
			}
			pr_debug("enabled digital codec core clk\n");
			atomic_set(&pdata->int_mclk0_enabled, true);