]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite023fae0350630d18f931202e4644e2872426297
tree51bee031d4738d8583903d8c9d484ffbc8c41a7d
parent228b1717e7a0eab2c3b5e25cb5bfa3000916c7a0
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