openwrt/target/linux/bcm27xx/patches-6.1/950-0546-media-bcm2835-v4l2-codec-Enable-selection-ioctl-for-.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

35 lines
1.1 KiB
Diff

From 774df1d5ef0d70c558ce8c6a56ab9e1e7114bb5f Mon Sep 17 00:00:00 2001
From: John Cox <jc@kynesim.co.uk>
Date: Thu, 19 Jan 2023 16:46:32 +0000
Subject: [PATCH] media: bcm2835-v4l2-codec: Enable selection ioctl for
ISP
The ISP cases do nothing. Remove the break that separates them from the
deinterlace case so they now do the same as deinterlace. This enables
simple width & height setting, but does not enable setting left and
top coordinates.
Signed-off-by: John Cox <jc@kynesim.co.uk>
---
.../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 --
1 file changed, 2 deletions(-)
--- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
+++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
@@ -1857,7 +1857,6 @@ static int vidioc_g_selection(struct fil
}
break;
case ISP:
- break;
case DEINTERLACE:
if (s->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
switch (s->target) {
@@ -1981,7 +1980,6 @@ static int vidioc_s_selection(struct fil
}
break;
case ISP:
- break;
case DEINTERLACE:
if (s->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
switch (s->target) {