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.

Preview buffer registration timeout for front camera on Blaze board (OV5650)

Hi All,

I have a OMAP4 blaze board running with Kernel 3.4.61 (RP msg enabled), Android  JB 4.2.2 and ducati AJ2.5. The board has Sony IMX060 as primary sensor and Omnivision OV5650 as secondary.

After following all the steps given in app note which include coping DCC files to specified location, I am able to turn on primary camera for image capture. But for the front camera (OV5650) is not throwing any preview whatsoever.

I have tried invoking it through GUI, adb shell command and camera_test app also. The behavior is the same.

Initially when I collected CAMHAL logs, I could see a failure in SetVFR. I commented VFR configuration to move ahead. Now that I have gone beyond, I am getting following error

E/CameraHal(  110): (b71861a8)   hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:2173 UseBuffersPreview - Timeout expired on preview buffer registration
E/CameraHal(  110): (b71861a8)   hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:2186 UseBuffersPreview - Exiting function UseBuffersPreview because of ret -1 eError=0

I am attaching logs for the failure let me know if any peculiar behavior is observed. Please suggest ways to move ahead in this direction.

Thanks and Regards,

Ameya

CAMHAL_logs_OV5650_Blaze_ducati.7z
  • Front camera is tested and proven on 4AJ2.5. Please make sure build for Blaze and not Blaze Tablet. Also, Ductai prebuilt binary must also be for Blaze.

    Please try this and let us know. If you face issues, undo the VFR disabling and send us the logs with pure TI baseline source.

  • Hi Mayank,

    Thanks for the quick response.

    As you suggested, I reverted the SetVFR change and now it is pure TI baseline with only one line change in board_config.h as follows.

     #define CAMERA_SEC_FACING   1;  // front change from 0 to 1
    as suggested in app note.

    I made it sure to build it for blaze board (not blaze_tablet) and with this image as well, I am facing the same issue.

    Please find attached logs when front camera was invoked from camera_test application with preview.

    I even tried similar exercise with pre-built binaries from http://omappedia.org/wiki/Android:_Working_with_pre-built_binaries but still the issue persists.

    Let me know your take on the attached logs.


    Regards,

    Ameya

    CAMHAL_logs_OV5650_Blaze_ducati_TI_baseline.txt.7z
  • Looks like you are trying to make Android treat secondary camera as back facing. If you want to do this, board_config alone is not enough. You need to change Camera properties and capabilities of secondary camera. This actually comes from DCC files, You can either modify OV5650 DCC files (if you have the tool) or hardcode it at the point where capabilities are queried.

  • Hi Mayank,

    I reverted the change in board_config and now its TI baseline. Even then I am hitting on preview buffer timeout. Check logs attached.

    I am currently using prebuilt DCC binaries. And I do have all dsptools in place which came along with TI package. Is there any specific tool that you are refering to for building DCC binaries?

    Regards,
    Ameya

    CAMHAL_logs_OV5650_Blaze_ducati_TI_baseline_orig.txt.7z
  • Hello Ameya,

    I tried both pre built binaries and my own Android File System for 4AJ2.5P2 for blaze tablet. The front facing camera is available from the CameraOMAP app.

    The latest posted logs don't seem to be from TI baseline. Can you confirm what TI's android release you're using.

    Regards,

    Rogelio

  • Hi Rogelio,

    Thanks for the reply.

    Disabling the media controller and the V4L2 adapter on the kernel side did the trick for me to bring up front camera.

    Hence closing this query.

    @Mayank: Your help is highly appreciated. Many thanks.

    Regards,
    Ameya