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

Commit 86c7c240 authored by Praneeth Paladugu's avatar Praneeth Paladugu
Browse files

msm: vidc: Fix buffer counts for split mode



For split mode, derive the buffer counts from FW returned
values same way as combined mode.

CRs-Fixed: 2076108
Change-Id: I7e7946fa91bd604c5c1b38ca87f58efe7f2e9809
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
parent 4d9a308b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1105,6 +1105,7 @@ int msm_vdec_s_ext_ctrl(struct msm_vidc_inst *inst,
				dprintk(VIDC_ERR,
					"%s Failed setting stream output mode : %d\n",
					__func__, rc);
			rc = msm_vidc_update_host_buff_counts(inst);
			break;
		case V4L2_CID_MPEG_VIDC_VIDEO_DPB_COLOR_FORMAT:
			switch (ext_control[i].value) {
@@ -1142,6 +1143,7 @@ int msm_vdec_s_ext_ctrl(struct msm_vidc_inst *inst,
						break;
					}
				}
				rc = msm_vidc_update_host_buff_counts(inst);
				inst->clk_data.dpb_fourcc = fourcc;
				break;
			default:
+5 −0
Original line number Diff line number Diff line
@@ -3174,6 +3174,11 @@ static int set_output_buffers(struct msm_vidc_inst *inst,
			buffer_type);
		return 0;
	}

	/* For DPB buffers, Always use FW count */
	output_buf->buffer_count_actual = output_buf->buffer_count_min_host =
		output_buf->buffer_count_min;

	dprintk(VIDC_DBG,
		"output: num = %d, size = %d\n",
		output_buf->buffer_count_actual,