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

Commit 759499e7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: cpas: Avoid clk set when streamon client is zero"

parents c8f2aa4e 321d1c74
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -592,12 +592,20 @@ static int cam_cpas_util_set_camnoc_axi_clk_rate(
		CAM_DBG(CAM_CPAS, "Setting camnoc axi clk rate : %llu %d",
			required_camnoc_bw, clk_rate);

		/*
		 * CPAS hw is not powered on for the first client.
		 * Also, clk_rate will be overwritten with default
		 * value while power on. So, skipping this for first
		 * client.
		 */
		if (cpas_core->streamon_clients) {
			rc = cam_soc_util_set_src_clk_rate(soc_info, clk_rate);
			if (rc)
				CAM_ERR(CAM_CPAS,
				"Failed in setting camnoc axi clk %llu %d %d",
				required_camnoc_bw, clk_rate, rc);
		}
	}

	return rc;
}