OSDN Git Service

[media] staging: media: omap4iss: video: Don't WARN() on unknown pixel formats
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 3 Mar 2015 11:08:42 +0000 (08:08 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Apr 2015 00:17:48 +0000 (21:17 -0300)
commitac0eb4809e88357b885c72b4e95def98235613c8
tree19413a19af1d6ebd42e6c5cacadba9a22a8bb2c6
parent9d9104fb9db90f7d806b1f0ba270c209b8d4fa25
[media] staging: media: omap4iss: 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 default format instead of
WARN()ing in that case.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/omap4iss/iss_video.c