mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
drm/rockchip: vop2: enable rb swap for MEDIA_BUS_FMT_BGR888_1X24
It is needed to enable rb swap to support MEDIA_BUS_FMT_BGR888_1X24, because the default 24bpp rgb output is MEDIA_BUS_FMT_RGB888_1X24. Change-Id: Ifb55f0e97f3a914b9f66b6de49e85697fdc7aeae Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
@@ -2450,7 +2450,8 @@ static bool vop3_output_rb_swap(struct rockchip_crtc_state *vcstate)
|
||||
* The default component order of serial rgb3x8 formats
|
||||
* is BGR. So it is needed to enable RB swap.
|
||||
*/
|
||||
if (bus_format == MEDIA_BUS_FMT_RGB888_3X8 ||
|
||||
if (bus_format == MEDIA_BUS_FMT_BGR888_1X24 ||
|
||||
bus_format == MEDIA_BUS_FMT_RGB888_3X8 ||
|
||||
bus_format == MEDIA_BUS_FMT_RGB888_DUMMY_4X8)
|
||||
return true;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user