Advertisement
senchuss

[ /opt/tx1/camera_common.patch ] 12bit support

Mar 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.59 KB | None | 0 0
  1. --- sources/kernel/drivers/media/platform/tegra/camera/camera_common.old    2016-11-10 06:37:19.000000000 +0300
  2. +++ sources/kernel/drivers/media/platform/tegra/camera/camera_common.c  2017-03-20 14:37:58.000000000 +0300
  3. @@ -461,8 +461,12 @@
  4.                 mf->height, mf->maxframerate);
  5.         }
  6.     }
  7. -   if (mf->code != V4L2_MBUS_FMT_SRGGB8_1X8 &&
  8. -       mf->code != V4L2_MBUS_FMT_SRGGB10_1X10) {
  9. +   if (    mf->code != V4L2_MBUS_FMT_SRGGB8_1X8
  10. +               &&
  11. +               mf->code != V4L2_MBUS_FMT_SRGGB10_1X10
  12. +               &&
  13. +               mf->code != V4L2_MBUS_FMT_SRGGB12_1X12
  14. +           ) {
  15.         mf->code = V4L2_MBUS_FMT_SRGGB10_1X10;
  16.         err = -EINVAL;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement