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.

[TMDSEVM3730] TVP5146 capture issue

Other Parts Discussed in Thread: TVP5146, DM3730, TVP5146M2, WL1271

Hello,

I got TMDSEVM3730 last Friday, and tested the basic functionalities of TMDSEVM3730.

Except the capture of TVP5146, it seems to be OK for everythings.

My issue is as followings;

Eventhough I used three types of android images, such as GB (android 2.3 delivered at TMDSEVM3730 box), ICS (TI pre-built image) and JB (rowboat-jb-am37x), it was impossible to see anythings at camera app.

I just did test by connecting the general analog camera w/ CVBS input at TMDSEVM3730.

if there is any restriction or guide to capture of TVP5146, would you inform me ?

PS.

I attached logcat, booting log and screen capture of three android images (GB, ICS and JB) using TVP5146.

2014.01.14.zip
  • Hi Jong,

    You need to port camera support in your Android distribution. I suggest you as first step to read the following articles about adding camera module to linux kernel, enabling camera module to kernel config and enabling camera port on android:

    http://processors.wiki.ti.com/index.php/TI-Android-DevKit-Camera_Porting_Guide

    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_PortingGuides#Camera

    Then irrespectively of which sensor your are using, you have to just make Camera HAL layer to call make use of them. Once your sensor is working fine with linux and V4L2, then you can easily make use of same call in camera HAL layer. It will straight away work. If TVP5146 already enable in kernel and you can access it using v4l2 capture.

    BR

    Tsvetolin Shulev

  • Dear Cvetolin,

    For test case of android GB, I did not port camera module at android GB. It was Ginger Bread image of original SD card included in TMDESEVM3730 (AM/DM37x Evaluation Module, Mistral).

    I wondered why it is impossible to capture using TVP5146 based on Ginger Bread image of original SD card included in TMDESEVM3730.

    In details, as seeing the log of dm3730_gb_booting.txt (included in the attached),

    tvp514x 3-005c: tvp5146m2 found at 0xb8 (OMAP I2C adapter)

    I could see to register i2c of TVP5146 in kernel correctly.

    And, as seeing dm3730_gb_logcat.txt (included in the attached),

    01-01 00:01:23.023: I/ActivityManager(967): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera } from pid 1060
    01-01 00:01:23.062: I/ActivityManager(967): Start proc com.android.camera for activity com.android.camera/.Camera: pid=1378 uid=10023 gids={1006, 1015}
    01-01 00:01:23.101: D/dalvikvm(1378): Debugger has detached; object registry had 1 entries
    01-01 00:01:23.101: I/WindowManager(967): Setting rotation to 1, animFlags=1
    01-01 00:01:23.117: I/ActivityManager(967): Config changed: { scale=1.0 imsi=0/0 loc=md_US touch=3 keys=1/1/2 nav=2/1 orien=2 layout=19 uiMode=17 seq=3}
    01-01 00:01:23.453: V/CameraHolder(1378): open camera 0
    01-01 00:01:23.453: V/Camera(1378): connect
    01-01 00:01:23.460: D/CameraHardwareStub(887): initHeapLocked: preview size=320x240
    01-01 00:01:23.460: I/StagefrightPlayer(887): setDataSource('/system/media/audio/ui/camera_click.ogg')
    01-01 00:01:23.492: I/StagefrightPlayer(887): setDataSource('/system/media/audio/ui/VideoRecord.ogg')
    01-01 00:01:23.515: V/Camera(1378): getParameters
    01-01 00:01:23.515: V/Camera(1378): getParameters
    01-01 00:01:23.515: V/Camera(1378): setPreviewDisplay
    01-01 00:01:23.515: D/Camera(1378): app passed NULL surface
    01-01 00:01:23.515: V/Camera(1378): sendCommand
    01-01 00:01:23.515: V/Camera(1378): getParameters
    01-01 00:01:23.539: V/Camera(1378): setParameters
    01-01 00:01:23.539: D/CameraHardwareStub(887): initHeapLocked: preview size=320x240
    01-01 00:01:23.539: V/camera(1378): startPreview
    01-01 00:01:23.539: V/Camera(1378): startPreview
    01-01 00:01:23.640: I/ActivityManager(967): Displayed com.android.camera/.Camera: +584ms
    01-01 00:01:23.726: V/Camera(1378): setPreviewDisplay
    01-01 00:01:23.765: E/SurfaceFlinger(967): LayerBuffer::BufferSource::postBuffer() invalid buffer (offset=345600, size=153600, heap-size=462848
    01-01 00:01:23.773: W/IInputConnectionWrapper(1060): showStatusIcon on inactive InputConnection
    01-01 00:01:23.804: W/OrientationEventListener(1378): Cannot detect sensors. Not enabled

    What is problem that I could not capture on TVP5146 using Ginger Bread image of original SD card (included in TMDESEVM3730) at TMDESEVM3730 (AM/DM37x Evaluation Module, Mistral) ?

    If anyone know the reason of it, plz, inform the correct solution.

  • John,

    The difference of the behaviour of both GingerBread distributions (distribution from the SDcard and downloaded Rowboat distribution) can be explain with the different sources. The GingerBread from the SDCard is TI's Android 2.3.4 release which provides integrated SGX (3D graphics) drivers, Adobe Flash 10 support, TI hardware abstraction for video overlay, WLAN, Bluetooth support for WL1271, PowerManagement, S-Video, Camera on Beagle XM/AM37x EVM, RowboPERF performance measurement application, NAND (UBIFS), Fastboot and standard applications from Android. The sources can be downloaded from the link:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/TI_Android_DevKit/TI_Android_GingerBread_2_3_4_DevKit_2_1/index_FDS.html

    BR

    Tsvetolin Shulev

  • Cvetolin,

    I checked android images of http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/TI_Android_DevKit/TI_Android_GingerBread_2_3_4_DevKit_2_1/index_FDS.html at TMDSEVM3730. I could see the preview of tvp5146 using android GB 2.3.4 image which would be enabled overlay and tvp514x macro. It previewed the video image as performing overlay function called at camerahardware.

    Is there any patch for overlay functionality of tvp5146 at android JB (4.1.2 or 4.3) ?

    If you have one, plz, would you share it to me ?

    Thx, James

  • Hi James,

    The file tvp514x.c presents in the Rowboat's Andriod ICS at the link:

    https://gitorious.org/rowboat

    If there are some functionalities related to the tvp5146 in the TI's Android GingerBread but didn't present in the Rowboat's Andriod ICS you can make diff between both versions and add to the ICS what you need.

    BR

    Tsvetolin Shulev