mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
From 203bf695e56bd982ec01601a105d7e2fe472ec66 Mon Sep 17 00:00:00 2001
|
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
Date: Wed, 28 May 2025 11:16:47 +0000
|
|
Subject: [PATCH 48/50] Revert "drm/meson: Use 1000ULL when operating with
|
|
mode->clock"
|
|
|
|
This reverts commit eb0851e14432f3b87c77b704c835ac376deda03a.
|
|
---
|
|
drivers/gpu/drm/meson/meson_encoder_hdmi.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/gpu/drm/meson/meson_encoder_hdmi.c b/drivers/gpu/drm/meson/meson_encoder_hdmi.c
|
|
index c08fa93e50a3..7752d8ac85f0 100644
|
|
--- a/drivers/gpu/drm/meson/meson_encoder_hdmi.c
|
|
+++ b/drivers/gpu/drm/meson/meson_encoder_hdmi.c
|
|
@@ -75,7 +75,7 @@ static void meson_encoder_hdmi_set_vclk(struct meson_encoder_hdmi *encoder_hdmi,
|
|
unsigned long long venc_freq;
|
|
unsigned long long hdmi_freq;
|
|
|
|
- vclk_freq = mode->clock * 1000ULL;
|
|
+ vclk_freq = mode->clock * 1000;
|
|
|
|
/* For 420, pixel clock is half unlike venc clock */
|
|
if (encoder_hdmi->output_bus_fmt == MEDIA_BUS_FMT_UYYVYY8_0_5X24)
|
|
@@ -123,7 +123,7 @@ static enum drm_mode_status meson_encoder_hdmi_mode_valid(struct drm_bridge *bri
|
|
struct meson_encoder_hdmi *encoder_hdmi = bridge_to_meson_encoder_hdmi(bridge);
|
|
struct meson_drm *priv = encoder_hdmi->priv;
|
|
bool is_hdmi2_sink = display_info->hdmi.scdc.supported;
|
|
- unsigned long long clock = mode->clock * 1000ULL;
|
|
+ unsigned long long clock = mode->clock * 1000;
|
|
unsigned long long phy_freq;
|
|
unsigned long long vclk_freq;
|
|
unsigned long long venc_freq;
|
|
--
|
|
2.34.1
|
|
|