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

Commit 772ebaf5 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Send resolution along with output buffer



Send the resolution along with output buffer to the client
to avoid a race condition where resolution might be changed
multiple times in driver before client requests for updated
resolution.

Change-Id: I8ebb99e3baa04da09f153195a674babcebcfea78
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent 88240c83
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1493,6 +1493,10 @@ static void handle_fbd(enum command_response cmd, void *data)
		vb->v4l2_planes[0].reserved[3] = fill_buf_done->start_y_coord;
		vb->v4l2_planes[0].reserved[4] = fill_buf_done->frame_width;
		vb->v4l2_planes[0].reserved[5] = fill_buf_done->frame_height;
		vb->v4l2_planes[0].reserved[6] =
			inst->prop.width[CAPTURE_PORT];
		vb->v4l2_planes[0].reserved[7] =
			inst->prop.height[CAPTURE_PORT];
		if (vb->v4l2_planes[0].data_offset > vb->v4l2_planes[0].length)
			dprintk(VIDC_INFO,
				"fbd:Overflow data_offset = %d; length = %d\n",
+1 −0
Original line number Diff line number Diff line
@@ -553,6 +553,7 @@ struct vdec_output_frameinfo {
	enum vdec_picture pic_type;
	void *client_data;
	void *input_frame_clientdata;
	struct vdec_picsize picsize;
	struct vdec_framesize framesize;
	enum vdec_interlaced_format interlaced_format;
	struct vdec_aspectratioinfo aspect_ratio_info;