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

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

Merge "msm: camera: calculate RDI bandwidth properly"

parents ebb8fec9 9ee5c0ec
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -721,6 +721,7 @@ void msm_isp_calculate_bandwidth(
	struct msm_vfe_axi_shared_data *axi_data,
	struct msm_vfe_axi_stream *stream_info)
{
	int bpp = 0;
	if (stream_info->stream_src < RDI_INTF_0) {
		stream_info->bandwidth =
			(axi_data->src_info[VFE_PIX_0].pixel_clock /
@@ -730,9 +731,10 @@ void msm_isp_calculate_bandwidth(
			stream_info->format_factor / ISP_Q2;
	} else {
		int rdi = SRC_TO_INTF(stream_info->stream_src);
		bpp = msm_isp_get_bit_per_pixel(stream_info->output_format);
		if (rdi < VFE_SRC_MAX)
			stream_info->bandwidth =
				axi_data->src_info[rdi].pixel_clock;
				(axi_data->src_info[rdi].pixel_clock / 8) * bpp;
		else
			pr_err("%s: Invalid rdi interface\n", __func__);
	}