This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8168 with VC daughterboard.

Other Parts Discussed in Thread: TVP7002

Hi,

I'm using the VC daughterboard, since I want to capture from a HDMI source.

I modified the following file (inside omx - see patch below)

packages/ti/omx/demos/capture_encode/ilclient_utils.c

Basically, I just changed the videoDecoderId (TVP7002 -> SII9135)

I can compile the program and run it. I never get any image. It seems that ctrltvp can't be moved to the execution-state, it just hangs.

I never get a callback. If I just wait a while, I get the following output:

*snip*

 got eventState changed to: OMX_StateExecuting
 display control state execute
 got eventState changed to: OMX_StateExecuting
 display state execute
 got eventState changed to: OMX_StateExecuting
 encoder state execute
 got eventState changed to: OMX_StateExecuting
 dei state execute
 got eventState changed to: OMX_StateExecuting
 capture state execute 

********************************* ctrltvp is changed here - but no callback...

irq 71: nobody cared (try booting with the "irqpoll" option)
Backtrace:
[<c0046b44>] (dump_backtrace+0x0/0x110) from [<c0364b48>] (dump_stack+0x18/0x1c)
 r7:00000000 r6:c002c61c r5:c04adef0 r4:c04adef0
[<c0364b30>] (dump_stack+0x0/0x1c) from [<c0095d98>] (__report_bad_irq+0x38/0x90)
[<c0095d60>] (__report_bad_irq+0x0/0x90) from [<c0095f44>] (note_interrupt+0x154/0x1d8)
 r5:c04adef0 r4:c04adef0
[<c0095df0>] (note_interrupt+0x0/0x1d8) from [<c0096c5c>] (handle_level_irq+0xcc/0x11c)
 r9:413fc082 r8:8002ad4c r7:c04960ec r6:c002c61c r5:00000047
r4:c04adef0
[<c0096b90>] (handle_level_irq+0x0/0x11c) from [<c003807c>] (asm_do_IRQ+0x7c/0xa0)
 r5:00000000 r4:00000047
[<c0038000>] (asm_do_IRQ+0x0/0xa0) from [<c0366bb4>] (__irq_svc+0x34/0xa0)
Exception stack(0xc0493f50 to 0xc0493f98)
3f40:                                     81600181 40000013 c0493f98 00000814
3f60: c0492000 c04d8a40 c002c61c c04960ec 8002ad4c 413fc082 0000001f c0493fa4
3f80: c0493f98 c0493f98 c0043f1c c0043f20 80000013 ffffffff
 r5:fa200000 r4:ffffffff
[<c0043ee4>] (default_idle+0x0/0x40) from [<c00444c0>] (cpu_idle+0x50/0x90)
[<c0044470>] (cpu_idle+0x0/0x90) from [<c035c358>] (rest_init+0x60/0x78)
 r5:c04d8a40 r4:c04fcc84
[<c035c2f8>] (rest_init+0x0/0x78) from [<c0008c68>] (start_kernel+0x254/0x2a8)
[<c0008a14>] (start_kernel+0x0/0x2a8) from [<80008034>] (0x80008034)
 r5:c04d8b5c r4:10c53c7d
handlers:
[<c025b698>] (omap_i2c_isr+0x0/0x468)
Disabling IRQ #71

*snip*

 

--- ilclient_utils.c
+++ ilclient_utils.c
@@ -943,7 +943,7 @@
 
   OMX_INIT_PARAM (&sHwPortId);
   /* capture on EIO card is component input at VIP1 port */
-  sHwPortId.eHwPortId = OMX_VIDEO_CaptureHWPortVIP1_PORTA;
+  sHwPortId.eHwPortId = OMX_VIDEO_CaptureHWPortVIP2_PORTA;
   eError = OMX_SetParameter (pAppData->pCapHandle,
                              (OMX_INDEXTYPE) OMX_TI_IndexParamVFCCHwPortID,
                              (OMX_PTR) & sHwPortId);
@@ -978,7 +978,7 @@
 
   OMX_INIT_PARAM (&sHwPortId);
   /* capture on EIO card is component input at VIP1 port */
-  sHwPortId.eHwPortId = OMX_VIDEO_CaptureHWPortVIP1_PORTA;
+  sHwPortId.eHwPortId = OMX_VIDEO_CaptureHWPortVIP2_PORTA;
   eError = OMX_SetParameter (pAppData->pTvpHandle,
                              (OMX_INDEXTYPE) OMX_TI_IndexParamVFCCHwPortID,
                              (OMX_PTR) & sHwPortId);
@@ -1006,9 +1006,9 @@
   sVidDecParam.videoStandard =  OMX_VIDEO_DECODER_STD_720P_60;
   }
  
-  /* setting TVP7002 component input */
-  sVidDecParam.videoDecoderId = OMX_VID_DEC_TVP7002_DRV;
-  sVidDecParam.videoSystemId = OMX_VIDEO_DECODER_VIDEO_SYSTEM_AUTO_DETECT;
+      sVidDecParam.videoStandard =  OMX_VIDEO_DECODER_STD_AUTO_DETECT;
+      sVidDecParam.videoDecoderId = OMX_VID_DEC_SII9135_DRV;
+      sVidDecParam.videoSystemId = OMX_VIDEO_DECODER_VIDEO_SYSTEM_AUTO_DETECT;
   eError = OMX_SetParameter (pAppData->pTvpHandle,
                              (OMX_INDEXTYPE) OMX_TI_IndexParamCTRLVidDecInfo,
                              (OMX_PTR) & sVidDecParam);