e4ad1e0c8d89f9a95930793081d9c2833fc12d01
[openwrt/staging/blogic.git] /
1 From 029edf0e33a123569f83becb1153769e425c605e 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 14bit
5 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,