From: Sakari Ailus <sakari.ailus@nokia.com>
To: ext Trilok Soni <soni.trilok@gmail.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH 1/2] ARM: OMAP2: Camera: Add driver.
Date: Thu, 23 Aug 2007 15:51:37 +0300 [thread overview]
Message-ID: <46CD82D9.3070708@nokia.com> (raw)
In-Reply-To: <5d5443650708211008x11d022b6qe513e75c6aa56585@mail.gmail.com>
ext Trilok Soni wrote:
> Hi Sakari,
Hello Trilok,
>> + switch (p.if_type) {
>> + case V4L2_IF_TYPE_PARALLEL:
>> + if (p.u.parallel.frame_start_on_rising_vs)
>> + cam->cc_ctrl |= CC_CTRL_NOBT_SYNCHRO;
>> + if (p.u.parallel.bt_sync_correct)
>> + cam->cc_ctrl |= CC_CTRL_BT_CORRECT;
>> + if (p.u.parallel.swap)
>> + cam->cc_ctrl |= CC_CTRL_PAR_ORDERCAM;
>
> In case of earlier omap2 camera driver with ov9640 combination above bit was
> set based on the pixelformat being passed. I am just copying that code here.
>
> -----------------------snip-------------------------------------
> switch (pix->pixelformat) {
> case V4L2_PIX_FMT_UYVY:
> case V4L2_PIX_FMT_RGB565:
> case V4L2_PIX_FMT_RGB555:
> default:
> /* These formats need a 16-bit byte swap */
> cam->cc_ctrl |= CC_CTRL_PAR_ORDERCAM;
> case V4L2_PIX_FMT_YUYV:
> case V4L2_PIX_FMT_RGB565X:
> case V4L2_PIX_FMT_RGB555X:
> /* These formats don't need a 16-bit byte swap */
> break;
> }
Ah. I didn't anticipate this... Then probably the camera driver needs to
call g_ifparm always after s_fmt_cap.
> So, we might need to add support for above also.
>
>> + if (p.u.parallel.latch_clk_inv)
>> + cam->cc_ctrl |= CC_CTRL_PAR_CLK_POL;
>> + if (p.u.parallel.nobt_hs_inv)
>> + cam->cc_ctrl |= CC_CTRL_NOBT_HS_POL;
>> + if (p.u.parallel.nobt_hs_inv)
>
> Above should be nobt_vs_inv instead :)
You got me convinced. :)
> I have updated ov9640 driver with the changes you have suggested and
> with new "ifparm" bits, but ov9640 on H4 is still not working. I will
> post that incremental patches for ov9640, so that someone can debug on
> H4/OMAP1(once that core gets converted to this new interface).
Ok.
--
Sakari Ailus
sakari.ailus@nokia.com
next prev parent reply other threads:[~2007-08-23 12:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 12:02 [PATCH 0/2] Updated OMAP 2 camera driver and N800 platform camera patches Sakari Ailus
2007-08-20 12:03 ` [PATCH 1/2] ARM: OMAP2: Camera: Add driver Sakari Ailus
2007-08-20 12:03 ` [PATCH 2/2] ARM: N800: Add hardware dependent parts for camera / sensor Sakari Ailus
2007-08-21 17:08 ` [PATCH 1/2] ARM: OMAP2: Camera: Add driver Trilok Soni
2007-08-23 12:51 ` Sakari Ailus [this message]
2007-08-20 16:59 ` [PATCH 0/2] Updated OMAP 2 camera driver and N800 platform camera patches Trilok Soni
2007-08-31 20:27 ` Tony Lindgren
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=46CD82D9.3070708@nokia.com \
--to=sakari.ailus@nokia.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=soni.trilok@gmail.com \
/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.