[Intel-gfx] [PATCH] drmmode_output_get_modes: Replace existing EDID property blob with new one

Zhenyu Wang zhenyuw at linux.intel.com
Wed Jul 22 03:51:46 CEST 2009


On 2009.07.21 12:38:01 -0700, Keith Packard wrote:
> This synchronizes the X EDID data with the kernel EDID data each time the
> kernel data may have changed. Otherwise, X ends up stuck with the first EDID
> data it sees, failing to accomodate to different monitors.
> 
> Signed-off-by: Keith Packard <keithp at keithp.com>
> ---
>  src/drmmode_display.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index df10fb5..bb239ed 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -641,8 +641,7 @@ drmmode_output_get_modes(xf86OutputPtr output)
>  		if (!props || !(props->flags & DRM_MODE_PROP_BLOB))
>  			continue;
>  
> -		if (!strcmp(props->name, "EDID") &&
> -		    drmmode_output->edid_blob == NULL) {
> +		if (!strcmp(props->name, "EDID")) {
>  			drmModeFreePropertyBlob(drmmode_output->edid_blob);
>  			drmmode_output->edid_blob =
>  				drmModeGetPropertyBlob(drmmode->fd,

Look nice to me.

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090722/883bbbd3/attachment.sig>


More information about the Intel-gfx mailing list