From patchwork Thu Feb 27 15:19:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 3733931 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3C038BF13A for ; Thu, 27 Feb 2014 15:19:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6BC4D20219 for ; Thu, 27 Feb 2014 15:19:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2B8E32011E for ; Thu, 27 Feb 2014 15:19:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C290EFB7A4; Thu, 27 Feb 2014 07:19:45 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yk0-f174.google.com (mail-yk0-f174.google.com [209.85.160.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 576CDFB7AC for ; Thu, 27 Feb 2014 07:19:43 -0800 (PST) Received: by mail-yk0-f174.google.com with SMTP id 20so6969816yks.5 for ; Thu, 27 Feb 2014 07:19:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=9cww5SPgPHc2mt7/xJ25igZONP9X355cG7d+xr3z/pg=; b=DvwpX0+XROEJKzEUEOLi33nSpmFpMykpQ8YZld3HCbCfy1L/zEYeOnsfAIzOOnGbiJ p5tndN5NzI3UYRquQjBLSUNHFsEccU9v0a7qszLXO8o7tvhRNfCjtjyNwLDvT5C1jPbE cnIjCIFhHuMT3Hxnllbh1yJjt6H4MdLNWOPGUPbKiHvFLybDXm7ebqCoSHG+/TKdF+k5 UdZLUW/nCI1TXr5IJHQpFblB/MWA/wnOcJkEACKapqj4CKLxrPpLmB3vFUoL5sq/ZSqg Xeru21+ew7yJkHPe8n5eE/Hf6Cs/WZbNukA4fUDe/9xEsDbTNUdtuIlzraTj9fWT2jBd WWSg== X-Gm-Message-State: ALoCoQm7mn2EWDpJGrV2KHt4sw/2UvYBQekFva0gX678kV5k7XmeuhicWPVQSQok4AGdivxGZaAW X-Received: by 10.236.86.1 with SMTP id v1mr15623585yhe.1.1393514380747; Thu, 27 Feb 2014 07:19:40 -0800 (PST) Received: from dsd-ubuntu.endlessm-sf.com ([190.181.183.88]) by mx.google.com with ESMTPSA id e5sm14538466yhj.14.2014.02.27.07.19.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Feb 2014 07:19:40 -0800 (PST) From: Daniel Drake To: airlied@linux.ie Subject: [PATCH] drm/edid: request HDMI underscan by default Date: Thu, 27 Feb 2014 09:19:30 -0600 Message-Id: <1393514370-27548-1-git-send-email-drake@endlessm.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 Cc: mjg59@srcf.ucam.org, dri-devel@lists.freedesktop.org, treding@nvidia.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Ville Syrjälä Reviewed-by: Damien Lespiau --- 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; }