Skip to content

Commit 37f8a42

Browse files
6by9popcornmix
authored andcommitted
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 <[email protected]>
1 parent 0e5684a commit 37f8a42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/vc4/vc4_vec.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ static const struct drm_prop_enum_list legacy_tv_mode_names[] = {
370370
enum drm_connector_tv_mode
371371
vc4_vec_get_default_mode(struct drm_connector *connector)
372372
{
373-
if (vc4_vec_tv_norm) {
373+
if (connector->cmdline_mode.tv_mode_specified) {
374+
return connector->cmdline_mode.tv_mode;
375+
} else if (vc4_vec_tv_norm) {
374376
int ret;
375377

376378
ret = drm_get_tv_mode_from_name(vc4_vec_tv_norm, strlen(vc4_vec_tv_norm));

0 commit comments

Comments
 (0)