1
0
Fork 0

LF-984:[8QM_MEK/8QXP_MEK]mxc:vpu_malone:report error event when the resolution beyond limit

If the resolution is too bit to support,
driver should report an error event,
so application can do the cancel flow

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Acked-by: Shijie Qin <shijie.qin@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Ming Qian 2020-02-21 10:51:05 +08:00
parent 2342e62536
commit e883611a57
1 changed files with 3 additions and 1 deletions

View File

@ -4298,8 +4298,10 @@ static void vpu_api_event_handler(struct vpu_ctx *ctx, u_int32 uStrIdx, u_int32
int wait_times = 0;
get_seq_info(&info, event_data, &pSeqInfo[ctx->str_index]);
if (!check_seq_info_is_valid(ctx->str_index, &info))
if (!check_seq_info_is_valid(ctx->str_index, &info)) {
vpu_dec_event_decode_error(ctx);
break;
}
while (ctx->wait_res_change_done && wait_times++ < 100) {
if (!vpu_dec_is_active(ctx))