drm/sun4i: Fix DE2 YVU handling
authorJernej Skrabec <jernej.skrabec@siol.net>
Tue, 1 Sep 2020 22:03:05 +0000 (00:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:29 +0000 (13:55 +0200)
commite856612eed7eafa5aab579c9ccd0cf203c0781c3
treed9e9aac8610ae61cfa9d365d195146a71d9b6738
parent412bbf8b9a22c8635773a12f08c897b7f91ab6fc
drm/sun4i: Fix DE2 YVU handling

[ Upstream commit 0ee9f600e69d901d31469359287b90bbe8e54553 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/sun4i/sun8i_vi_layer.c