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

Commit 9d0c026e authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: do not check for session supported in executing state



The v4l2 video driver should check if the video session is supported
only prior to entering the executing state. Once video session is
in executing state, the session should be always honored.

Change-Id: Iaa59089ef05f03bbc821af8c7fd4fbc342067b3a
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent 62e43848
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2619,13 +2619,6 @@ int msm_comm_qbuf(struct vb2_buffer *vb)
			mutex_unlock(&inst->sync_lock);
	} else {
		int64_t time_usec = timeval_to_ns(&vb->v4l2_buf.timestamp);

		rc = msm_vidc_check_session_supported(inst);
		if (rc) {
			dprintk(VIDC_ERR,
				"%s: session not supported\n", __func__);
			goto err_no_mem;
		}
		do_div(time_usec, NSEC_PER_USEC);
		memset(&frame_data, 0 , sizeof(struct vidc_frame_data));
		frame_data.alloc_len = vb->v4l2_planes[0].length;