mirror of https://gitee.com/openkylin/linux.git
media: imx: use well defined 32-bit RGB pixel format
The documentation in Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst tells us that the V4L2_PIX_FMT_RGB32 format is deprecated and must not be used by new drivers. Replace it with V4L2_PIX_FMT_XRGB32. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Steve Longerbeam <steve_longerbeam@mentor.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
cd41986e76
commit
c525350f6e
|
@ -88,7 +88,7 @@ static const struct imx_media_pixfmt rgb_formats[] = {
|
|||
.cs = IPUV3_COLORSPACE_RGB,
|
||||
.bpp = 24,
|
||||
}, {
|
||||
.fourcc = V4L2_PIX_FMT_RGB32,
|
||||
.fourcc = V4L2_PIX_FMT_XRGB32,
|
||||
.codes = {MEDIA_BUS_FMT_ARGB8888_1X32},
|
||||
.cs = IPUV3_COLORSPACE_RGB,
|
||||
.bpp = 32,
|
||||
|
@ -212,7 +212,7 @@ static const struct imx_media_pixfmt ipu_yuv_formats[] = {
|
|||
|
||||
static const struct imx_media_pixfmt ipu_rgb_formats[] = {
|
||||
{
|
||||
.fourcc = V4L2_PIX_FMT_RGB32,
|
||||
.fourcc = V4L2_PIX_FMT_XRGB32,
|
||||
.codes = {MEDIA_BUS_FMT_ARGB8888_1X32},
|
||||
.cs = IPUV3_COLORSPACE_RGB,
|
||||
.bpp = 32,
|
||||
|
|
Loading…
Reference in New Issue