]> 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)
commit7aecb77dd7a9095f4ed8fbca3b12353285761243
tree51bee031d4738d8583903d8c9d484ffbc8c41a7d
parentad3a58da299ca6716ed684e9216042c0bce5574f
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