mfc: Reduce QoS boosting from Samsung hacks

By default, everything is set to 240fps for optimal playback performance However, the situation is not always true, as it applies to cases when the video bitrate isn't necessarily high, causing high power consumption

Reduce and limit the boosting needed. For decoder, only apply for UHD
video resolution

Signed-off-by: Diep Quynh <remilia.1505@gmail.com>
[TenSeventy7: Negative unsigned integer fixes already present on 9610]
Signed-off-by: John Vincent <git@tensevntysevn.cf>

Signed-off-by: ThunderStorms21th <pinakastorm@gmail.com>
This commit is contained in:
ThunderStorms21th 2021-09-20 13:57:08 +02:00 committed by Ksawlii
parent 84fc4d7016
commit 9ba60fb174

View file

@ -559,7 +559,7 @@ void mfc_qos_update_last_framerate(struct mfc_ctx *ctx, u64 timestamp)
if (ctx->last_framerate > MFC_MAX_FPS)
ctx->last_framerate = MFC_MAX_FPS;
if (ctx->src_ts.ts_is_full)
if (!(ctx->type == MFCINST_DECODER && !IS_UHD_RES(ctx)))
ctx->last_framerate = (ctx->qos_ratio * ctx->last_framerate) / 100;
}