8392f17b4cae39cf4ebf9adc69f6d7364f8f2bb1
[openwrt/staging/ldir.git] /
1 From e718fc8f42a900b7b07b806ddfdb8c2b7a1aa3b1 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 10 Mar 2023 16:57:29 +0000
4 Subject: [PATCH] vc04_services: bcm2835_codec: Set MPEG2_LEVEL control
5 to READ_ONLY
6
7 V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL was missed from
8 "vc04_services: bcm2835_codec: Ignore READ_ONLY ctrls in s_ctrl"
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
17 @@ -3246,6 +3246,7 @@ static void dec_add_profile_ctrls(struct
18 BIT(V4L2_MPEG_VIDEO_MPEG2_LEVEL_HIGH_1440) |
19 BIT(V4L2_MPEG_VIDEO_MPEG2_LEVEL_HIGH)),
20 V4L2_MPEG_VIDEO_MPEG2_LEVEL_MAIN);
21 + ctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY;
22 ctrl = v4l2_ctrl_new_std_menu(hdl, &bcm2835_codec_ctrl_ops,
23 V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE,
24 V4L2_MPEG_VIDEO_MPEG2_PROFILE_MAIN,