driver: media: add V4L2_MBUS_FMT_SRGGB12_1X12
esen chen [Fri, 6 May 2016 07:52:13 +0000 (15:52 +0800)]
fix the 12 bit crash issue

Bug 200168141

Change-Id: I8a4321d7e8d4a5cb7db67036c247f8793c4b3441
Signed-off-by: esen chen <esenc@nvidia.com>
Reviewed-on: http://git-master/r/1142603
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

drivers/media/platform/tegra/camera/camera_common.c

index 88d19ec..2734a29 100644 (file)
 
 static const struct camera_common_colorfmt camera_common_color_fmts[] = {
        {
+               V4L2_MBUS_FMT_SRGGB12_1X12,
+               V4L2_COLORSPACE_SRGB,
+               V4L2_PIX_FMT_SRGGB12,
+       },
+       {
                V4L2_MBUS_FMT_SRGGB10_1X10,
                V4L2_COLORSPACE_SRGB,
                V4L2_PIX_FMT_SRGGB10,