1 From dd3b1e96b9d27f26a0aedc2eb5eae08ba1a4ef48 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 25 Jun 2020 18:03:47 +0100
4 Subject: [PATCH] media: bcm2835-unicam: Add support for 14bit mono
7 Now that V4L2_PIX_FMT_Y14 and V4L2_PIX_FMT_Y14P are defined,
8 allow passing 14bit mono data through the peripheral.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 drivers/media/platform/bcm2835/bcm2835-unicam.c | 6 ++++++
13 1 file changed, 6 insertions(+)
15 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
16 +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
17 @@ -341,6 +341,12 @@ static const struct unicam_fmt formats[]
18 .code = MEDIA_BUS_FMT_Y12_1X12,
22 + .fourcc = V4L2_PIX_FMT_Y14P,
23 + .repacked_fourcc = V4L2_PIX_FMT_Y14,
24 + .code = MEDIA_BUS_FMT_Y14_1X14,
28 /* Embedded data format */