[PATCH 3/7] drm/edid: Allow to ignore the HDMI monitor mode

Jani Nikula jani.nikula at linux.intel.com
Mon Mar 4 15:48:22 UTC 2019


On Mon, 04 Mar 2019, Maxime Ripard <maxime.ripard at bootlin.com> wrote:
> Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
> ---
>  drivers/gpu/drm/drm_edid.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> index c0258b011bb2..2f6df10ed9f1 100644
> --- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -4156,6 +4156,11 @@ int drm_av_sync_delay(struct drm_connector *connector,
>  }
>  EXPORT_SYMBOL(drm_av_sync_delay);
>  
> +static bool force_dvi_monitor = false;
> +module_param(force_dvi_monitor, bool, 0644);
> +MODULE_PARM_DESC(force_dvi_monitor,
> +		 "Ignore the EDID and always consider the monitor as DVI instead of HDMI");
> +

Same reply as with patch 2/7.

BR,
Jani.

>  /**
>   * drm_detect_hdmi_monitor - detect whether monitor is HDMI
>   * @edid: monitor EDID information
> @@ -4170,6 +4175,9 @@ bool drm_detect_hdmi_monitor(struct edid *edid)
>  	int i;
>  	int start_offset, end_offset;
>  
> +	if (force_dvi_monitor)
> +		return false;
> +
>  	edid_ext = drm_find_cea_extension(edid);
>  	if (!edid_ext)
>  		return false;

-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the dri-devel mailing list