Hello Nicolas,
At 2026-01-21 22:45:19, "Nicolas Frattaroli" <[email protected]> 
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,
>as well as the bus format used for YUV422 12-bit.
>
>Add MEDIA_BUS_FMT_YUYV10_1X20 and MEDIA_BUS_FMT_YUYV12_1X24 to
>is_yuv_output's switch cases to resolve this.
>
>Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver")
>Signed-off-by: Nicolas Frattaroli <[email protected]>
>---
> drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 3 +++
> 1 file changed, 3 insertions(+)
>
>diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c 
>b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
>index f21efbca42e6..3dd7b7571487 100644
>--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
>+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
>@@ -369,6 +369,9 @@ 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_YUYV12_1X24:

         MEDIA_BUS_FMT_YUYV12_1X24 is not supported by VOP,  the max output 
depth of VOP is 10




>       case MEDIA_BUS_FMT_UYYVYY8_0_5X24:
>       case MEDIA_BUS_FMT_UYYVYY10_0_5X30:
>       case MEDIA_BUS_FMT_YUYV8_2X8:
>
>-- 
>2.52.0
>

Reply via email to