drm/sun4i: Fix DE2 YVU handling
authorJernej Skrabec <jernej.skrabec@siol.net>
Tue, 1 Sep 2020 22:03:05 +0000 (00:03 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 4 Sep 2020 09:05:58 +0000 (11:05 +0200)
commit0ee9f600e69d901d31469359287b90bbe8e54553
treeeee7983f8d8610b5f9f1278c4bc73891386586f8
parentf71800228dc74711c3df43854ce7089562a3bc2d
drm/sun4i: Fix DE2 YVU handling

Function sun8i_vi_layer_get_csc_mode() is supposed to return CSC mode
but due to inproper return type (bool instead of u32) it returns just 0
or 1. Colors are wrong for YVU formats because of that.

Fixes: daab3d0e8e2b ("drm/sun4i: de2: csc_mode in de2 format struct is mostly redundant")
Reported-by: Roman Stratiienko <r.stratiienko@gmail.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Tested-by: Roman Stratiienko <r.stratiienko@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20200901220305.6809-1-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun8i_vi_layer.c