[media] s5p-fimc: Correct color format enumeration
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 13 Jun 2011 14:09:40 +0000 (11:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 6 Sep 2011 20:41:37 +0000 (17:41 -0300)
commitcf52df8acfda9442d64ab4d3d6085877f6d88d46
treebc3146a84c3bd0c867ccb7bbc76e36a5887e57e7
parent9e803a0450a5973d1c252980ea69e5b171d7f0ca
[media] s5p-fimc: Correct color format enumeration

Replace fimc_find_format() and find_mbus_format() with single function
that can return a pointer to the private format description based
on fourcc, media bus code or index in the table.

Create separate VIDIOC_ENUM_FMT ioctl handlers for video capture
and mem-to-mem video node. This is needed because some formats are
valid only for the video capture and some only for the mem-to-mem
video node.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c
drivers/media/video/s5p-fimc/fimc-core.c
drivers/media/video/s5p-fimc/fimc-core.h
drivers/media/video/s5p-fimc/fimc-mdevice.c