Merge "video: driver: limit auto-frame-rate to original fps value"

Cette révision appartient à :
qctecmdr
2024-04-22 15:00:08 -07:00
révisé par Gerrit - the friendly Code Review server
révision 4a19fb721c

Voir le fichier

@@ -1643,6 +1643,11 @@ int msm_vidc_set_auto_framerate(struct msm_vidc_inst *inst, u64 timestamp)
if (counter < ENC_FPS_WINDOW)
goto exit;
if (curr_fr > inst->capabilities[FRAME_RATE].value) {
i_vpr_l(inst, "%s: fps: %u limitted to client fps.\n", __func__, curr_fr >> 16);
curr_fr = inst->capabilities[FRAME_RATE].value;
}
/* if framerate changed and stable for 2 frames, set to firmware */
if (curr_fr == prev_fr && curr_fr != inst->auto_framerate) {
i_vpr_l(inst, "%s: updated fps: %u -> %u\n", __func__,