mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 19:10:01 +02:00
facetimehd: Don't expose a TV standard
We're a webcam so we don't support TV standards
This commit is contained in:
15
fthd_v4l2.c
15
fthd_v4l2.c
@@ -340,7 +340,7 @@ static int fthd_v4l2_ioctl_enum_input(struct file *filp, void *priv,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
input->type = V4L2_INPUT_TYPE_CAMERA;
|
input->type = V4L2_INPUT_TYPE_CAMERA;
|
||||||
input->std = V4L2_STD_ALL;
|
input->std = 0;
|
||||||
strcpy(input->name, "Apple Facetime HD");
|
strcpy(input->name, "Apple Facetime HD");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -358,17 +358,6 @@ static int fthd_v4l2_ioctl_s_input(struct file *filp, void *priv, unsigned int i
|
|||||||
return 0;
|
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,
|
static int fthd_v4l2_ioctl_querycap(struct file *filp, void *priv,
|
||||||
struct v4l2_capability *cap)
|
struct v4l2_capability *cap)
|
||||||
{
|
{
|
||||||
@@ -567,8 +556,6 @@ static struct v4l2_ioctl_ops fthd_ioctl_ops = {
|
|||||||
.vidioc_enum_input = fthd_v4l2_ioctl_enum_input,
|
.vidioc_enum_input = fthd_v4l2_ioctl_enum_input,
|
||||||
.vidioc_g_input = fthd_v4l2_ioctl_g_input,
|
.vidioc_g_input = fthd_v4l2_ioctl_g_input,
|
||||||
.vidioc_s_input = fthd_v4l2_ioctl_s_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_enum_fmt_vid_cap = fthd_v4l2_ioctl_enum_fmt_vid_cap,
|
||||||
.vidioc_try_fmt_vid_cap = fthd_v4l2_ioctl_try_fmt_vid_cap,
|
.vidioc_try_fmt_vid_cap = fthd_v4l2_ioctl_try_fmt_vid_cap,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user