staging: drm/imx: fix RGB formats, make ipu_cpmem_set_fmt take a drm_fourcc
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 10 Oct 2013 14:18:38 +0000 (16:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:30:32 +0000 (15:30 -0700)
commit7cb17797fdb9f40e83cc76218c53e7589ce1dbcd
treeb842430568f04a886b6da4cfb3a9e0bc53205ec4
parente56af86646db2d0d8867d34d3f7cca6ab76e335f
staging: drm/imx: fix RGB formats, make ipu_cpmem_set_fmt take a drm_fourcc

The drm fourccs define formats not available as video4linux pixel formats,
such as DRM_FORMAT_BGR565, or the DRM_FORMAT_RGBX/BGRX variants.
Also, contrary to the v4l2 formats, the drm formats are well defined.

This patch also fixes the BGRA32 and RGB/RGB24 internal formats to use a
common internal representation.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/ipu-v3/imx-ipu-v3.h
drivers/staging/imx-drm/ipu-v3/ipu-common.c