media: hantro: Don't require unneeded H264_SLICE_PARAMS
authorEzequiel Garcia <ezequiel@collabora.com>
Tue, 25 Aug 2020 03:52:38 +0000 (05:52 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Sep 2020 12:13:28 +0000 (14:13 +0200)
Now that slice invariant parameters have been moved,
the driver no longer needs this control, so drop it.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_drv.c
drivers/staging/media/hantro/hantro_h264.c
drivers/staging/media/hantro/hantro_hw.h

index 3479750..3cd00cc 100644 (file)
@@ -309,11 +309,6 @@ static const struct hantro_ctrl controls[] = {
        }, {
                .codec = HANTRO_H264_DECODER,
                .cfg = {
-                       .id = V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS,
-               },
-       }, {
-               .codec = HANTRO_H264_DECODER,
-               .cfg = {
                        .id = V4L2_CID_MPEG_VIDEO_H264_SPS,
                        .ops = &hantro_ctrl_ops,
                },
index 7578a4f..089bfa9 100644 (file)
@@ -349,11 +349,6 @@ int hantro_h264_dec_prepare_run(struct hantro_ctx *ctx)
        if (WARN_ON(!ctrls->decode))
                return -EINVAL;
 
-       ctrls->slices =
-               hantro_get_ctrl(ctx, V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS);
-       if (WARN_ON(!ctrls->slices))
-               return -EINVAL;
-
        ctrls->sps =
                hantro_get_ctrl(ctx, V4L2_CID_MPEG_VIDEO_H264_SPS);
        if (WARN_ON(!ctrls->sps))
index f066de6..219283a 100644 (file)
@@ -56,14 +56,12 @@ struct hantro_jpeg_enc_hw_ctx {
  * struct hantro_h264_dec_ctrls
  * @decode:    Decode params
  * @scaling:   Scaling info
- * @slice:     Slice params
  * @sps:       SPS info
  * @pps:       PPS info
  */
 struct hantro_h264_dec_ctrls {
        const struct v4l2_ctrl_h264_decode_params *decode;
        const struct v4l2_ctrl_h264_scaling_matrix *scaling;
-       const struct v4l2_ctrl_h264_slice_params *slices;
        const struct v4l2_ctrl_h264_sps *sps;
        const struct v4l2_ctrl_h264_pps *pps;
 };