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.

How to modify the HAL's camera configuration in AM3715 with Android 2.3.3

Hi,

Our project  developed a PDA devices, using TI-Android-GingerBread-2.3.4-DevKit,  I encountered some of the debug camera, TI offers the demo code in the camera the sensor is mt9t111, but we replaced mt9p017, the HAL layer in the android how to modify? 

In kernel, mt9p017.c

    mt9p017->format.code = V4L2_MBUS_FMT_SRGGB10_1X10;
    mt9p017->format.width = 1296;
    mt9p017->format.height = 972;
    mt9p017->format.field = V4L2_FIELD_NONE;
    mt9p017->format.colorspace = V4L2_COLORSPACE_SRGB;

  const static struct mt9p017_frame_size mt9p017_sizes[] = {
      {  640, 480 }, /* VGA */
      { 1280, 720 }, /* 720p */
     { 1296, 972 },
     { 1920, 1080 }, /* 1080p */
     { 2592, 1944 }, /* 5 MP */
};

enum mt9p017_image_size {
    VGA_BIN_48FPS,
    HDV_720P_28FPS,
    HDV_972P_20FPS,
    HDV_1080P_10FPS,
    MT9P017_FIVE_MP,
};

but, in camerahardware.cpp and v4l2Camera.cpp, How to modify the appropriate configuration, can you tell me?

Thanks.

 

  • Hi Bing,

    1. If you are using kernel 2.6.37 then,

    - no change in camerahardware.cpp

    - in V4L2Camera.cpp

    See macro

    #define ENTITY_MT9T111_NAME             "mt9t111 2-003c"

    replace your sensor name over here, which is getting detected. It name is same then no change is required.

    I think this information will help you out for your integration.

    Kindly let us know for further inputs.

    BR,,

    satish

  • Hi satish,

    thanks, you replied my question.

    I am using the kernel version is 2.6.37, you mean just need to modify the macro--ENTITY_MT9T111_NAME  in V4l2Camera.cpp file,

    but,  I don't understand that the string "2-003c" within the meaning of what is intended.

    thanks,

    bing

  • Hi satish,

       I already know that this sensor "mt9p017" to be behind a string of what is "2-006c", thank you very much guidance,

    thanks,

    bing

  • Hi Bing,

    This is the name that is being populated in sysfs entry

    $cd  /sys/class/video4linux/videoX -> X is video node created for your sensor.

    $cat name

    BR,

    satish