Commit d9fb38cb authored by Dmitry Petrov's avatar Dmitry Petrov
Browse files

KNT: media: ov5640: make an ov5640_s_parm call ignore data from userspace

For some unknown reason, incorrect mode/resolution is provided to
ov5640_s_parm by gstreamer when the resolution is not 640x480.
To work around this problem, the capturemode, which is set by userspace,
is ignored and modes defined in the driver are used instead.
parent af6dd227
......@@ -1363,14 +1363,12 @@ static int ov5640_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *a)
orig_mode = sensor->streamcap.capturemode;
ret = ov5640_init_mode(sensor, frame_rate,
(u32)a->parm.capture.capturemode, orig_mode);
ret = ov5640_init_mode(sensor, frame_rate, orig_mode, orig_mode);
if (ret < 0)
return ret;
sensor->streamcap.timeperframe = *timeperframe;
sensor->streamcap.capturemode =
sensor->streamcap.capturemode = orig_mode;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment