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.

mini driver

Other Parts Discussed in Thread: TVP5146

 

I met a problem about fvid_control, here is my code
FVID_control(CcdcHandle,VPFE_ExtVD_BASE+PSP_VPSS_EXT_VIDEO_DECODER_CONFIG,&tvp5146Params)),it didn't return IOM_COMPELETED,but if I set VPFE_ExtVD_BASE=0,it return IOM_COMPELETED,according to the psp_vpfe.h,the value of VPFE_ExtVD_BASE is 0x80000,now,what's the value i can set on myown bord?If i set 0,it went well.
then,followed this code,
if(IOM_COMPLETED != FVID_control(CcdcHandle,
                        VPFE_ExtVD_BASE+PSP_VPSS_EXT_VIDEO_DECODER_CONFIG,
                        &tvp5146Params))
    {
        //VPSS_DBG("VPSS  :Error in Configuring Video Decoder  \r\n");
  return;
    }
    else
    {
        for (i=0;i<NO_OF_BUFFERS;i++)
        {
            if(IOM_COMPLETED == FVID_alloc(CcdcHandle,&CcdcallocFB[i]))
            {
                if(IOM_COMPLETED != FVID_queue(CcdcHandle,CcdcallocFB[i]))
                {
                    //VPSS_DBG("VPSS  :CCDC Queuing.......FAILED \r\n");
      return;
                }
            }
        }
    }
 FVID_alloc(CcdcHandle,&CcdcallocFB[i]) always returns -10,I don't know how to solve this problem.
Thans.

  • was  VPFE_ExtVD_BASE set according to external peripheral?

  • I just simply remove the "VPFE_ExtVD_BASE+", then FVID_control returns IOM_COMPLETED, and the demo works too. I don't know why.

  • things goes more intresting, when I don't config the TVP5146 decoder (not call the FVID_control function), I get image too.

    But if I call FVID_control without "VPFE_ExtVD_BASE+", the image I got has some horizontal lines didn't display. what's the problem?

    What's more When I have queue 3 framebuffer for both VPFE ccdc driver and the VPBE vid0 driver , I got -10 from FVID_exchange and FVID_dequeue, which meas Bad Argument , what's the problem again? I can get image if I queue the same framebuffer into both VPFE and VPBE, but it's not correct to do this, because I need to handle with the image. Any idea?