From: Steve Longerbeam <slongerbeam@gmail.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Philipp Zabel <p.zabel@pengutronix.de>,
linux-media <linux-media@vger.kernel.org>
Subject: Re: [PATCH 1/4] media: imx.rst: Fix the MIPI CSI-2 virtual channel
Date: Wed, 8 Apr 2020 12:16:22 -0700 [thread overview]
Message-ID: <a23d2559-5498-75bb-0bce-3bc11bb6b5ae@gmail.com> (raw)
In-Reply-To: <CAOMZO5BN6igxVGRnOnftv=PGZWi=2Qb2Th0fhBon93Fk-zWj+w@mail.gmail.com>
On 4/8/20 10:24 AM, Fabio Estevam wrote:
> Hi Steve,
>
> On Wed, Apr 8, 2020 at 1:35 PM Steve Longerbeam <slongerbeam@gmail.com> wrote:
>
>> change to:
>>
>> media-ctl -V "'ipu1_ic_prpenc':1 [fmt:ARGB8888_1X32/800x600]"
> If I make this change I get:
>
> # v4l2-ctl --stream-mmap -d /dev/video1
> [ 501.143012] ipu1_ic_prpenc: capture format not valid
> VIDIOC_STREAMON returned -1 (Invalid argument)
>
> Going back to the original example:
>
> # media-ctl -V "'ipu1_ic_prpenc':1 [fmt:AYUV32/640x480]"
> # v4l2-ctl --stream-mmap -d /dev/video1
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.03 fps
>
> Changing only the resolution:
>
> # media-ctl -V "'ipu1_ic_prpenc':1 [fmt:AYUV32/800x600]"
> # v4l2-ctl --stream-mmap -d /dev/video1
> [ 658.358246] ipu1_ic_prpenc: capture format not valid
> VIDIOC_STREAMON returned -1 (Invalid argument)
>
> Any ideas?
You have to set a format at the capture interface as the last step
before streaming can start:
# v4l2-ctl -d /dev/video1 --set-fmt-video=pixelformat=RGB3
or whatever RGB format is supported. It's enough to sinmply set one parameter, such as width or height or pixelformat. The driver will propagate the reset from the source subdev ipu1_ic_prpenc.
The capture interface used to be automatically propagated from the source subdev, but now it must be done by userland.
Steve
>
> These are the lines I am currently using as per your feedback:
>
> # Setup links
> media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]"
> media-ctl -l "'imx6-mipi-csi2':1 -> 'ipu1_csi0_mux':0[1]"
> media-ctl -l "'ipu1_csi0_mux':2 -> 'ipu1_csi0':0[1]"
> media-ctl -l "'ipu1_csi0':1 -> 'ipu1_ic_prp':0[1]"
> media-ctl -l "'ipu1_ic_prp':1 -> 'ipu1_ic_prpenc':0[1]"
> media-ctl -l "'ipu1_ic_prpenc':1 -> 'ipu1_ic_prpenc capture':0[1]"
> # Configure pads
> media-ctl -V "'ov5640 1-003c':0 [fmt:UYVY2X8/640x480]"
> media-ctl -V "'imx6-mipi-csi2':1 [fmt:UYVY2X8/640x480]"
> media-ctl -V "'ipu1_csi0_mux':2 [fmt:UYVY2X8/640x480]"
> media-ctl -V "'ipu1_csi0':1 [fmt:AYUV32/640x480]"
> media-ctl -V "'ipu1_ic_prp':1 [fmt:AYUV32/640x480]"
> media-ctl -V "'ipu1_ic_prpenc':1 [fmt:ARGB8888_1X32/800x600]"
>
> Thanks,
>
> Fabio Estevam
>
> # Setup links
> media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]"
> media-ctl -l "'imx6-mipi-csi2':1 -> 'ipu1_csi0_mux':0[1]"
> media-ctl -l "'ipu1_csi0_mux':2 -> 'ipu1_csi0':0[1]"
> media-ctl -l "'ipu1_csi0':1 -> 'ipu1_ic_prp':0[1]"
> media-ctl -l "'ipu1_ic_prp':1 -> 'ipu1_ic_prpenc':0[1]"
> media-ctl -l "'ipu1_ic_prpenc':1 -> 'ipu1_ic_prpenc capture':0[1]"
> # Configure pads
> media-ctl -V "'ov5640 1-003c':0 [fmt:UYVY2X8/640x480]"
> media-ctl -V "'imx6-mipi-csi2':1 [fmt:UYVY2X8/640x480]"
> media-ctl -V "'ipu1_csi0_mux':2 [fmt:UYVY2X8/640x480]"
> media-ctl -V "'ipu1_csi0':1 [fmt:AYUV32/640x480]"
> media-ctl -V "'ipu1_ic_prp':1 [fmt:AYUV32/640x480]"
> media-ctl -V "'ipu1_ic_prpenc':1 [fmt:ARGB8888_1X32/800x600]"
next prev parent reply other threads:[~2020-04-08 19:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-08 12:32 [PATCH 1/4] media: imx.rst: Fix the MIPI CSI-2 virtual channel Fabio Estevam
2020-04-08 12:32 ` [PATCH 2/4] media: imx.rst: Provide an example for unprocessed video capture Fabio Estevam
2020-04-08 16:37 ` Steve Longerbeam
2020-04-08 12:32 ` [PATCH 3/4] media: imx.rst: Provide the OV560 module part number Fabio Estevam
2020-04-08 16:37 ` Steve Longerbeam
2020-04-08 12:32 ` [PATCH 4/4] media: imx.rst: Provide streaming examples for imx6q-sabresd Fabio Estevam
2020-04-08 16:42 ` Steve Longerbeam
2020-04-08 16:35 ` [PATCH 1/4] media: imx.rst: Fix the MIPI CSI-2 virtual channel Steve Longerbeam
2020-04-08 17:24 ` Fabio Estevam
2020-04-08 19:16 ` Steve Longerbeam [this message]
2020-04-08 19:28 ` Fabio Estevam
2020-04-08 19:33 ` Fabio Estevam
2020-04-08 19:51 ` Steve Longerbeam
2020-04-08 20:04 ` Steve Longerbeam
2020-04-08 19:48 ` Steve Longerbeam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a23d2559-5498-75bb-0bce-3bc11bb6b5ae@gmail.com \
--to=slongerbeam@gmail.com \
--cc=festevam@gmail.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.