[media] V4L: soc-camera: add a new packing for YUV 4:2:0 type formats
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 20 May 2011 07:25:09 +0000 (04:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 15:05:08 +0000 (12:05 -0300)
commitcc552b620fa3a184ba3d4064223ca1d59325b166
tree8de21b7b635acbc87f71f790af917f3a4c56ee20
parente9ceeced6feb6f072d59b87fe5a47c37e2b50d51
[media] V4L: soc-camera: add a new packing for YUV 4:2:0 type formats

12-bit formats, similar to YUV 4:2:0 occupy 3 bytes for each two pixels
and cannot be described by any of the existing SOC_MBUS_PACKING_* macros.
This patch adds a new one SOC_MBUS_PACKING_1_5X8 to describe such
formats and extends soc_mbus_samples_per_pixel() to support it.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mx3_camera.c
drivers/media/video/soc_mediabus.c
include/media/soc_mediabus.h