]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: sun6i: Add support for JPEG media bus format
authorChen-Yu Tsai <wens@csie.org>
Sun, 3 Feb 2019 16:03:58 +0000 (11:03 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 20:27:08 +0000 (15:27 -0500)
commit35deee14183457754f77e34dc92c588d93d40052
tree6fdf8a23c4d2ce1981f582f0fc81a21f9dde7e62
parent19b18e78b327c8e0a5964ea7d08de5cb718f472d
media: sun6i: Add support for JPEG media bus format

The CSI controller can take raw data from the data bus and output it
directly to capture buffers. This can be used to support the JPEG media
bus format.

While the controller can report minimum and maximum bytes per line, it
has no way to report how many lines were captured in the last frame.
Thus, even when the on-bus data is framed correctly, we have no way to
accertain the actual amount of data captured, unless we scan the buffer
for JPEG EOI markers, or sequential zeros. For now we leave bytesused
alone, and leave it up to userspace applications to parse the data.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h
drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c