|
@@ -483,10 +483,14 @@ static int rvin_enum_input(struct file *file, void *priv,
|
|
|
return ret;
|
|
|
|
|
|
i->type = V4L2_INPUT_TYPE_CAMERA;
|
|
|
- i->std = vin->vdev.tvnorms;
|
|
|
|
|
|
- if (v4l2_subdev_has_op(sd, pad, dv_timings_cap))
|
|
|
+ if (v4l2_subdev_has_op(sd, pad, dv_timings_cap)) {
|
|
|
i->capabilities = V4L2_IN_CAP_DV_TIMINGS;
|
|
|
+ i->std = 0;
|
|
|
+ } else {
|
|
|
+ i->capabilities = V4L2_IN_CAP_STD;
|
|
|
+ i->std = vin->vdev.tvnorms;
|
|
|
+ }
|
|
|
|
|
|
strlcpy(i->name, "Camera", sizeof(i->name));
|
|
|
|