b52a59a6e0bb79f339523f42567901b390a51053
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0857-media-bcm2835-unicam-Add-support-for-unpacked-14bit-.patch
1 From 9c0121e45af13c0b0850601ee4d88029c548b240 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 1 Jul 2020 10:57:57 +0100
4 Subject: [PATCH] media: bcm2835-unicam: Add support for unpacked
5 14bit Bayer formats
6
7 Now that the 14bit non-packed Bayer formats are defined, add them
8 into the supported formats lookup table.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 drivers/media/platform/bcm2835/bcm2835-unicam.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
16 +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
17 @@ -299,21 +299,25 @@ static const struct unicam_fmt formats[]
18 .csi_dt = 0x2c,
19 }, {
20 .fourcc = V4L2_PIX_FMT_SBGGR14P,
21 + .repacked_fourcc = V4L2_PIX_FMT_SBGGR14,
22 .code = MEDIA_BUS_FMT_SBGGR14_1X14,
23 .depth = 14,
24 .csi_dt = 0x2d,
25 }, {
26 .fourcc = V4L2_PIX_FMT_SGBRG14P,
27 + .repacked_fourcc = V4L2_PIX_FMT_SGBRG14,
28 .code = MEDIA_BUS_FMT_SGBRG14_1X14,
29 .depth = 14,
30 .csi_dt = 0x2d,
31 }, {
32 .fourcc = V4L2_PIX_FMT_SGRBG14P,
33 + .repacked_fourcc = V4L2_PIX_FMT_SGRBG14,
34 .code = MEDIA_BUS_FMT_SGRBG14_1X14,
35 .depth = 14,
36 .csi_dt = 0x2d,
37 }, {
38 .fourcc = V4L2_PIX_FMT_SRGGB14P,
39 + .repacked_fourcc = V4L2_PIX_FMT_SRGGB14,
40 .code = MEDIA_BUS_FMT_SRGGB14_1X14,
41 .depth = 14,
42 .csi_dt = 0x2d,