From patchwork Mon Feb 24 22:20:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 3712121 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 467CDBF13A for ; Mon, 24 Feb 2014 22:20:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 80C0920154 for ; Mon, 24 Feb 2014 22:20:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A04A020121 for ; Mon, 24 Feb 2014 22:20:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DA4F4FAA18; Mon, 24 Feb 2014 14:20:22 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yh0-f44.google.com (mail-yh0-f44.google.com [209.85.213.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 9839DFA268 for ; Mon, 24 Feb 2014 14:20:18 -0800 (PST) Received: by mail-yh0-f44.google.com with SMTP id f73so6030791yha.31 for ; Mon, 24 Feb 2014 14:20:17 -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; bh=Pfbj183T87RHJ8ldND09OugMjtSDT82gt2dOuS0zn4Q=; b=NTX89v1bUlAjsKAmqTuOIqljMeRc2wD8ZirT+6PlY0VH6CtMWNU4k5kXD6mT45+4ju f0PWVAiqJ+SpO9Q0j50ZWqeHGfNWpjDgZEVwA5i7IuBlJqz4Ol4XEsrRslrsGrI16n1F yTp1r9oO8miA2bzFU4JvRT+Tkbw9lLQDWjSR60laFLJKXwZQPOO8GyXw8Zo6lReD+wBx GP4jjx6SfIYb+wHkiH78w5oNjLXdJA7PL3nv/gtD6+DWj5P4LDRdZcnowLE2/MYIgR9X +9lKwnsxeDM5p2qLAP3SpXhAqrlIlvVKlHqxG5DEblXeCSQ2gejD5ZeBIzO8dcdZ9Cod NUTQ== X-Gm-Message-State: ALoCoQkvFJV4m+KraJH181zC5tRHLcZP4kQF5iWWNcYmcABAGgDxnqBP2cLfQplXz4i3qRLoW2Va X-Received: by 10.236.96.201 with SMTP id r49mr1472201yhf.33.1393280416194; Mon, 24 Feb 2014 14:20:16 -0800 (PST) Received: from dsd-ubuntu.endlessm-sf.com ([190.181.151.130]) by mx.google.com with ESMTPSA id n4sm1833900yhc.13.2014.02.24.14.20.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 14:20:15 -0800 (PST) From: Daniel Drake To: airlied@linux.ie Subject: [PATCH] video: hdmi: request underscan by default Date: Mon, 24 Feb 2014 16:20:04 -0600 Message-Id: <1393280404-9066-1-git-send-email-drake@endlessm.com> X-Mailer: git-send-email 1.8.3.2 Cc: mjg59@srcf.ucam.org, treding@nvidia.com, dri-devel@lists.freedesktop.org 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: , MIME-Version: 1.0 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 --- drivers/video/hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index 9e758a8..6c2d924 100644 --- a/drivers/video/hdmi.c +++ b/drivers/video/hdmi.c @@ -54,6 +54,7 @@ int hdmi_avi_infoframe_init(struct hdmi_avi_infoframe *frame) frame->type = HDMI_INFOFRAME_TYPE_AVI; frame->version = 2; frame->length = HDMI_AVI_INFOFRAME_SIZE; + frame->scan_mode = HDMI_SCAN_MODE_UNDERSCAN; return 0; }