diff options
author | Chen-Yu Tsai <wens@csie.org> | 2019-02-03 11:03:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-02-18 15:26:19 -0500 |
commit | 19b18e78b327c8e0a5964ea7d08de5cb718f472d (patch) | |
tree | aa62b6bd8b3aa5ed81dea99e945b31890e805f7f /drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c | |
parent | d31b282e2c0de9c7fb113516820340251f03a625 (diff) | |
download | linux-19b18e78b327c8e0a5964ea7d08de5cb718f472d.tar.gz linux-19b18e78b327c8e0a5964ea7d08de5cb718f472d.tar.bz2 linux-19b18e78b327c8e0a5964ea7d08de5cb718f472d.zip |
media: sun6i: Add support for RGB565 formats
The CSI controller can take raw data from the data bus and output RGB565
format. The controller does not distinguish between RGB565 LE and BE.
Instead this is determined by the media bus format, i.e. the format or
order the sensor is sending data in.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c')
-rw-r--r-- | drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c index b04300c3811f..bff6fe832803 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c @@ -56,6 +56,8 @@ static const u32 supported_pixformats[] = { V4L2_PIX_FMT_NV16, V4L2_PIX_FMT_NV61, V4L2_PIX_FMT_YUV422P, + V4L2_PIX_FMT_RGB565, + V4L2_PIX_FMT_RGB565X, }; static bool is_pixformat_valid(unsigned int pixformat) |