diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-07 07:51:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-01-04 21:58:44 -0500 |
commit | 2a221d34b646c7e1f44a1b1d8af4eee18015fbda (patch) | |
tree | 6490ccd3bea49d66de83cacc61a0e2e10bf89998 | |
parent | 1d179eeedc8cb48712bc236ec82ec6c63af42008 (diff) |
[media] em28xx: zero vbi_format reserved array and add try_vbi_fmt
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-video.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index 971046861f7f..e26e01422a2d 100644 --- a/drivers/media/usb/em28xx/em28xx-video.c +++ b/drivers/media/usb/em28xx/em28xx-video.c | |||
@@ -1521,6 +1521,7 @@ static int vidioc_g_fmt_vbi_cap(struct file *file, void *priv, | |||
1521 | format->fmt.vbi.sampling_rate = 6750000 * 4 / 2; | 1521 | format->fmt.vbi.sampling_rate = 6750000 * 4 / 2; |
1522 | format->fmt.vbi.count[0] = dev->vbi_height; | 1522 | format->fmt.vbi.count[0] = dev->vbi_height; |
1523 | format->fmt.vbi.count[1] = dev->vbi_height; | 1523 | format->fmt.vbi.count[1] = dev->vbi_height; |
1524 | memset(format->fmt.vbi.reserved, 0, sizeof(format->fmt.vbi.reserved)); | ||
1524 | 1525 | ||
1525 | /* Varies by video standard (NTSC, PAL, etc.) */ | 1526 | /* Varies by video standard (NTSC, PAL, etc.) */ |
1526 | if (dev->norm & V4L2_STD_525_60) { | 1527 | if (dev->norm & V4L2_STD_525_60) { |
@@ -1549,6 +1550,7 @@ static int vidioc_s_fmt_vbi_cap(struct file *file, void *priv, | |||
1549 | format->fmt.vbi.sampling_rate = 6750000 * 4 / 2; | 1550 | format->fmt.vbi.sampling_rate = 6750000 * 4 / 2; |
1550 | format->fmt.vbi.count[0] = dev->vbi_height; | 1551 | format->fmt.vbi.count[0] = dev->vbi_height; |
1551 | format->fmt.vbi.count[1] = dev->vbi_height; | 1552 | format->fmt.vbi.count[1] = dev->vbi_height; |
1553 | memset(format->fmt.vbi.reserved, 0, sizeof(format->fmt.vbi.reserved)); | ||
1552 | 1554 | ||
1553 | /* Varies by video standard (NTSC, PAL, etc.) */ | 1555 | /* Varies by video standard (NTSC, PAL, etc.) */ |
1554 | if (dev->norm & V4L2_STD_525_60) { | 1556 | if (dev->norm & V4L2_STD_525_60) { |
@@ -1991,6 +1993,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = { | |||
1991 | .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap, | 1993 | .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap, |
1992 | .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap, | 1994 | .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap, |
1993 | .vidioc_g_fmt_vbi_cap = vidioc_g_fmt_vbi_cap, | 1995 | .vidioc_g_fmt_vbi_cap = vidioc_g_fmt_vbi_cap, |
1996 | .vidioc_try_fmt_vbi_cap = vidioc_g_fmt_vbi_cap, | ||
1994 | .vidioc_s_fmt_vbi_cap = vidioc_s_fmt_vbi_cap, | 1997 | .vidioc_s_fmt_vbi_cap = vidioc_s_fmt_vbi_cap, |
1995 | .vidioc_enum_framesizes = vidioc_enum_framesizes, | 1998 | .vidioc_enum_framesizes = vidioc_enum_framesizes, |
1996 | .vidioc_g_audio = vidioc_g_audio, | 1999 | .vidioc_g_audio = vidioc_g_audio, |