cf2e9a804ae5f19a7f21ab79c19d2fa23ae89b66
[openwrt/staging/pepe2k.git] /
1 From 774df1d5ef0d70c558ce8c6a56ab9e1e7114bb5f Mon Sep 17 00:00:00 2001
2 From: John Cox <jc@kynesim.co.uk>
3 Date: Thu, 19 Jan 2023 16:46:32 +0000
4 Subject: [PATCH] media: bcm2835-v4l2-codec: Enable selection ioctl for
5 ISP
6
7 The ISP cases do nothing. Remove the break that separates them from the
8 deinterlace case so they now do the same as deinterlace. This enables
9 simple width & height setting, but does not enable setting left and
10 top coordinates.
11
12 Signed-off-by: John Cox <jc@kynesim.co.uk>
13 ---
14 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 --
15 1 file changed, 2 deletions(-)
16
17 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
18 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
19 @@ -1857,7 +1857,6 @@ static int vidioc_g_selection(struct fil
20 }
21 break;
22 case ISP:
23 - break;
24 case DEINTERLACE:
25 if (s->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
26 switch (s->target) {
27 @@ -1981,7 +1980,6 @@ static int vidioc_s_selection(struct fil
28 }
29 break;
30 case ISP:
31 - break;
32 case DEINTERLACE:
33 if (s->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
34 switch (s->target) {