All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/edid: request HDMI underscan by default
@ 2014-02-27 15:19 Daniel Drake
  2014-02-27 15:42 ` Ville Syrjälä
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Drake @ 2014-02-27 15:19 UTC (permalink / raw)
  To: airlied; +Cc: mjg59, dri-devel, treding

Working with HDMI TVs is a real pain as they tend to overscan by
default, meaning that the pixels around the edge of the framebuffer
are not displayed. This is well explained here:
http://mjg59.dreamwidth.org/8705.html

There is a bit in the HDMI info frame that can request that the
remote display shows the full pixel data ("underscan"). For the
remote display, the HDMI spec states that this is optional - it
doesn't have to listen. That means that most TVs will probably ignore
this.

But, maybe there are a handful of TVs for which this would help
the situation. As we live in a digital world, ask the remote
display not to overscan by default.

Signed-off-by: Daniel Drake <drake@endlessm.com>
---
 drivers/gpu/drm/drm_edid.c | 1 +
 1 file changed, 1 insertion(+)

Replaces the patch titled "video: hdmi: request underscan by default"
This version moves the change to the DRM layer, as requested by
Ville Syrjälä.

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index b924306..f8d8a1d 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -3599,6 +3599,7 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame,
 
 	frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE;
 	frame->active_aspect = HDMI_ACTIVE_ASPECT_PICTURE;
+	frame->scan_mode = HDMI_SCAN_MODE_UNDERSCAN;
 
 	return 0;
 }
-- 
1.8.3.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/edid: request HDMI underscan by default
  2014-02-27 15:19 [PATCH] drm/edid: request HDMI underscan by default Daniel Drake
@ 2014-02-27 15:42 ` Ville Syrjälä
  2014-02-27 15:49   ` Damien Lespiau
  0 siblings, 1 reply; 4+ messages in thread
From: Ville Syrjälä @ 2014-02-27 15:42 UTC (permalink / raw)
  To: Daniel Drake; +Cc: mjg59, dri-devel, treding

On Thu, Feb 27, 2014 at 09:19:30AM -0600, Daniel Drake wrote:
> Working with HDMI TVs is a real pain as they tend to overscan by
> default, meaning that the pixels around the edge of the framebuffer
> are not displayed. This is well explained here:
> http://mjg59.dreamwidth.org/8705.html
> 
> There is a bit in the HDMI info frame that can request that the
> remote display shows the full pixel data ("underscan"). For the
> remote display, the HDMI spec states that this is optional - it
> doesn't have to listen. That means that most TVs will probably ignore
> this.
> 
> But, maybe there are a handful of TVs for which this would help
> the situation. As we live in a digital world, ask the remote
> display not to overscan by default.
> 
> Signed-off-by: Daniel Drake <drake@endlessm.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  drivers/gpu/drm/drm_edid.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> Replaces the patch titled "video: hdmi: request underscan by default"
> This version moves the change to the DRM layer, as requested by
> Ville Syrjälä.
> 
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> index b924306..f8d8a1d 100644
> --- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -3599,6 +3599,7 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame,
>  
>  	frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE;
>  	frame->active_aspect = HDMI_ACTIVE_ASPECT_PICTURE;
> +	frame->scan_mode = HDMI_SCAN_MODE_UNDERSCAN;
>  
>  	return 0;
>  }
> -- 
> 1.8.3.2

-- 
Ville Syrjälä
Intel OTC

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/edid: request HDMI underscan by default
  2014-02-27 15:42 ` Ville Syrjälä
@ 2014-02-27 15:49   ` Damien Lespiau
  2014-03-03 17:58     ` Daniel Vetter
  0 siblings, 1 reply; 4+ messages in thread
From: Damien Lespiau @ 2014-02-27 15:49 UTC (permalink / raw)
  To: Ville Syrjälä; +Cc: mjg59, dri-devel, Daniel Drake, treding

On Thu, Feb 27, 2014 at 05:42:36PM +0200, Ville Syrjälä wrote:
> On Thu, Feb 27, 2014 at 09:19:30AM -0600, Daniel Drake wrote:
> > Working with HDMI TVs is a real pain as they tend to overscan by
> > default, meaning that the pixels around the edge of the framebuffer
> > are not displayed. This is well explained here:
> > http://mjg59.dreamwidth.org/8705.html
> > 
> > There is a bit in the HDMI info frame that can request that the
> > remote display shows the full pixel data ("underscan"). For the
> > remote display, the HDMI spec states that this is optional - it
> > doesn't have to listen. That means that most TVs will probably ignore
> > this.
> > 
> > But, maybe there are a handful of TVs for which this would help
> > the situation. As we live in a digital world, ask the remote
> > display not to overscan by default.
> > 
> > Signed-off-by: Daniel Drake <drake@endlessm.com>
> 
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

As a small note, I never managed to find a TV (out of the 2 I have
around) that honour that flag, which is why I haven't pushed that patch
before. I also had the hope that we could automatically overscan with
the right amount at some point (with some sort of database) and with
that flag set, we don't know if the sink is overscanning or not, but
then I guess we could include whether the TV honour in that flag in a db
as well.

In any case, I echo the review:

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>

-- 
Damien

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/edid: request HDMI underscan by default
  2014-02-27 15:49   ` Damien Lespiau
@ 2014-03-03 17:58     ` Daniel Vetter
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Vetter @ 2014-03-03 17:58 UTC (permalink / raw)
  To: Damien Lespiau; +Cc: mjg59, treding, dri-devel, Daniel Drake

On Thu, Feb 27, 2014 at 03:49:10PM +0000, Damien Lespiau wrote:
> On Thu, Feb 27, 2014 at 05:42:36PM +0200, Ville Syrjälä wrote:
> > On Thu, Feb 27, 2014 at 09:19:30AM -0600, Daniel Drake wrote:
> > > Working with HDMI TVs is a real pain as they tend to overscan by
> > > default, meaning that the pixels around the edge of the framebuffer
> > > are not displayed. This is well explained here:
> > > http://mjg59.dreamwidth.org/8705.html
> > > 
> > > There is a bit in the HDMI info frame that can request that the
> > > remote display shows the full pixel data ("underscan"). For the
> > > remote display, the HDMI spec states that this is optional - it
> > > doesn't have to listen. That means that most TVs will probably ignore
> > > this.
> > > 
> > > But, maybe there are a handful of TVs for which this would help
> > > the situation. As we live in a digital world, ask the remote
> > > display not to overscan by default.
> > > 
> > > Signed-off-by: Daniel Drake <drake@endlessm.com>
> > 
> > Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> As a small note, I never managed to find a TV (out of the 2 I have
> around) that honour that flag, which is why I haven't pushed that patch
> before. I also had the hope that we could automatically overscan with
> the right amount at some point (with some sort of database) and with
> that flag set, we don't know if the sink is overscanning or not, but
> then I guess we could include whether the TV honour in that flag in a db
> as well.
> 
> In any case, I echo the review:
> 
> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>

Applied to my topic/core-stuff grab-bag branch, thanks for patch&review.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-03 17:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-27 15:19 [PATCH] drm/edid: request HDMI underscan by default Daniel Drake
2014-02-27 15:42 ` Ville Syrjälä
2014-02-27 15:49   ` Damien Lespiau
2014-03-03 17:58     ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.