Skip to content

Commit ad86202

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 fc77eec commit ad86202

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
@@ -388,7 +388,9 @@ static const struct drm_prop_enum_list legacy_tv_mode_names[] = {
388388
static enum drm_connector_tv_mode
389389
vc4_vec_get_default_mode(struct drm_connector *connector)
390390
{
391-
if (vc4_vec_tv_norm) {
391+
if (connector->cmdline_mode.tv_mode_specified) {
392+
return connector->cmdline_mode.tv_mode;
393+
} else if (vc4_vec_tv_norm) {
392394
int ret;
393395

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

0 commit comments

Comments
 (0)