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.

mt9p031 standard not supported



hi

using dmai loopback example in dm365 foe camera input ie MT9P031 camera

 if (attrs->videoInput == Capture_Input_CAMERA) {
        ctrl.id = V4L2_CID_EXPOSURE;
        /* Set flicker setting to 60 Hz for camera for better picture */
        if (std == V4L2_STD_720P_30
            || std == V4L2_STD_720P_50
            || std == V4L2_STD_720P_60) {
            ctrl.value = 0x2F2;
        }
        else if (std == V4L2_STD_1080P_30
            || std == V4L2_STD_1080P_50
            || std == V4L2_STD_1080P_60
            || std == V4L2_STD_1080I_30
            || std == V4L2_STD_1080I_50
            || std == V4L2_STD_1080I_60) {
            ctrl.value = 0x456;
        }
        else {
            ctrl.value = 0x5F4;
        }

(it gives ctrl.value = 0x5F4)

if(ioctl(fd, VIDIOC_S_STD, &std) == -1) {
        Dmai_err2("VIDIOC_S_STD failed on %s (%s)\n",
                  attrs->captureDevice, strerror(errno));
        return Dmai_EFAIL;
    }

it fails here

and error videostandard not supported

wht is probable answer

please help

i ve tried to give standard in boar_dm365.c file

#define V4L2_STD_MT9P031_STD_ALL (V4L2_STD_525_60\
    |V4L2_STD_625_50|V4L2_STD_525P_60\
     |V4L2_STD_625P_50|V4L2_STD_720P_30\
     |V4L2_STD_720P_50|V4L2_STD_720P_60\
     |V4L2_STD_1080I_30|V4L2_STD_1080I_50\
    |V4L2_STD_1080I_60|V4L2_STD_1080P_30\
    |V4L2_STD_1080P_50|V4L2_STD_1080P_60)
//end
/* Input available at the mt9p031 */
static struct v4l2_input mt9p031_inputs[] = {
    {
        .index = 0,
        .name = "Camera",
        .type = V4L2_INPUT_TYPE_CAMERA,
        .std  = V4L2_STD_MT9P031_STD_ALL,
    }
};

but results are same

thanxx

kailash