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

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

Merge "msm: vidc: Skip sending error to client when buffer count is small" into msm-4.9

parents 655b7150 78e4cd3f
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1267,10 +1267,9 @@ static int msm_vidc_queue_setup(struct vb2_queue *q,
			return -EINVAL;
		}
		if (*num_buffers < bufreq->buffer_count_min_host) {
			dprintk(VIDC_ERR,
				"Invalid parameters : Req = %d Act = %d\n",
			dprintk(VIDC_DBG,
				"Client passed num buffers %d less than the min_host count %d\n",
				*num_buffers, bufreq->buffer_count_min_host);
			return -EINVAL;
		}
		*num_planes = inst->bufq[OUTPUT_PORT].num_planes;
		if (*num_buffers < MIN_NUM_OUTPUT_BUFFERS ||
@@ -1299,11 +1298,10 @@ static int msm_vidc_queue_setup(struct vb2_queue *q,
		if (inst->session_type != MSM_VIDC_DECODER &&
			inst->state > MSM_VIDC_LOAD_RESOURCES_DONE) {
			if (*num_buffers < bufreq->buffer_count_min_host) {
				dprintk(VIDC_ERR,
					"Invalid parameters : Req = %d Act = %d\n",
				dprintk(VIDC_DBG,
					"Client passed num buffers %d less than the min_host count %d\n",
						*num_buffers,
						bufreq->buffer_count_min_host);
				return -EINVAL;
			}
		}
		*num_planes = inst->bufq[CAPTURE_PORT].num_planes;