From patchwork Wed Feb 15 09:33:31 2017
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philipp Zabel
X-Patchwork-Id: 9573655
Return-Path:
Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org
[172.30.200.125])
by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id
BEAC1601D8 for ;
Wed, 15 Feb 2017 09:35:21 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC61B2841A
for ;
Wed, 15 Feb 2017 09:35:21 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id A0E1C28462; Wed, 15 Feb 2017 09:35:21 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
pdx-wl-mail.web.codeaurora.org
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID autolearn=unavailable version=3.3.1
Received: from bombadil.infradead.org (bombadil.infradead.org
[65.50.211.133])
(using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2636D2841A
for ;
Wed, 15 Feb 2017 09:35:21 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.infradead.org; s=bombadil.20170209; h=Sender:
Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:
List-Archive:List-Unsubscribe:List-Id:Mime-Version:References:In-Reply-To:
Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description:
Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
List-Owner; bh=ypwo1LTScSqh6tWbm0eIdZ8lbSupAwRMGn3BDXTVa9g=;
b=q2Tl/L9lkydq6U
EBBNwbTflwHUNJSpsIQhYIEIVVv41rBZqg58mmWVA4xQZSoYGSbm/vog1BiHB96DRiJ93bV0bC+bq
Sg49JME6oJT9OL7mgzek32NRA9vkbAt6AgTlKCq3wMqtvY4TxE4J+0FYIHmGFZ1evcfSf01caue4o
I/THMGXmIjwn7eQNW6D0QAiHeG+IbCX6djr2Jcu5St71Z82+gOuBab3lT3mrAwcc87MhHYYPoMW8h
zkSfRwJWC5CRFBVC47WiAhshSTGxda6d1qjztRO0s0Jfypbw9TvlkgG12Vgl7ez4rfKICQ+yncmE5
M9JqpJ9O0ADhOXvgeaNA==;
Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))
id 1cdvza-00071b-79; Wed, 15 Feb 2017 09:35:18 +0000
Received: from metis.ext.pengutronix.de
([2001:67c:670:201:290:27ff:fe1d:cc33])
by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))
id 1cdvz6-0002R1-5F for linux-arm-kernel@lists.infradead.org;
Wed, 15 Feb 2017 09:35:02 +0000
Received: from lupine.hi.pengutronix.de
([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine)
by metis.ext.pengutronix.de with esmtp (Exim 4.84_2)
(envelope-from )
id 1cdvxz-0007j6-Cz; Wed, 15 Feb 2017 10:33:39 +0100
Message-ID: <1487151211.2433.21.camel@pengutronix.de>
Subject: Re: [PATCH v3 00/24] i.MX Media Driver
From: Philipp Zabel
To: Steve Longerbeam
Date: Wed, 15 Feb 2017 10:33:31 +0100
In-Reply-To:
References: <1483755102-24785-1-git-send-email-steve_longerbeam@mentor.com>
<1485870854.2932.63.camel@pengutronix.de>
X-Mailer: Evolution 3.12.9-1+b1
Mime-Version: 1.0
X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17
X-SA-Exim-Mail-From: p.zabel@pengutronix.de
X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de);
SAEximRunCond expanded to false
X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20170215_013449_975688_3B678FCF
X-CRM114-Status: GOOD ( 15.47 )
X-BeenThere: linux-arm-kernel@lists.infradead.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id:
List-Unsubscribe:
,
List-Archive:
List-Post:
List-Help:
List-Subscribe:
,
Cc: mark.rutland@arm.com, andrew-ct.chen@mediatek.com,
minghsiu.tsai@mediatek.com, nick@shmanahar.org,
songjun.wu@microchip.com,
hverkuil@xs4all.nl, Steve Longerbeam ,
robert.jarzmik@free.fr, devel@driverdev.osuosl.org,
markus.heiser@darmarIT.de,
laurent.pinchart+renesas@ideasonboard.com, linux@armlinux.org.uk,
geert@linux-m68k.org, linux-media@vger.kernel.org,
devicetree@vger.kernel.org,
arnd@arndb.de, mchehab@kernel.org, bparrot@ti.com, robh+dt@kernel.org,
horms+renesas@verge.net.au, tiffany.lin@mediatek.com,
linux-arm-kernel@lists.infradead.org,
niklas.soderlund+renesas@ragnatech.se,
gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
jean-christophe.trotin@st.com, kernel@pengutronix.de,
fabio.estevam@nxp.com, shawnguo@kernel.org, sudipm.mukherjee@gmail.com
Sender: "linux-arm-kernel"
Errors-To:
linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org
X-Virus-Scanned: ClamAV using ClamSMTP
Hi Steve,
On Tue, 2017-02-14 at 18:27 -0800, Steve Longerbeam wrote:
[...]
> >
> > # Provide an EDID to the HDMI source
> > v4l2-ctl -d /dev/v4l-subdev2 --set-edid=file=edid-1080p.hex
>
> I can probably generate this Intel hex file myself from sysfs
> edid outputs, but for convenience do you mind sending me this
> file? I have a 1080p HDMI source I can plug into the tc358743.
I copied the EDID off of some random 1080p HDMI monitor,
probably using something like:
xxd -g1 /sys/class/drm/card0-HDMI-A-1/edid | cut -c 9-56
----------8<----------
00 ff ff ff ff ff ff 00 09 d1 89 78 45 54 00 00
2a 14 01 03 80 35 1e 78 2e b8 45 a1 59 55 9f 28
0d 50 54 a5 6b 80 81 c0 81 00 81 80 a9 c0 b3 00
d1 c0 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
45 00 13 2a 21 00 00 1e 00 00 00 ff 00 4e 41 41
30 36 32 39 36 53 4c 30 0a 20 00 00 00 fd 00 32
4c 1e 53 11 00 0a 20 20 20 20 20 20 00 00 00 fc
00 42 65 6e 51 20 47 4c 32 34 34 30 48 0a 01 18
02 03 22 f1 4f 90 05 04 03 02 01 11 12 13 14 06
07 15 16 1f 23 09 07 07 65 03 0c 00 10 00 83 01
00 00 02 3a 80 18 71 38 2d 40 58 2c 45 00 13 2a
21 00 00 1f 01 1d 80 18 71 1c 16 20 58 2c 25 00
13 2a 21 00 00 9f 01 1d 00 72 51 d0 1e 20 6e 28
55 00 13 2a 21 00 00 1e 8c 0a d0 8a 20 e0 2d 10
10 3e 96 00 13 2a 21 00 00 18 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 eb
---------->8----------
> The other problem here is that my version of v4l2-ctl, built from
> master branch of git@github.com:gjasny/v4l-utils.git, does not
> support taking a subdev node:
>
> root@mx6q:~# v4l2-ctl -d /dev/v4l-subdev15 --get-edid=format=hex
> VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
> /dev/v4l-subdev15: not a v4l2 node
>
> Is this something you added yourself, or where can I find this version
> of v4l2-ctrl?
Ah right, I still have no proper fix for that. v4l-ctl bails out if it
can't VIDIOC_QUERYCAP, which is an ioctl not supported on subdevices.
I have just patched it out locally:
----------8<----------
---------->8----------
Note that setting the EDID is not necessary if you can force the mode on
your HDMI source.
regards
Philipp
diff --git a/utils/v4l2-ctl/v4l2-ctl.cpp b/utils/v4l2-ctl/v4l2-ctl.cpp
index 886a91d093ae..fa15a49375ae 100644
--- a/utils/v4l2-ctl/v4l2-ctl.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl.cpp
@@ -1214,10 +1214,7 @@ int main(int argc, char **argv)
}
verbose = options[OptVerbose];
- if (doioctl(fd, VIDIOC_QUERYCAP, &vcap)) {
- fprintf(stderr, "%s: not a v4l2 node\n", device);
- exit(1);
- }
+ doioctl(fd, VIDIOC_QUERYCAP, &vcap);
capabilities = vcap.capabilities;
if (capabilities & V4L2_CAP_DEVICE_CAPS)
capabilities = vcap.device_caps;