From patchwork Wed Mar 2 17:16:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 8484141 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 121DFC0554 for ; Wed, 2 Mar 2016 17:17:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E10E20122 for ; Wed, 2 Mar 2016 17:17:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8DCD620148 for ; Wed, 2 Mar 2016 17:17:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753879AbcCBRRK (ORCPT ); Wed, 2 Mar 2016 12:17:10 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34189 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753504AbcCBRRJ (ORCPT ); Wed, 2 Mar 2016 12:17:09 -0500 Received: by mail-wm0-f66.google.com with SMTP id p65so10758756wmp.1; Wed, 02 Mar 2016 09:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=HVxSMLB99HQre9sIbsUyl5/JdIMWb0U6RrWHd/b6beY=; b=QnVGHclYShUxvEZ4hFjNa07AwJVZwlR+hr09mpZjgK20kSEktdtCmib1AO7ZeK/ROB VG/UCDdYUDpJ2qWMa9mkOqlcv3CnNixPY9W8h3YRHKXj4a/Qq0ftLv0alTeofeMaQw98 ka0trUJNg0/HTzd7Px7bwP7wbJ1oTIYb87XbbJzNIUZcJMVr6g8MANjhMOZHfiK0I2+c o2bdnVwoJnTHNWZ4Y0+07TeKbYXXGmwEg6bUVYufJPLiLSqnBnG8C9MWDhB2OKWKlJy7 2X1pU8q154Xar1xEsBTTuxXv3iOFDI5z6lorjOJnECrpH7bDeTiRg3qYIWCqiXAnxGtP NoUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=HVxSMLB99HQre9sIbsUyl5/JdIMWb0U6RrWHd/b6beY=; b=Uvoe3VptCtOftRqglECPrSwgVook5TA2oEwlesAv+4FL3tGujJSDUGxCKVKGNNFnHD /BMpQFM6OU9GXPpWeAn+tw7S8CStRgcd9c+qwhG/Hmhae97bwDMnoQtQaoE+MwpN3InP 3PrWwUJ6EZto+8ANPG3WU0QjxdpPJCDC4zp/7qkhDT3iZACIGeL+CoYoOZAOpCs1raHG 1yZzHIWOvlpoFF/ceqni69wBWbUl4PEaIYdoL/TQTeW0LZGeMSJT9jSo4gFWTKQj5SaI N/ldEY58J9X7sKLk+3pM9Y1EhqCdaM++ngRCOEx/MN3/bqo+R8M1t/UMz4kcHzaluCjm C/9w== X-Gm-Message-State: AD7BkJLOmJUiGtkfD9v3DzJrfjmUB1ZG10JaPVS38d51hHkHmOoNgeGybu+t9GUviAu01w== X-Received: by 10.28.49.69 with SMTP id x66mr987366wmx.11.1456939027880; Wed, 02 Mar 2016 09:17:07 -0800 (PST) Received: from groucho.site (ip9234e209.dynamic.kabel-deutschland.de. [146.52.226.9]) by smtp.gmail.com with ESMTPSA id ka7sm36741410wjb.8.2016.03.02.09.17.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Mar 2016 09:17:07 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com, niklas.soderlund@ragnatech.se Cc: linux-media@vger.kernel.org, magnus.damm@gmail.com, hans.verkuil@cisco.com, ian.molton@codethink.co.uk, lars@metafoo.de, william.towle@codethink.co.uk, Ulrich Hecht Subject: [PATCH v2 7/9] media: rcar-vin: initialize EDID data Date: Wed, 2 Mar 2016 18:16:35 +0100 Message-Id: <1456938997-29971-8-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1456938997-29971-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1456938997-29971-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Initializes the decoder subdevice with a fixed EDID blob. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-dma.c | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-dma.c b/drivers/media/platform/rcar-vin/rcar-dma.c index 4596eda..f5d93bc 100644 --- a/drivers/media/platform/rcar-vin/rcar-dma.c +++ b/drivers/media/platform/rcar-vin/rcar-dma.c @@ -1070,6 +1070,41 @@ error: return ret; } +static u8 edid[256] = { + 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, + 0x48, 0xAE, 0x9C, 0x27, 0x00, 0x00, 0x00, 0x00, + 0x19, 0x12, 0x01, 0x03, 0x80, 0x00, 0x00, 0x78, + 0x0E, 0x00, 0xB2, 0xA0, 0x57, 0x49, 0x9B, 0x26, + 0x10, 0x48, 0x4F, 0x2F, 0xCF, 0x00, 0x31, 0x59, + 0x45, 0x59, 0x61, 0x59, 0x81, 0x99, 0x01, 0x01, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3A, + 0x80, 0x18, 0x71, 0x38, 0x2D, 0x40, 0x58, 0x2C, + 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, + 0x00, 0x00, 0x00, 0xFD, 0x00, 0x31, 0x55, 0x18, + 0x5E, 0x11, 0x00, 0x0A, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x43, + 0x20, 0x39, 0x30, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, + 0x0A, 0x0A, 0x0A, 0x0A, 0x00, 0x00, 0x00, 0x10, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x68, + 0x02, 0x03, 0x1a, 0xc0, 0x48, 0xa2, 0x10, 0x04, + 0x02, 0x01, 0x21, 0x14, 0x13, 0x23, 0x09, 0x07, + 0x07, 0x65, 0x03, 0x0c, 0x00, 0x10, 0x00, 0xe2, + 0x00, 0x2a, 0x01, 0x1d, 0x00, 0x80, 0x51, 0xd0, + 0x1c, 0x20, 0x40, 0x80, 0x35, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x1e, 0x8c, 0x0a, 0xd0, 0x8a, + 0x20, 0xe0, 0x2d, 0x10, 0x10, 0x3e, 0x96, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd7 +}; + int rvin_dma_on(struct rvin_dev *vin) { struct v4l2_subdev *sd; @@ -1159,6 +1194,17 @@ int rvin_dma_on(struct rvin_dev *vin) v4l2_info(&vin->v4l2_dev, "Device registered as /dev/video%d\n", vin->vdev.num); + { + struct v4l2_subdev_edid rvin_edid = { + .pad = 0, + .start_block = 0, + .blocks = 2, + .edid = edid, + }; + v4l2_subdev_call(sd, pad, set_edid, + &rvin_edid); + } + remove_device: rvin_remove_device(vin);