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板子代码修改问题

Other Parts Discussed in Thread: TVP5158

您好,我们公司最近在UDWORK板子的基础上对板子进行了修改,现在是只用了两片TVP5158,没有用扩展的HDMI接口,其他的基本上一样,我是在00.07.00.01的基础上修改,目前在int DVR_StartSystem(TunnelTestCtxt *pHandleParam, int isNTSC, int sub_display)初始化时一直有问题,目前我修改了代码lib_dvr_app.h里面的定义

#define NUM_DISPLAYS       (2)

#define OMX_NUM_DEIS       (1)

#define OMX_NUM_SINKS      (0)

#define OMX_NUM_SRCS      (0)

#define ENCODE_CHANNEL        (16)

#define DECODE_CHANNEL      (16)

#define NUM_CHANNEL       (8)

#define DEIM_CHANNEL      (8)

#define DEIH_CHANNEL      (0)

#define SC_CHANNEL       (16)

另外对代码里的DEIH_CHANNEL      没有设置,在对DISPALY定义时都只能设置第1个,如下:

 for (i = 0; i < 1;/*NUM_DISPLAYS;*/ i++)
 {

  (void) sendCommand(pContext->hCTRLDC[i], OMX_CommandStateSet,

     OMX_StateIdle, pContext->hctrlDcStateChangeEvent[i]);
  printf("NUM_DISPLAYS %d pContext->hCTRLDC[i]!!!\n",i);
 }

现在在下面代码还是会停下来

(void) sendCommand(pContext->hCTRLTVP, OMX_CommandStateSet,

    OMX_StateExecuting, pContext->hctrlTvpStateChangeEvent);

能否提供帮助,谢谢!

 

                    致

礼!

                                                  周胜