]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 13:02:55 +0000 (14:02 +0100)
commit9fe421bc9c2631f0c1c34dfa1133b1aff144ecfb
tree5100f4d1f3f28430037fa4d0ae3987ac2ac8699c
parentf1390e404e46fd641fae920af5f02ae7f2ba29f6
drm: bridge: dw_hdmi: fix preference of RGB modes over YUV420

[ Upstream commit d3d6b1bf85aefe0ebc0624574b3bb62f0693914c ]

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: 6c3c719936da ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 807a01a3297947074543016320255076efcec3d2)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c