From: Gary Thomas <gary@mlbassoc.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Enrico <ebutera@users.berlios.de>,
linux-media@vger.kernel.org,
Enric Balletbo i Serra <eballetbo@iseebcn.com>
Subject: Re: Getting started with OMAP3 ISP
Date: Thu, 01 Sep 2011 12:18:59 -0600 [thread overview]
Message-ID: <4E5FCC93.1090807@mlbassoc.com> (raw)
In-Reply-To: <201109012014.32996.laurent.pinchart@ideasonboard.com>
On 2011-09-01 12:14, Laurent Pinchart wrote:
> Hi Enrico,
>
> On Thursday 01 September 2011 19:24:54 Enrico wrote:
>> On Thu, Sep 1, 2011 at 6:14 PM, Enrico<ebutera@users.berlios.de> wrote:
>>> On Thu, Sep 1, 2011 at 5:16 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>>> - entity 16: tvp5150m1 2-005c (1 pad, 1 link)
>>>> type V4L2 subdev subtype Unknown
>>>> device node name /dev/v4l-subdev8
>>>> pad0: Output [unknown 720x480 (1,1)/720x480]
>>>> -> 'OMAP3 ISP CCDC':pad0 [ACTIVE]
>>>>
>>>> Ideas where to look for the 'unknown' mode?
>>>
>>> I didn't notice that, if you are using UYVY8_2X8 the reason is in
>>> media-ctl main.c:
>>>
>>> { "UYVY", V4L2_MBUS_FMT_UYVY8_1X16 },
>>>
>>> You can add a line like:
>>>
>>> { "UYVY2X8", V4L2_MBUS_FMT_UYVY8_2X8 },
>>>
>>> recompile and it should work, i'll try it now.
>>
>> That worked, but now there is another problem.
>
> That's correct. My bad for not spotting it sooner.
Will you be adding this to the media-ctl tree? Would you like a patch?
>
>> yavta will set UYVY (PIX_FMT), this will cause a call to
>> ispvideo.c:isp_video_pix_to_mbus(..), that will do this:
>>
>> for (i = 0; i< ARRAY_SIZE(formats); ++i) {
>> if (formats[i].pixelformat == pix->pixelformat)
>> break;
>> }
>>
>> that is it will stop at the first matching array item, and that's:
>>
>> { V4L2_MBUS_FMT_UYVY8_1X16, V4L2_MBUS_FMT_UYVY8_1X16,
>> V4L2_MBUS_FMT_UYVY8_1X16, 0,
>> V4L2_PIX_FMT_UYVY, 16, 16, },
>>
>>
>> but you wanted this:
>>
>> { V4L2_MBUS_FMT_UYVY8_2X8, V4L2_MBUS_FMT_UYVY8_2X8,
>> V4L2_MBUS_FMT_UYVY8_2X8, 0,
>> V4L2_PIX_FMT_UYVY, 8, 16, },
>>
>> so a better check could be to check for width too, but i don't know if
>> it's possibile to pass a width requirement or if it's already there in
>> some struct passed to the function.
>
> That's not really an issue, as the isp_video_pix_to_mbus() and
> isp_video_mbus_to_pix() calls in isp_video_set_format() are just used to fill
> the bytesperline and sizeimage fields. From a quick look at the code
> isp_video_check_format() should succeed as well.
>
> Have you run into any specific issue with isp_video_pix_to_mbus() when using
> V4L2_MBUS_FMT_UYVY8_2X8 ?
>
Not yet - I was able to configure the pipeline as
# media-ctl -f '"tvp5150m1 2-005c":0[UYVY2X8 720x480], "OMAP3 ISP CCDC":0[UYVY2X8 720x480], "OMAP3 ISP CCDC":1[UYVY2X8 720x480]'
and this gets me all the way into my driver (which I'm now working on)
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2011-09-01 18:19 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 16:07 Getting started with OMAP3 ISP Gary Thomas
2011-08-29 10:49 ` Laurent Pinchart
2011-08-30 14:08 ` Gary Thomas
2011-08-30 14:18 ` Gary Thomas
2011-08-30 14:20 ` Laurent Pinchart
2011-08-30 14:56 ` Gary Thomas
2011-08-30 15:48 ` Laurent Pinchart
2011-08-30 16:07 ` Enrico
2011-08-30 16:23 ` Gary Thomas
2011-08-30 16:36 ` Enrico
2011-08-30 16:48 ` Gary Thomas
2011-08-30 21:19 ` Sakari Ailus
2011-08-30 22:45 ` Gary Thomas
2011-08-30 22:50 ` Laurent Pinchart
2011-08-31 0:07 ` Gary Thomas
2011-08-31 8:13 ` Laurent Pinchart
2011-08-31 10:56 ` Gary Thomas
2011-08-31 11:00 ` Laurent Pinchart
2011-08-31 12:01 ` Gary Thomas
2011-08-31 15:15 ` Laurent Pinchart
2011-08-31 15:19 ` Gary Thomas
2011-08-31 16:25 ` Enrico
2011-08-31 16:33 ` Laurent Pinchart
2011-08-31 22:34 ` Gary Thomas
2011-09-01 8:11 ` Laurent Pinchart
2011-09-01 9:51 ` Enrico
2011-09-01 9:55 ` Laurent Pinchart
2011-09-01 10:24 ` Enrico
2011-09-01 14:12 ` Enrico
2011-09-01 14:24 ` Laurent Pinchart
2011-09-01 12:50 ` Gary Thomas
2011-09-01 13:26 ` Laurent Pinchart
2011-09-01 15:16 ` Gary Thomas
2011-09-01 16:14 ` Enrico
2011-09-01 17:24 ` Enrico
2011-09-01 18:14 ` Laurent Pinchart
2011-09-01 18:18 ` Gary Thomas [this message]
2011-09-02 8:09 ` Laurent Pinchart
2011-09-02 9:02 ` Enrico
2011-09-02 11:27 ` Laurent Pinchart
2011-09-05 16:37 ` Enrico
2011-09-06 8:48 ` Laurent Pinchart
2011-09-06 9:04 ` Enrico
[not found] ` <201109061049.32114.laurent.pinchart@ideasonboard.com>
2011-09-06 9:10 ` Enrico
-- strict thread matches above, loose matches on Subject: below --
2011-10-05 10:46 Adam Pledger
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=4E5FCC93.1090807@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=eballetbo@iseebcn.com \
--cc=ebutera@users.berlios.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
/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.