]> git.baikalelectronics.ru Git - kernel.git/commit
drm: bridge: dw_hdmi: fix preference of RGB modes over YUV420
authorGuillaume BRUN <the.cheaterman@gmail.com>
Wed, 16 Nov 2022 14:35:23 +0000 (15:35 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 1 Dec 2022 08:24:04 +0000 (09:24 +0100)
commit9f2b8a1ae5847efd5a23936b0a4904fce5a91a50
tree0854610259a74494e27a0679e9b311ca212493c8
parentef489bf09bbe8bd73853a763ab90af79bf9ce701
drm: bridge: dw_hdmi: fix preference of RGB modes over YUV420

Cheap monitors sometimes advertise YUV modes they don't really have
(HDMI specification mandates YUV support so even monitors without actual
support will often wrongfully advertise it) which results in YUV matches
and user forum complaints of a red tint to light colour display areas in
common desktop environments.

Moving the default RGB fall-back before YUV selection results in RGB
mode matching in most cases, reducing complaints.

Fixes: 8b29f672ca23 ("drm/bridge: synopsys: dw-hdmi: add bus format negociation")
Signed-off-by: Guillaume BRUN <the.cheaterman@gmail.com>
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221116143523.2126-1-the.cheaterman@gmail.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c