OSDN Git Service

media: cedrus: choose default pixelformat in try_fmt
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 30 Aug 2019 09:26:23 +0000 (06:26 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 19:39:23 +0000 (16:39 -0300)
commitdec555256f2cb61ee94975727ec2d4a8d592ac92
treeaa01a09bfe0ed23ce546b06e3d0a5b791c894598
parentae0688f659adb17ae6ae5710c886b20b5406e5c4
media: cedrus: choose default pixelformat in try_fmt

If an unsupported pixelformat is passed to try_fmt, then pick
the first valid pixelformat instead. This is more standard V4L2
behavior.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/sunxi/cedrus/cedrus_video.c