[PATCH v10 12/22] drm/rockchip: vop2: Recognise 10-bit YUV422 as YUV format

Nicolas Frattaroli posted 22 patches 1 week, 6 days ago
[PATCH v10 12/22] drm/rockchip: vop2: Recognise 10-bit YUV422 as YUV format
Posted by Nicolas Frattaroli 1 week, 6 days ago
The Rockchip VOP2 video output driver has a "is_yuv_output" function,
which returns true when a given bus format is a YUV format, and false
otherwise.

This switch statement is lacking the bus format used for YUV422 10-bit.

Add the two component orderings of the YUV422 10-bit bus formats to the
switch statement.

Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver")
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
---
 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
index 39c64296174f..46d49bc98ddb 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
@@ -352,6 +352,8 @@ static bool is_yuv_output(u32 bus_format)
 	switch (bus_format) {
 	case MEDIA_BUS_FMT_YUV8_1X24:
 	case MEDIA_BUS_FMT_YUV10_1X30:
+	case MEDIA_BUS_FMT_YUYV10_1X20:
+	case MEDIA_BUS_FMT_UYVY10_1X20:
 	case MEDIA_BUS_FMT_UYYVYY8_0_5X24:
 	case MEDIA_BUS_FMT_UYYVYY10_0_5X30:
 	case MEDIA_BUS_FMT_YUYV8_2X8:

-- 
2.53.0
Re: [PATCH v10 12/22] drm/rockchip: vop2: Recognise 10-bit YUV422 as YUV format
Posted by Cristian Ciocaltea 1 week, 5 days ago
On 3/5/26 4:19 PM, Nicolas Frattaroli wrote:
> The Rockchip VOP2 video output driver has a "is_yuv_output" function,
> which returns true when a given bus format is a YUV format, and false
> otherwise.
> 
> This switch statement is lacking the bus format used for YUV422 10-bit.
> 
> Add the two component orderings of the YUV422 10-bit bus formats to the
> switch statement.
> 
> Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver")
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>