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

Commit e59100f0 authored by Vinay Kalia's avatar Vinay Kalia
Browse files

msm: vidc: Search for buffer using buffer address



Instead of using clnt_data, which is a cookie passed
through firmware, use buffers device address to search
for corresponding video buffer header.

Change-Id: I2f168ac58dbbdfc698b35afb0ebaddde6c9fa6e3
Signed-off-by: default avatarVinay Kalia <vkalia@codeaurora.org>
parent 9fffca4f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1424,7 +1424,7 @@ static void handle_ebd(enum hal_command_response cmd, void *data)
	}

	vb = get_vb_from_device_addr(&inst->bufq[OUTPUT_PORT],
				response->clnt_data);
			response->input_done.packet_buffer);
	if (vb) {
		vb->v4l2_planes[0].bytesused = response->input_done.filled_len;
		vb->v4l2_planes[0].data_offset = response->input_done.offset;
@@ -1433,8 +1433,8 @@ static void handle_ebd(enum hal_command_response cmd, void *data)
		if (vb->v4l2_planes[0].bytesused > vb->v4l2_planes[0].length)
			dprintk(VIDC_INFO, "bytesused overflow length\n");
		if (vb->v4l2_planes[0].m.userptr !=
			response->input_done.packet_buffer)
			dprintk(VIDC_INFO, "Unexpected buffer address\n");
			response->clnt_data)
			dprintk(VIDC_INFO, "Client data != bufaddr\n");
		empty_buf_done = (struct vidc_hal_ebd *)&response->input_done;
		if (empty_buf_done) {
			if (empty_buf_done->status == VIDC_ERR_NOT_SUPPORTED) {