Hi Sakari, Thanks for the patch. On Wednesday 28 December 2011 11:20:57 Sakari Ailus wrote: > This also prevents accessing NULL pointer in csi2_try_format(). > > Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxx> Acked-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> > --- > drivers/media/video/omap3isp/ispvideo.c | 13 +++++++++++++ > 1 files changed, 13 insertions(+), 0 deletions(-) > > diff --git a/drivers/media/video/omap3isp/ispvideo.c > b/drivers/media/video/omap3isp/ispvideo.c index 0568234..3c984ae 100644 > --- a/drivers/media/video/omap3isp/ispvideo.c > +++ b/drivers/media/video/omap3isp/ispvideo.c > @@ -46,6 +46,10 @@ > * Helper functions > */ > > +/* > + * NOTE: When adding new media bus codes, always remember to add > + * corresponding in-memory formats to the table below!!! > + */ > static struct isp_format_info formats[] = { > { V4L2_MBUS_FMT_Y8_1X8, V4L2_MBUS_FMT_Y8_1X8, > V4L2_MBUS_FMT_Y8_1X8, V4L2_MBUS_FMT_Y8_1X8, > @@ -68,9 +72,18 @@ static struct isp_format_info formats[] = { > { V4L2_MBUS_FMT_SRGGB8_1X8, V4L2_MBUS_FMT_SRGGB8_1X8, > V4L2_MBUS_FMT_SRGGB8_1X8, V4L2_MBUS_FMT_SRGGB8_1X8, > V4L2_PIX_FMT_SRGGB8, 8, }, > + { V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8, V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8, > + V4L2_MBUS_FMT_SBGGR10_1X10, 0, > + V4L2_PIX_FMT_SBGGR10DPCM8, 8, }, > + { V4L2_MBUS_FMT_SGBRG10_DPCM8_1X8, V4L2_MBUS_FMT_SGBRG10_DPCM8_1X8, > + V4L2_MBUS_FMT_SGBRG10_1X10, 0, > + V4L2_PIX_FMT_SGBRG10DPCM8, 8, }, > { V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8, V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8, > V4L2_MBUS_FMT_SGRBG10_1X10, 0, > V4L2_PIX_FMT_SGRBG10DPCM8, 8, }, > + { V4L2_MBUS_FMT_SRGGB10_DPCM8_1X8, V4L2_MBUS_FMT_SRGGB10_DPCM8_1X8, > + V4L2_MBUS_FMT_SRGGB10_1X10, 0, > + V4L2_PIX_FMT_SRGGB10DPCM8, 8, }, > { V4L2_MBUS_FMT_SBGGR10_1X10, V4L2_MBUS_FMT_SBGGR10_1X10, > V4L2_MBUS_FMT_SBGGR10_1X10, V4L2_MBUS_FMT_SBGGR8_1X8, > V4L2_PIX_FMT_SBGGR10, 10, }, -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html