diff options
author | Maxime Ripard <maxime@cerno.tech> | 2022-02-22 17:40:40 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-03-24 13:44:00 +0100 |
commit | f785dcfc596c378a19af01a6a337b8b67e5e4534 (patch) | |
tree | 51bee031d4738d8583903d8c9d484ffbc8c41a7d /drivers/gpu/drm/vc4/vc4_hdmi.h | |
parent | 15a809211a6971cac5262c309aeadddc158c64d9 (diff) | |
download | linux-f785dcfc596c378a19af01a6a337b8b67e5e4534.tar.gz linux-f785dcfc596c378a19af01a6a337b8b67e5e4534.tar.bz2 linux-f785dcfc596c378a19af01a6a337b8b67e5e4534.zip |
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
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_hdmi.h')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_hdmi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.h b/drivers/gpu/drm/vc4/vc4_hdmi.h index 37a87d7e167a..cb744bc5489b 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.h +++ b/drivers/gpu/drm/vc4/vc4_hdmi.h @@ -216,6 +216,11 @@ struct vc4_hdmi { * the scrambler on? Protected by @mutex. */ bool scdc_enabled; + + /** + * @output_bpc: BPC currently being used. Protected by @mutex. + */ + unsigned int output_bpc; }; static inline struct vc4_hdmi * |