mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
30 lines
988 B
Diff
30 lines
988 B
Diff
From f285cba93ac9425078740d20456f34c94ad7511c Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Thu, 13 Jan 2022 15:47:23 +0000
|
|
Subject: [PATCH] drm/vc4: hdmi: Fix clock value used for validating
|
|
hdmi modes
|
|
|
|
We are using mode->crt_clock here which is filled by drm_mode_set_crtcinfo()
|
|
which is called right after .mode_valid.
|
|
|
|
Use mode->clock which is valid here.
|
|
|
|
Fixes: 624d93a4f0 ("drm/vc4: hdmi: Move clock calculation into its own function")
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
@@ -1495,7 +1495,7 @@ vc4_hdmi_encoder_compute_mode_clock(cons
|
|
unsigned int bpc,
|
|
enum vc4_hdmi_output_format fmt)
|
|
{
|
|
- unsigned long long clock = mode->crtc_clock * 1000;
|
|
+ unsigned long long clock = mode->clock * 1000;
|
|
|
|
if (mode->flags & DRM_MODE_FLAG_DBLCLK)
|
|
clock = clock * 2;
|