From patchwork Wed Feb 17 15:48:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 8340631 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 5E84CC0554 for ; Wed, 17 Feb 2016 15:49:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BA96920376 for ; Wed, 17 Feb 2016 15:49:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C787203F3 for ; Wed, 17 Feb 2016 15:49:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161720AbcBQPtV (ORCPT ); Wed, 17 Feb 2016 10:49:21 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37526 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161621AbcBQPtS (ORCPT ); Wed, 17 Feb 2016 10:49:18 -0500 Received: by mail-wm0-f41.google.com with SMTP id g62so34220374wme.0; Wed, 17 Feb 2016 07:49:17 -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=XuP4GTQkYIbT2iJWkQGcaaGSD7GugCJ7qnX6nXcEIqQ=; b=Poclb/pziENFJeWf6hDZVHEZIlmKqWX1jjy9VfA+8/P0ibHCL9agVWiLVvTRGHfRdo iFSXv2oaZ/E7FP0VqwazM2gS3L5uTX3n5a3KX4cgVAjQav5ZrtcNe3n9hMupi0HlxIrd Zviuds+yUW1849syPkEmC3sML0drrmATqRBrZRPHkRRcKYR6DeuiiKb4oOycz2S3MkgI z5Fwfv0U2JFq2gvlkbfbdwZGy3iRo303M2SbND1Tn8KkO7VdWD/O71jj7znj55ZUz6za zKOb2/6Mmm08Vum/S+i8zlmHWjipzLusd1jtURfgslvE+s2WcYvJ/3DCCmelqShSCli/ xv6w== 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=XuP4GTQkYIbT2iJWkQGcaaGSD7GugCJ7qnX6nXcEIqQ=; b=ORYTXo+7Bd3Fcb5AXwfdS9b90lmA+sBSkGT22Ip2o/iV7zmuuhE5L4Wo8sopemV/On wznuYGNsiVPuTimPBC187WQvlfgceqVJQU68gmDx8m+1mCjBMtRdq1Lo/+e6M+ZRPDZo sug95H0Ge/mkJxg3vf7X+5ORZUdsMTALXCUdVu5zS/Wm+uqv5QrIUjqaoZDcEJHAYSWT oLmwHn97HAIuXWd5FekqE9ZsYUxRoxqE+muGPUawg41IRyCgfW5FDJAGtEFQLseDi22O oQ01YpgImTUVI6hszpeUuHi4LpdwbKTEmObqnAbVXtv2mYYQeo3kQUZeQEGBit46amPi jh3g== X-Gm-Message-State: AG10YOTplSGM7wG64Q2tAiwJhyTojZR2hlnwdaZKy+Zz0ad1Zppph1NsV9l7gGrKjnYwyA== X-Received: by 10.28.137.148 with SMTP id l142mr22077292wmd.40.1455724156807; Wed, 17 Feb 2016 07:49:16 -0800 (PST) Received: from groucho.site (ip9234e209.dynamic.kabel-deutschland.de. [146.52.226.9]) by smtp.gmail.com with ESMTPSA id u4sm2136725wjz.4.2016.02.17.07.49.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Feb 2016 07:49:15 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, niklas.soderlund@ragnatech.se Cc: linux-media@vger.kernel.org, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, hans.verkuil@cisco.com, ian.molton@codethink.co.uk, lars@metafoo.de, william.towle@codethink.co.uk, Ulrich Hecht Subject: [PATCH/RFC 7/9] media: rcar-vin: initialize EDID data Date: Wed, 17 Feb 2016 16:48:43 +0100 Message-Id: <1455724125-13004-8-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1455724125-13004-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1455724125-13004-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 d40b39b..4f93a3d 100644 --- a/drivers/media/platform/rcar-vin/rcar-dma.c +++ b/drivers/media/platform/rcar-vin/rcar-dma.c @@ -953,6 +953,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; @@ -1029,6 +1064,17 @@ int rvin_dma_on(struct rvin_dev *vin) vin->format.field = mf->field; } + { + 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);