media: hantro: handle V4L2_PIX_FMT_HEVC_SLICE control
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Thu, 3 Jun 2021 11:50:02 +0000 (13:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jun 2021 14:09:14 +0000 (16:09 +0200)
Make sure that V4L2_PIX_FMT_HEVC_SLICE is correctly handled by the driver.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_v4l2.c

index aca92ce..bcb0bdf 100644 (file)
@@ -392,6 +392,7 @@ hantro_update_requires_request(struct hantro_ctx *ctx, u32 fourcc)
        case V4L2_PIX_FMT_MPEG2_SLICE:
        case V4L2_PIX_FMT_VP8_FRAME:
        case V4L2_PIX_FMT_H264_SLICE:
+       case V4L2_PIX_FMT_HEVC_SLICE:
                ctx->fh.m2m_ctx->out_q_ctx.q.requires_requests = true;
                break;
        default: