public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* need help for omap3 isp-camera interface
@ 2009-04-21  3:01 Weng, Wending
  2009-04-21  4:08 ` Dongsoo, Nathaniel Kim
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Weng, Wending @ 2009-04-21  3:01 UTC (permalink / raw)
  To: linux-media

Hi All,
 
   I'm working on video image capture(omap3 isp) interface(PSP 1.0.2), and have met many difficulties. At the camera side, the 8 bits BT656 signal are connected to cam_d[0-7], which looks OK. The cam_fld, cam_hs and cam_vs are also connected, At the omap3 side, I use saMmapLoopback.c, it runs, however, it receives only HS_VS_IRQ, but no any image data. I checked FLDSTAT(CCDC_SYN_MODE), it's never changed.
Right now, I don't know what to check, if you can give some suggestions, your help will be greatly appreciated. Thanks in advance.
 
Wending Weng

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: need help for omap3 isp-camera interface
  2009-04-21  3:01 need help for omap3 isp-camera interface Weng, Wending
@ 2009-04-21  4:08 ` Dongsoo, Nathaniel Kim
  2009-04-21  4:59 ` Hiremath, Vaibhav
  2009-04-21 13:48 ` Sakari Ailus
  2 siblings, 0 replies; 4+ messages in thread
From: Dongsoo, Nathaniel Kim @ 2009-04-21  4:08 UTC (permalink / raw)
  To: Weng, Wending; +Cc: linux-media

Hi,

First of all you have to specify which version of camera interface
driver you are using.
Because, there are two versions of omap3 camera interface.
First one is from TI, and second one is from Sakari Ailus. (second one
is the latest)
Besides the version issue, there are some point that you can check.

1. make sure that you are using parallel mode (if you are not using MIPI)
2. check your dataline shift
3. check your H/W connection and check parallel bridge setting

And in case of you are using Sakari's new driver, you can check for
the wait_hs_vs in isp_interface_config.

Cheers,

Nate



On Tue, Apr 21, 2009 at 12:01 PM, Weng, Wending <WWeng@rheinmetall.ca> wrote:
> Hi All,
>
>   I'm working on video image capture(omap3 isp) interface(PSP 1.0.2), and have met many difficulties. At the camera side, the 8 bits BT656 signal are connected to cam_d[0-7], which looks OK. The cam_fld, cam_hs and cam_vs are also connected, At the omap3 side, I use saMmapLoopback.c, it runs, however, it receives only HS_VS_IRQ, but no any image data. I checked FLDSTAT(CCDC_SYN_MODE), it's never changed.
> Right now, I don't know what to check, if you can give some suggestions, your help will be greatly appreciated. Thanks in advance.
>
> Wending Weng
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
=
DongSoo, Nathaniel Kim
Engineer
Mobile S/W Platform Lab.
Digital Media & Communications R&D Centre
Samsung Electronics CO., LTD.
e-mail : dongsoo.kim@gmail.com
          dongsoo45.kim@samsung.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: need help for omap3 isp-camera interface
  2009-04-21  3:01 need help for omap3 isp-camera interface Weng, Wending
  2009-04-21  4:08 ` Dongsoo, Nathaniel Kim
@ 2009-04-21  4:59 ` Hiremath, Vaibhav
  2009-04-21 13:48 ` Sakari Ailus
  2 siblings, 0 replies; 4+ messages in thread
From: Hiremath, Vaibhav @ 2009-04-21  4:59 UTC (permalink / raw)
  To: Weng, Wending, linux-media@vger.kernel.org

Hi Weng,

Thanks,
Vaibhav Hiremath
Platform Support Products
Texas Instruments Inc
Ph: +91-80-25099927

> -----Original Message-----
> From: linux-media-owner@vger.kernel.org [mailto:linux-media-
> owner@vger.kernel.org] On Behalf Of Weng, Wending
> Sent: Tuesday, April 21, 2009 8:32 AM
> To: linux-media@vger.kernel.org
> Subject: need help for omap3 isp-camera interface
> 
> Hi All,
> 
>    I'm working on video image capture(omap3 isp) interface(PSP
> 1.0.2), and have met many difficulties. At the camera side, the 8
> bits BT656 signal are connected to cam_d[0-7], which looks OK. The
> cam_fld, cam_hs and cam_vs are also connected, At the omap3 side, I
> use saMmapLoopback.c, it runs, however, it receives only HS_VS_IRQ,
> but no any image data. I checked FLDSTAT(CCDC_SYN_MODE), it's never
> changed.


[Hiremath, Vaibhav] Depends on above description I believe you are using 8 bit interface in BT656 mode, where CAM[0-7] goes to OMAP_CAM[0-7].

You will have to check for data_shift register configuration, look into the function "omap34xxcamisp_configure_interface" where we are configuring this value. 

In PSP1.0.2 the configuration -
------------------------------
Interface - TVP[0-9] -> CAM[D2-D11]
CCDC_SYN_MODE.INMODE[12-13] = 0x2 --> YCbCr data in 8 bit mode
TVP5146 FMT1[ --> Configured to 10 bit 4:2:2 mode
ISP_CNTRL.SHIFT[6-7] = 0x2 --> 4 bit shift, CamExt[13-4] -> Cam[9-0]

With above configuration we are ignoring 2 LSB's from TVP5146 and processing 8bits (MSB's) coming from it.
 

For your configuration -
----------------------
Interface - CAM_BT[7-0] --> CAM[7-0]
CCDC_SYN_MODE.INMODE[12-13] = 0x2 --> YCbCr data in 8 bit mode
ISP_CNTRL.SHIFT[6-7] = 0x0 --> 0 bit shift, CamExt[13-0] -> Cam[13-0]

It should work.


> Right now, I don't know what to check, if you can give some
> suggestions, your help will be greatly appreciated. Thanks in
> advance.
> 
> Wending Weng
> --
> To unsubscribe from this list: send the line "unsubscribe linux-
> media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: need help for omap3 isp-camera interface
  2009-04-21  3:01 need help for omap3 isp-camera interface Weng, Wending
  2009-04-21  4:08 ` Dongsoo, Nathaniel Kim
  2009-04-21  4:59 ` Hiremath, Vaibhav
@ 2009-04-21 13:48 ` Sakari Ailus
  2 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2009-04-21 13:48 UTC (permalink / raw)
  To: Weng, Wending; +Cc: linux-media, Aguirre Rodriguez, Sergio Alberto

Weng, Wending wrote:
> Hi All,
> 
> I'm working on video image capture(omap3 isp) interface(PSP 1.0.2),
> and have met many difficulties. At the camera side, the 8 bits BT656
> signal are connected to cam_d[0-7], which looks OK. The cam_fld,
> cam_hs and cam_vs are also connected, At the omap3 side, I use
> saMmapLoopback.c, it runs, however, it receives only HS_VS_IRQ, but
> no any image data. I checked FLDSTAT(CCDC_SYN_MODE), it's never
> changed. Right now, I don't know what to check, if you can give some
> suggestions, your help will be greatly appreciated. Thanks in
> advance.

I haven't been using the parallel interface nor I know anyone else who 
would have. Sergio, any idea?

Anyway, this sounds like a problem in the parallel receiver side. You 
could try also configuring the VD1 IRQ to happen much earlier, say on 
10th line. See ISPCCDC_VDINT handling in ispccdc.c.

I'm going to update the patchset as soon as I get linux-omap booting again.

-- 
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-21 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21  3:01 need help for omap3 isp-camera interface Weng, Wending
2009-04-21  4:08 ` Dongsoo, Nathaniel Kim
2009-04-21  4:59 ` Hiremath, Vaibhav
2009-04-21 13:48 ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox