openwrt/target/linux/bcm27xx/patches-6.1/950-0607-vc04_services-bcm2835_codec-Set-MPEG2_LEVEL-control-.patch
Álvaro Fernández Rojas 793f8ab62c bcm27xx: 6.1: add kernel patches
Add kernel patches for version 6.1.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-06-09 19:12:30 +02:00

25 lines
1.1 KiB
Diff

From e718fc8f42a900b7b07b806ddfdb8c2b7a1aa3b1 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Fri, 10 Mar 2023 16:57:29 +0000
Subject: [PATCH] vc04_services: bcm2835_codec: Set MPEG2_LEVEL control
to READ_ONLY
V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL was missed from
"vc04_services: bcm2835_codec: Ignore READ_ONLY ctrls in s_ctrl"
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
+++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
@@ -3246,6 +3246,7 @@ static void dec_add_profile_ctrls(struct
BIT(V4L2_MPEG_VIDEO_MPEG2_LEVEL_HIGH_1440) |
BIT(V4L2_MPEG_VIDEO_MPEG2_LEVEL_HIGH)),
V4L2_MPEG_VIDEO_MPEG2_LEVEL_MAIN);
+ ctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY;
ctrl = v4l2_ctrl_new_std_menu(hdl, &bcm2835_codec_ctrl_ops,
V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE,
V4L2_MPEG_VIDEO_MPEG2_PROFILE_MAIN,