Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp670486imu; Wed, 16 Jan 2019 05:47:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Fmk6zjOHt/iHuMKRTrpsIWLrp+4yL/qEqhilKbtyijPVyKpKhHZcJOEWCQGSlP/Yyws2B X-Received: by 2002:a65:50c1:: with SMTP id s1mr8735040pgp.350.1547646454348; Wed, 16 Jan 2019 05:47:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547646454; cv=none; d=google.com; s=arc-20160816; b=Umf/JTkCYabaXHl9MEyNrWZR2KwqjHHOZwRzMNLm0d9/u5LCxb9soumxTjS59gina0 u8GD1U26CcbHzM/Qfyiy1hT7JIWojJbtA6ANiMGFUpYtthu6yECGVIT1Gl0gDKhc/sZQ hQPhw7qPEQJLfhDxFD+AIs4DbYFXpVrvJ02og4psLY4G018dg/X1HMHO+Fgb18/oI47z hb20HENsjBoPDyu95n7JmluCLFj4H804oEblMWbo/KU42Ji8AZSy8u8FZhu4xVWMj6U3 0dxEQwjgqDRAMFm3llj8K2YwBI8JssDpdZwoON90+H9rQyZ1JlaL7K/b5EQ7ZSsXLwko J5Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0zQGRhHmuQ24eZyF94rspF5Sd1MCXdctQKXRkMo0+80=; b=qZEj5jieB5W8ZueCIp/9jcX0cCVYyqEc2Y0opQhbhJlQKSv9a81A9NDVFRKMyXMi8J J7iSV1QAMH38tPbP/pnwdeKu6M6OwfR96Wu6YafdNGjGZSObUdGGUoZbX6vARYJjTy7c Q5PJWS+9kCs+2bxB30lCBM9JsYpT1fxz5gZsYR46P1UDs72cIHdhRYfA3iJhQigrAPhu 5NWlfcc5JUwxBEKg/iV+d105EV/kEtRlrCfGVZZ/GQPdvWsu5SwOigkAH2KWaDFNt49H WuKKAXNnLTITC658dRVyaZcoI8ZmcUR7BoyQoX3slKIXe9ItxZPVioe5qIgLWIeySs8+ 1K9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=xPdDuYwJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si6102861plz.327.2019.01.16.05.47.18; Wed, 16 Jan 2019 05:47:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=xPdDuYwJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733311AbfAOV6d (ORCPT + 99 others); Tue, 15 Jan 2019 16:58:33 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38198 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733253AbfAOV6c (ORCPT ); Tue, 15 Jan 2019 16:58:32 -0500 Received: by mail-wr1-f65.google.com with SMTP id v13so4735309wrw.5 for ; Tue, 15 Jan 2019 13:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0zQGRhHmuQ24eZyF94rspF5Sd1MCXdctQKXRkMo0+80=; b=xPdDuYwJ4Z0FE3P8gDiR8Y1Lyw9aUsJXSDXAGlT8CdbUWBNRcuJg3Ee1d3i/CvXfk9 byoqLaBV5HDtebbAbCT+7unmByVHJgCyDg7OjmB06LpugPuMtpUmNGSV2hHtf+abqRd1 ef9PJgG32lSvpaA9hfnXnVGwTA1/9jZMiEWi6MQzQtQnwagRPrPlk7CXoPiRmVisTAIm 7jsAiypuVPBW1bV48HU1smwLiULqcYNSbwAF8IqudJgnhD8yVdUZd6naREGYz0ApaG3p wjgX6tOr1fOuH5SWqm/i1p4b/6qjToKUZ8eJbE66SujoVioZGBEBm7IKTlnW2/ZNBRRv 0U4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0zQGRhHmuQ24eZyF94rspF5Sd1MCXdctQKXRkMo0+80=; b=KlTEODF+QSdH3+N/7oKxH7Fo/2zEa6HVpF6yxtHPs8ZlJtuRwWOVqPyFssiWhU6JDJ 8dYUE7Wfm0Pu/hGdINN8c83xFMw/9sWs+bKUvHZBup/38gjJNTX5WqRJ0ZY+xUW7JvBJ cPdF0HgZ71eYQwX+wLElum1zF/LsLDMHICrEGyE2zq7DlT3yy29rarPRMawFGrFCOeem 3wbrADlMOq1Ed/CLLE2+JfExOCzxxhie2hWGOaiii01t16y0t269ErqhjBUB1gNne7Ae 1DdowYt3e2KXBNAoQQamphTq3E9wYSQwQoLXTae4lHNMTPfbu5MbVC4rheO7d+AwMXXe qkBg== X-Gm-Message-State: AJcUukf5tt6qyR81y5rD2gfjozMBB70XmD0ZxFiWfh2Qg/7Bz+N+QA8o bSsU06C4D3DVCSSiHjEEG4bTeaRCM2iU53SpNPV2gg== X-Received: by 2002:a05:6000:108d:: with SMTP id y13mr4653891wrw.135.1547589510093; Tue, 15 Jan 2019 13:58:30 -0800 (PST) MIME-Version: 1.0 References: <20190109183014.20466-1-slongerbeam@gmail.com> <20190109183014.20466-12-slongerbeam@gmail.com> In-Reply-To: <20190109183014.20466-12-slongerbeam@gmail.com> From: Tim Harvey Date: Tue, 15 Jan 2019 13:58:19 -0800 Message-ID: Subject: Re: [PATCH v8 11/11] media: imx.rst: Update doc to reflect fixes to interlaced capture To: Steve Longerbeam Cc: linux-media , Philipp Zabel , Mauro Carvalho Chehab , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 9, 2019 at 10:30 AM Steve Longerbeam wrote: > > Also add an example pipeline for unconverted capture with interweave > on SabreAuto. > > Cleanup some language in various places in the process. > > Signed-off-by: Steve Longerbeam > Reviewed-by: Philipp Zabel > --- > Changes since v4: > - Make clear that it is IDMAC channel that does pixel reordering and > interweave, not the CSI. Caught by Philipp Zabel. > Changes since v3: > - none. > Changes since v2: > - expand on idmac interweave behavior in CSI subdev. > - switch second SabreAuto pipeline example to PAL to give > both NTSC and PAL examples. > - Cleanup some language in various places. > --- > Documentation/media/v4l-drivers/imx.rst | 103 +++++++++++++++--------- > 1 file changed, 66 insertions(+), 37 deletions(-) > > Capture Pipelines > ----------------- > @@ -516,10 +522,33 @@ On the SabreAuto, an on-board ADV7180 SD decoder is connected to the > parallel bus input on the internal video mux to IPU1 CSI0. > > The following example configures a pipeline to capture from the ADV7180 > -video decoder, assuming NTSC 720x480 input signals, with Motion > -Compensated de-interlacing. Pad field types assume the adv7180 outputs > -"interlaced". $outputfmt can be any format supported by the ipu1_ic_prpvf > -entity at its output pad: > +video decoder, assuming NTSC 720x480 input signals, using simple > +interweave (unconverted and without motion compensation). The adv7180 > +must output sequential or alternating fields (field type 'seq-bt' for > +NTSC, or 'alternate'): > + > +.. code-block:: none > + > + # Setup links > + media-ctl -l "'adv7180 3-0021':0 -> 'ipu1_csi0_mux':1[1]" > + media-ctl -l "'ipu1_csi0_mux':2 -> 'ipu1_csi0':0[1]" > + media-ctl -l "'ipu1_csi0':2 -> 'ipu1_csi0 capture':0[1]" > + # Configure pads > + media-ctl -V "'adv7180 3-0021':0 [fmt:UYVY2X8/720x480 field:seq-bt]" > + media-ctl -V "'ipu1_csi0_mux':2 [fmt:UYVY2X8/720x480]" > + media-ctl -V "'ipu1_csi0':2 [fmt:AYUV32/720x480]" > + # Configure "ipu1_csi0 capture" interface (assumed at /dev/video4) > + v4l2-ctl -d4 --set-fmt-video=field=interlaced_bt > + > +Streaming can then begin on /dev/video4. The v4l2-ctl tool can also be > +used to select any supported YUV pixelformat on /dev/video4. > + Hi Steve, I'm testing 4.20 with this patchset on top. I'm on a GW5104 which has an IMX6Q with the adv7180 on ipu1_csi0 like the SabeAuto example above I can't get the simple interveave example to work: media-ctl -r # reset all links # Setup links (ADV7180 IPU1_CSI0) media-ctl -l '"adv7180 2-0020":0 -> "ipu1_csi0_mux":1[1]' media-ctl -l '"ipu1_csi0_mux":2 -> "ipu1_csi0":0[1]' media-ctl -l '"ipu1_csi0":2 -> "ipu1_csi0 capture":0[1]' # /dev/video4 # Configure pads media-ctl -V "'adv7180 2-0020':0 [fmt:UYVY2X8/720x480 field:seq-bt]" media-ctl -V "'ipu1_csi0_mux':2 [fmt:UYVY2X8/720x480]" media-ctl -V "'ipu1_csi0':0 [fmt:AYUV32/720x480]" # Configure 'ipu1_csi0 capture' interface (/dev/video4) v4l2-ctl -d4 --set-fmt-video=field=interlaced_bt # streaming can now begin on the raw capture device node at /dev/video4 v4l2-ctl -d4 --stream-mmap --stream-to=/x.raw --stream-count=1 # capture 1 frame [ 5547.354460] ipu1_csi0: pipeline start failed with -32 VIDIOC_STREAMON: failed: Broken pipe Any ideas what is causing this pipeline failure. > +This example configures a pipeline to capture from the ADV7180 > +video decoder, assuming PAL 720x576 input signals, with Motion > +Compensated de-interlacing. The adv7180 must output sequential or > +alternating fields (field type 'seq-tb' for PAL, or 'alternate'). > +$outputfmt can be any format supported by the ipu1_ic_prpvf entity > +at its output pad: > > .. code-block:: none > > @@ -531,11 +560,11 @@ entity at its output pad: > media-ctl -l "'ipu1_ic_prp':2 -> 'ipu1_ic_prpvf':0[1]" > media-ctl -l "'ipu1_ic_prpvf':1 -> 'ipu1_ic_prpvf capture':0[1]" > # Configure pads > - media-ctl -V "'adv7180 3-0021':0 [fmt:UYVY2X8/720x480]" > - media-ctl -V "'ipu1_csi0_mux':2 [fmt:UYVY2X8/720x480 field:interlaced]" > - media-ctl -V "'ipu1_csi0':1 [fmt:AYUV32/720x480 field:interlaced]" > - media-ctl -V "'ipu1_vdic':2 [fmt:AYUV32/720x480 field:none]" > - media-ctl -V "'ipu1_ic_prp':2 [fmt:AYUV32/720x480 field:none]" > + media-ctl -V "'adv7180 3-0021':0 [fmt:UYVY2X8/720x576 field:seq-tb]" > + media-ctl -V "'ipu1_csi0_mux':2 [fmt:UYVY2X8/720x576]" > + media-ctl -V "'ipu1_csi0':1 [fmt:AYUV32/720x576]" > + media-ctl -V "'ipu1_vdic':2 [fmt:AYUV32/720x576 field:none]" > + media-ctl -V "'ipu1_ic_prp':2 [fmt:AYUV32/720x576 field:none]" > media-ctl -V "'ipu1_ic_prpvf':1 [fmt:$outputfmt field:none]" > > Streaming can then begin on the capture device node at The above motion-compensation example pipeline does now work with this patch series - thanks for addressing this! Regards, Tim