[media] omap3isp: video: Don't WARN() on unknown pixel formats
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 28 Nov 2011 11:25:30 +0000 (08:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Dec 2011 11:37:09 +0000 (09:37 -0200)
commitc3cd257402fdcd650816ec25b83480a24912430a
tree196dc0a3c236cdd7c61914926300d83ec00705d2
parent22db44cb9cd67d56b02b2b5dceb10d3d1361b28b
[media] omap3isp: video: Don't WARN() on unknown pixel formats

When mapping from a V4L2 pixel format to a media bus format in the
VIDIOC_TRY_FMT and VIDIOC_S_FMT handlers, the requested format may be
unsupported by the driver. Return a hardcoded format instead of
WARN()ing in that case.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/ispvideo.c