From: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
To: Bastian Hecht <hechtb@googlemail.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: OMAP3530 ISP irqs disabled
Date: Wed, 03 Nov 2010 15:20:51 +0200 [thread overview]
Message-ID: <4CD161B3.9000709@maxwell.research.nokia.com> (raw)
In-Reply-To: <AANLkTimDN73S9ZWii80i9LtHtsHtPQPsMdEdGB+C5nYy@mail.gmail.com>
Hi Bastian,
Bastian Hecht wrote:
> 2010/11/3 Bastian Hecht <hechtb@googlemail.com>:
>> Hello ISP team,
>>
>> I succeeded to stream the first images from the sensor to userspace
>> using Laurent's media-ctl and yafta. Unfortunately all images are
>> black (10MB of zeros).
>> Once by chance I streamed some images (1 of 20 about) with content.
>> All values were < 0x400, so that I assume the values were correctly
>> transferred for my 10-bit pixels.
>>
>> I shortly describe my setup:
>> As I need xclk_a activated for my sensor to work (I2C), I activate the
>> xclk in the isp_probe function. Early hack that I want to remove
>> later.
It _might_ be better to have this in isp_get().
>> While I placed my activation in mid of the probe function, I had
>> somehow the interrupts disabled when trying to stream using yafta. So
>> I hacked in the reenabling of the interrupts somewhere else in probe()
>> too.
That should definitely not be necessary. The interrupts are enabled in
isp_get().
>> As I dug through the isp code I saw that it is better to place the
>> clock activation after the final isp_put in probe() then the
>> interrupts keep working, but this way I never got a valid picture so
>> far. It's all a mess, I know. I try to transfer the activation to my
>> sensor code and board-setup code like in the et8ek8 code.
>
> I enabled isr debugging (#define ISP_ISR_DEBUG) and see that only 1
> HS_VS_event is generated per second. 1fps corresponds to my clocking,
> so 1 vs per second is fine. But shouldn't I see about 2000 hs
> interrupts there too? HS_VS_IRQ is described as "HS or VS synchro
> event".
Are you getting any other interrupts? Basically every ISP block which is
on the pipe will produce interrupts. Which ISP block is writing the
images to memory for you?
>> However... please help me get rid of these zeros! I keep reading
>> through the ISP and the mt9p031 docs to find some settings that could
>> have influence on the data sampling. The sensor is working fine now,
>> so the solution should be somewhere within the isp.
Maybe a stupid question, but have you set exposure and gain to a
reasonable value? :-)
Regards,
--
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com
next prev parent reply other threads:[~2010-11-03 13:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-03 9:42 OMAP3530 ISP irqs disabled Bastian Hecht
2010-11-03 12:47 ` Bastian Hecht
2010-11-03 12:58 ` Michael Jones
2010-11-03 13:26 ` Bastian Hecht
2010-11-04 3:30 ` Laurent Pinchart
2010-11-03 13:20 ` Sakari Ailus [this message]
2010-11-03 13:38 ` Bastian Hecht
2010-11-04 3:34 ` Laurent Pinchart
2010-11-04 8:34 ` Bastian Hecht
2010-11-04 12:53 ` Bastian Hecht
2010-11-05 10:45 ` Bastian Hecht
2010-11-05 11:09 ` Bastian Hecht
2010-11-05 14:25 ` Michael Jones
2010-11-05 15:18 ` Bastian Hecht
2010-11-07 4:54 ` Sakari Ailus
2010-11-07 9:11 ` Bastian Hecht
2010-11-08 3:15 ` Laurent Pinchart
2010-11-08 12:26 ` Michael Jones
2010-11-09 23:10 ` Laurent Pinchart
2010-11-08 10:06 ` Michael Jones
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=4CD161B3.9000709@maxwell.research.nokia.com \
--to=sakari.ailus@maxwell.research.nokia.com \
--cc=hechtb@googlemail.com \
--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.