mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
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>
This commit is contained in:
committed by
Dom Cobley
parent
49c23e151d
commit
9916ddd853
@@ -388,7 +388,9 @@ static const struct drm_prop_enum_list legacy_tv_mode_names[] = {
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user