From: Komal Shah <komal_shah802003@yahoo.com>
To: David Cohen <david.cohen@indt.org.br>, ext Ola Helm <ola.hel@gmail.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] Re: v4l2 camera test app
Date: Mon, 20 Mar 2006 12:16:36 -0800 (PST) [thread overview]
Message-ID: <20060320201636.49261.qmail@web32908.mail.mud.yahoo.com> (raw)
In-Reply-To: <441ECE1F.9000709@indt.org.br>
--- David Cohen <david.cohen@indt.org.br> wrote:
> Hi,
>
> I am sending a new version of the camera driver for omap2420. Unlike
> the
> last patch I sent, I am not using those functions from dispc and vout
> that were not applied yet.
> The sensor module should be configured to BT8. The configurations for
> NOBT are in the code, but commented on omap24xxcam_sensor_cc_ctrl
> function. It can be changed if necessary.
>
> +
> +#include "omap24xxcam.h"
> +
> +#define CAMERA_OV9640
> +#ifdef CAMERA_OV9640
> +#include "ov9640.h"
> +#endif
You may not need to include this.
> +static void omap24xxcam_sensor_cc_ctrl(struct omap24xxcam_device
> *cam)
> +{
> + struct v4l2_pix_format *pix = &cam->pix;
> +
> + DBG;
> +
> + cam->cc_ctrl = /*CC_CTRL_NOBT_SYNCHRO | CC_CTRL_NOBT_VS_POL */
> + CC_CTRL_BT_CORRECT | CC_CTRL_PAR_MODE_BT8;
As I believe this should come from sensor, I think Jian added this in
the new sensor interface.
> + if (!in_atomic()) {
> + set_current_state(TASK_INTERRUPTIBLE);
> + schedule_timeout(1);
We can use the new api available which combines this two functions.
> + CAMDMA_CSDP_WRITE_MODE_POSTED
> + | CAMDMA_CSDP_DST_BURST_EN_64
> + | CAMDMA_CSDP_DST_PACKED
> + | CAMDMA_CSDP_SRC_BURST_EN_64
Why changing from 16 to 64? vga?
> +
> + cam = kmalloc(sizeof(struct omap24xxcam_device), GFP_KERNEL);
> + if (!cam) {
> + printk(KERN_ERR CAM_NAME ": could not allocate memory\n");
> + goto init_error;
> + }
> + memset(cam, 0, sizeof(struct omap24xxcam_device));
I like kzalloc.
---Komal Shah
http://komalshah.blogspot.com/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
prev parent reply other threads:[~2006-03-20 20:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-16 10:25 v4l2 camera test app Komal Shah
2006-03-20 13:19 ` Ola Helm
2006-03-20 14:58 ` omap24xxcam status (Was: v4l2 camera test app) Komal Shah
2006-03-20 16:10 ` David Cohen
2006-03-20 15:45 ` [PATCH] Re: v4l2 camera test app David Cohen
2006-03-20 20:16 ` Komal Shah [this message]
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=20060320201636.49261.qmail@web32908.mail.mud.yahoo.com \
--to=komal_shah802003@yahoo.com \
--cc=david.cohen@indt.org.br \
--cc=linux-omap-open-source@linux.omap.com \
--cc=ola.hel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox