From 53e3741023874f30f6fb4eaa28e89ee9bd2ce705 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Fri, 3 Dec 2010 00:16:50 +0100
Subject: Add support for the V4L2_PIX_FMT_SGRBG12 format

The format isn't available in the mainline kernel yet, so guard it with
conditional compilation.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 yavta.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/yavta.c b/yavta.c
index 17a4af2..3db1e5b 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1053,6 +1053,10 @@ int main(int argc, char *argv[])
 				pixelformat = V4L2_PIX_FMT_SGRBG10DPCM8;
 			else if (strcasecmp(optarg, "SGRBG10") == 0)
 				pixelformat = V4L2_PIX_FMT_SGRBG10;
+#ifdef V4L2_PIX_FMT_SGRBG12
+			else if (strcasecmp(optarg, "SGRBG12") == 0)
+				pixelformat = V4L2_PIX_FMT_SGRBG12;
+#endif
 			else if (strcasecmp(optarg, "DV") == 0)
 				pixelformat = V4L2_PIX_FMT_DV;
 			else {
-- 
cgit v1.2.3