mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
msm: vidc: fix to pass correct buffer count to fw
Remove msm_vidc_calculate_output_buffer_count function calls while g_ctrl event to avoid overwriting of buffer count to old buffer count value that is set by client. Change-Id: I76135a88948ad7e2845c054a48e9f148bf367abb Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
This commit is contained in:
parent
b491becf08
commit
2d58b33183
1 changed files with 0 additions and 10 deletions
|
|
@ -1442,22 +1442,12 @@ static int try_get_ctrl_for_instance(struct msm_vidc_inst *inst,
|
|||
inst->level);
|
||||
break;
|
||||
case V4L2_CID_MIN_BUFFERS_FOR_CAPTURE:
|
||||
rc = msm_vidc_calculate_output_buffer_count(inst);
|
||||
if (rc) {
|
||||
dprintk(VIDC_ERR, "g_min: input failed\n", __func__);
|
||||
break;
|
||||
}
|
||||
ctrl->val = inst->fmts[OUTPUT_PORT].count_min_host;
|
||||
dprintk(VIDC_HIGH, "g_min: %x : hal_buffer %d min buffers %d\n",
|
||||
hash32_ptr(inst->session), HAL_BUFFER_OUTPUT,
|
||||
ctrl->val);
|
||||
break;
|
||||
case V4L2_CID_MIN_BUFFERS_FOR_OUTPUT:
|
||||
rc = msm_vidc_calculate_input_buffer_count(inst);
|
||||
if (rc) {
|
||||
dprintk(VIDC_ERR, "g_min: output failed\n", __func__);
|
||||
break;
|
||||
}
|
||||
ctrl->val = inst->fmts[INPUT_PORT].count_min_host;
|
||||
dprintk(VIDC_HIGH, "g_min: %x : hal_buffer %d min buffers %d\n",
|
||||
hash32_ptr(inst->session), HAL_BUFFER_INPUT, ctrl->val);
|
||||
|
|
|
|||
Loading…
Reference in a new issue