The Hantro G1 decoder supports H.264 profiles from Baseline to High, with
the exception of the Extended profile.
Expose the V4L2_CID_MPEG_VIDEO_H264_PROFILE control, so that the
applications can query the driver for the list of supported profiles.
Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
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>
                        .def = V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B,
                        .max = V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B,
                },
+       }, {
+               .codec = HANTRO_H264_DECODER,
+               .cfg = {
+                       .id = V4L2_CID_MPEG_VIDEO_H264_PROFILE,
+                       .min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE,
+                       .max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH,
+                       .menu_skip_mask =
+                       BIT(V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED),
+                       .def = V4L2_MPEG_VIDEO_H264_PROFILE_MAIN,
+               }
        }, {
        },
 };