1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00
openmptcprouter/6.12/target/linux/bcm27xx/patches-6.12/950-0646-drm-vc4-Initialise-the-tv_mode-property-default-from.patch
Ycarus (Yannick Chabanois) bdb9b0046f Add bcm27xx 6.12 test support
2024-12-20 14:17:26 +01:00

28 lines
1 KiB
Diff

From 0eede5695e2078aa2e53ed668106080176f05471 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Thu, 25 Jan 2024 17:27:42 +0000
Subject: [PATCH 646/697] drm/vc4: Initialise the tv_mode property default from
cmdline_mode.
With the command line parser now providing the information about
the tv mode, use that as the preferred choice for initialising the
default of the tv_mode property.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
drivers/gpu/drm/vc4/vc4_vec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/drivers/gpu/drm/vc4/vc4_vec.c
+++ b/drivers/gpu/drm/vc4/vc4_vec.c
@@ -388,7 +388,9 @@ static const struct drm_prop_enum_list l
static enum drm_connector_tv_mode
vc4_vec_get_default_mode(struct drm_connector *connector)
{
- if (vc4_vec_tv_norm) {
+ if (connector->cmdline_mode.tv_mode_specified) {
+ return connector->cmdline_mode.tv_mode;
+ } else if (vc4_vec_tv_norm) {
int ret;
ret = drm_get_tv_mode_from_name(vc4_vec_tv_norm, strlen(vc4_vec_tv_norm));