drm/vc4: hdmi: Update all the planes if the TV margins are changed
authorMaxime Ripard <maxime@cerno.tech>
Mon, 6 Mar 2023 10:46:43 +0000 (11:46 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 25 Apr 2023 07:32:25 +0000 (09:32 +0200)
commitbb1b6094c099668e21b1b47c9327c01f5c395997
treef083e3b3257a43cbb0260429ef00d687326550e5
parent5a46e490e47e4d821c382288108f193fc88a9282
drm/vc4: hdmi: Update all the planes if the TV margins are changed

On VC4, the TV margins on the HDMI connector are implemented by scaling
the planes.

However, if only the TV margins or the connector are changed by a new
state, the planes ending up on that connector won't be. Thus, they won't
be updated properly and we'll effectively ignore that change until the
next commit affecting these planes.

Let's make sure to add all the planes attached to the connector so that
we can update them properly.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-2-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c