drm/vc4: hdmi: Take bpp into account for the scrambler
authorMaxime Ripard <maxime@cerno.tech>
Tue, 22 Feb 2022 16:40:40 +0000 (17:40 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 24 Mar 2022 12:44:00 +0000 (13:44 +0100)
commitf785dcfc596c378a19af01a6a337b8b67e5e4534
tree51bee031d4738d8583903d8c9d484ffbc8c41a7d
parent15a809211a6971cac5262c309aeadddc158c64d9
drm/vc4: hdmi: Take bpp into account for the scrambler

The current code only base its decision for whether the scrambler must be
enabled or not on the pixel clock of the mode, but doesn't take the bits
per color into account.

Let's leverage the new function to compute the clock rate in the
scrambler setup code.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220222164042.403112-6-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h