mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
facetimehd: don't report that we can do tv standards
This commit is contained in:
17
fthd_v4l2.c
17
fthd_v4l2.c
@@ -339,8 +339,10 @@ static int fthd_v4l2_ioctl_enum_input(struct file *filp, void *priv,
|
||||
if (input->index != 0)
|
||||
return -EINVAL;
|
||||
|
||||
memset(input, 0, sizeof(*input));
|
||||
strcpy(input->name, "Camera");
|
||||
input->type = V4L2_INPUT_TYPE_CAMERA;
|
||||
input->std = V4L2_STD_ALL;
|
||||
|
||||
strcpy(input->name, "Apple Facetime HD");
|
||||
return 0;
|
||||
}
|
||||
@@ -358,17 +360,6 @@ static int fthd_v4l2_ioctl_s_input(struct file *filp, void *priv, unsigned int i
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fthd_v4l2_ioctl_s_std(struct file *filp, void *priv, v4l2_std_id std)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fthd_v4l2_ioctl_g_std(struct file *filp, void *priv, v4l2_std_id *std)
|
||||
{
|
||||
*std = V4L2_STD_NTSC_M;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fthd_v4l2_ioctl_querycap(struct file *filp, void *priv,
|
||||
struct v4l2_capability *cap)
|
||||
{
|
||||
@@ -567,8 +558,6 @@ static struct v4l2_ioctl_ops fthd_ioctl_ops = {
|
||||
.vidioc_enum_input = fthd_v4l2_ioctl_enum_input,
|
||||
.vidioc_g_input = fthd_v4l2_ioctl_g_input,
|
||||
.vidioc_s_input = fthd_v4l2_ioctl_s_input,
|
||||
.vidioc_s_std = fthd_v4l2_ioctl_s_std,
|
||||
.vidioc_g_std = fthd_v4l2_ioctl_g_std,
|
||||
.vidioc_enum_fmt_vid_cap = fthd_v4l2_ioctl_enum_fmt_vid_cap,
|
||||
.vidioc_try_fmt_vid_cap = fthd_v4l2_ioctl_try_fmt_vid_cap,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user