aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cx18/cx18-av-vbi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/pci/cx18/cx18-av-vbi.c')
-rw-r--r--drivers/media/pci/cx18/cx18-av-vbi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/pci/cx18/cx18-av-vbi.c b/drivers/media/pci/cx18/cx18-av-vbi.c
index baa36fbcd4d4..246982841fec 100644
--- a/drivers/media/pci/cx18/cx18-av-vbi.c
+++ b/drivers/media/pci/cx18/cx18-av-vbi.c
@@ -143,7 +143,9 @@ int cx18_av_g_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *
143 int is_pal = !(state->std & V4L2_STD_525_60); 143 int is_pal = !(state->std & V4L2_STD_525_60);
144 int i; 144 int i;
145 145
146 memset(svbi, 0, sizeof(*svbi)); 146 memset(svbi->service_lines, 0, sizeof(svbi->service_lines));
147 svbi->service_set = 0;
148
147 /* we're done if raw VBI is active */ 149 /* we're done if raw VBI is active */
148 if ((cx18_av_read(cx, 0x404) & 0x10) == 0) 150 if ((cx18_av_read(cx, 0x404) & 0x10) == 0)
149 return 0; 151 return 0;