gpu: ipu-v3: Restore RGB32, BGR32
authorSteve Longerbeam <slongerbeam@gmail.com>
Wed, 17 Jun 2020 22:40:36 +0000 (15:40 -0700)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 20 Jul 2020 13:16:05 +0000 (15:16 +0200)
RGB32 and BGR32 formats were inadvertently removed from the switch
statement in ipu_pixelformat_to_colorspace(). Restore them.

Fixes: a59957172b0c ("gpu: ipu-v3: enable remaining 32-bit RGB V4L2 pixel formats")
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-common.c

index ee2a025e54cfea007c55c304ae90dba22062e373..b3dae9ec1a38bf18c16a480ee5ded8cb16d0dfa1 100644 (file)
@@ -124,6 +124,8 @@ enum ipu_color_space ipu_pixelformat_to_colorspace(u32 pixelformat)
        case V4L2_PIX_FMT_RGBX32:
        case V4L2_PIX_FMT_ARGB32:
        case V4L2_PIX_FMT_XRGB32:
+       case V4L2_PIX_FMT_RGB32:
+       case V4L2_PIX_FMT_BGR32:
                return IPUV3_COLORSPACE_RGB;
        default:
                return IPUV3_COLORSPACE_UNKNOWN;