drm/vc4: hdmi: Take bpp into account for the scrambler
authorMaxime Ripard <maxime@cerno.tech>
Fri, 10 Dec 2021 14:00:04 +0000 (15:00 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:35 +0000 (16:04 +0000)
commit7bc19b54ac30defbd5e47726683cddfcee407619
tree40f8cbff6f3f0a80d8a07a49fce25920318f74e2
parent62a807d2d31dff8f742bd363750aae5efcee4cd4
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>
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h