From: Komal Shah <komal_shah802003@yahoo.com>
To: David Cohen <david.cohen@indt.org.br>,
"Linux-omap-open-source@linux.omap.com"
<Linux-omap-open-source@linux.omap.com>
Subject: Re: [PATCH] omap camera
Date: Sat, 11 Feb 2006 05:50:04 -0800 (PST) [thread overview]
Message-ID: <20060211135004.8723.qmail@web32905.mail.mud.yahoo.com> (raw)
In-Reply-To: <43ECFF9B.80509@indt.org.br>
--- David Cohen <david.cohen@indt.org.br> wrote:
> diff --git a/drivers/media/video/omap/omap24xxcam.c
> b/drivers/media/video/omap/omap24xxcam.c
> new file mode 100644
> index 0000000..8133804
> +#include <asm/arch/display.h>
Where is this dispc library? It still needs discussion with Imre on how
we can integrate video out driver.
> */
> +#ifdef CONFIG_OMAP24XX_DPM
> +#define omap24xxcam_suspend_lockout(s,f) \
> + if ((s)->suspended) {\
> + if ((f)->f_flags & O_NONBLOCK)\
> + return -EBUSY;\
> + wait_event_interruptible((s)->suspend_wq,\
> + (s)->suspended == 0);\
> + }
> +#else
> +#define omap24xxcam_suspend_lockout(s, f) do {} while(0)
> +#endif
You may want to remove this for a while, until we come up with PM
support for OMAP2.
> + /* always use the rising edger to trigger the acquisition
> + in NOBT modes. This is recommended */
> + cam->cc_ctrl |= CC_CTRL_NOBT_SYNCHRO;
s/edger/edge
> + omap2_disp_get_panel_size(
> + omap2_disp_get_output_dev(cam->vid_preview),
> + &(cam->fbuf.fmt.width),
> + &(cam->fbuf.fmt.height));
Hmm...This patch doesn't have these functions.
> + /* Get the panel parameters.
> + * They can change from LCD to TV
> + * or TV to LCD
> + */
> + omap2_disp_get_panel_size(
> + omap2_disp_get_output_dev(cam->vid_preview),
> + &(cam->fbuf.fmt.width),
> + &(cam->fbuf.fmt.height));
Ditto...
> + omap2_disp_get_dss();
> +
> + /* Turn on the overlay window */
> + omap2_disp_config_vlayer(cam->
> + vid_preview,
> + &cam->pix,
> + &cam->crop,
> + &cam->win, -1,
> + 0);
> + omap2_disp_start_vlayer(cam->
> + vid_preview,
> + &cam->pix,
> + &cam->crop,
> + cam->
> + overlay_base_phys,
> + -1, 0);
> + cam->previewing = fh;
Ditto..And all other places where you have dispc library dependancy.
My suggestion is to leave those code references right now, and to
have camera code working with file dump or previewing through
fb driver, which can be handled then in user space application until
we sort out video out driver integration. But it can be further delayed
if we don't like OMAP2 dipsc hardware based color-space conversion,
overlays ...and don't want to use it completely :)
>
> + /* These are for power management */
> int (*power_on)(void *);
> int (*power_off)(void *);
You might want to add power functions through GPIO expander for H4 EVM.
---Komal Shah
http://komalshah.blogspot.com/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next prev parent reply other threads:[~2006-02-11 13:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-10 21:03 [PATCH] omap camera David Cohen
2006-02-11 6:34 ` Paul Mundt
2006-02-11 13:53 ` Komal Shah
2006-02-11 13:50 ` Komal Shah [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-02-10 21:17 Zhang, Jian
2006-02-13 16:01 Zhang, Jian
2006-02-13 20:53 ` Paul Mundt
2006-02-13 21:13 Zhang, Jian
2006-02-13 21:15 Zhang, Jian
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=20060211135004.8723.qmail@web32905.mail.mud.yahoo.com \
--to=komal_shah802003@yahoo.com \
--cc=Linux-omap-open-source@linux.omap.com \
--cc=david.cohen@indt.org.br \
/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