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

Commit ec38293d authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Fix buffer count issue



Set actual buffer count to video hardware instead of
min host count to resolve video encoding failures.

CRs-Fixed: 2066658
Change-Id: I13e1cb33f261181ef97b66ad2d6cb5e8894ba291
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent ba8267ff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -710,7 +710,7 @@ static int msm_vidc_queue_setup(struct vb2_queue *q,

		bufreq->buffer_count_actual = *num_buffers;
		rc = set_buffer_count(inst, bufreq->buffer_count_min_host,
			bufreq->buffer_count_min_host, HAL_BUFFER_INPUT);
			bufreq->buffer_count_actual, HAL_BUFFER_INPUT);
		}

		break;
@@ -744,7 +744,7 @@ static int msm_vidc_queue_setup(struct vb2_queue *q,

		bufreq->buffer_count_actual = *num_buffers;
		rc = set_buffer_count(inst, bufreq->buffer_count_min_host,
			bufreq->buffer_count_min_host, buffer_type);
			bufreq->buffer_count_actual, buffer_type);
		}
		break;
	default: