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.

mt9v113 sensor issue

hi

i m using mt9v113 camera sensor

registered properly as a subdevice

bur when i m running gstreamer or ti demo app then

it shows

vpfecapture:standard not supported

can any one tell the probable solution

here is piece of code

static struct mt9v113_std_info mt9v113_std_list[] = {
    /* Standard: STD_NTSC_MJ */
    [MT9V113_STD_VGA] = {
     .width = VGA_NUM_ACTIVE_PIXELS,
     .height = VGA_NUM_ACTIVE_LINES,
     .video_std = MT9V113_IMAGE_STD_VGA,
     .standard = {
              .index = 0,
              .id = MT9V113_IMAGE_STD_VGA,
              .name = "VGA",
              .frameperiod = {1001, 30000},
              .framelines = 480
             },
    /* Standard: STD_PAL_BDGHIN */
    },
    [MT9V113_STD_QVGA] = {
     .width = QVGA_NUM_ACTIVE_PIXELS,
     .height = QVGA_NUM_ACTIVE_LINES,
     .video_std = MT9V113_IMAGE_STD_QVGA,
     .standard = {
              .index = 1,
              .id = MT9V113_IMAGE_STD_QVGA,
              .name = "QVGA",
              .frameperiod = {1001, 30000},
              .framelines = 320
             },
    },
    /* Standard: need to add for additional standard */
};

i m registering the driver as follows

in board_dm365.c

static struct mt9v113_platform_data mt9v113_pdata = {
       .clk_polarity = 0,
       .hs_polarity = 1,
       .vs_polarity = 1
};

static struct v4l2_input mt9m111_inputs[] = {
    {
        .index = 0,
        .name = "Camera",
        .type = V4L2_INPUT_TYPE_CAMERA,
        
    }
};

static struct vpfe_subdev_info vpfe_sub_devs[] = {

{
        .module_name = "mt9v113",
        //.is_camera = 1,
        .grp_id = VPFE_SUBDEV_MT9V113,
        .num_inputs = ARRAY_SIZE(mt9v113_inputs),
        .routes = 0,
                .can_route = 1,
        .inputs = mt9v113_inputs,
        .ccdc_if_params = {
            .if_type = VPFE_YCBCR_SYNC_8,
            .hdpol = VPFE_PINPOL_POSITIVE,
            .vdpol = VPFE_PINPOL_POSITIVE,
        },
        .board_info = {
            I2C_BOARD_INFO("mt9v113",0x3c),//MT9V113_I2C_ADDR ),
            // this is for PCLK rising edge /
            .platform_data = &mt9v113_pdata,
        },

}

thanxx

kailash