aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-ioctl.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2011-07-29 06:21:33 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-06 13:51:27 -0400
commit2b5d948040dedaa765c9046f634212a2757f5442 (patch)
tree5eca9dce56e37db89454f594cad569cabd031fed /drivers/media/video/ivtv/ivtv-ioctl.c
parent8c79eecebb730de8c0610d2b79a6a10e51106ba4 (diff)
[media] ivtv: fill in service_set
The service_set field of struct v4l2_sliced_vbi_cap was never filled in. The v4l2-compliance tool complained about this, so this is now fixed. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-ioctl.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-ioctl.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c
index 3e5c090af112..ecafa697326e 100644
--- a/drivers/media/video/ivtv/ivtv-ioctl.c
+++ b/drivers/media/video/ivtv/ivtv-ioctl.c
@@ -1203,9 +1203,7 @@ static int ivtv_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced
1203 cap->service_lines[f][l] = set; 1203 cap->service_lines[f][l] = set;
1204 } 1204 }
1205 } 1205 }
1206 return 0; 1206 } else if (cap->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) {
1207 }
1208 if (cap->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) {
1209 if (!(itv->v4l2_cap & V4L2_CAP_SLICED_VBI_OUTPUT)) 1207 if (!(itv->v4l2_cap & V4L2_CAP_SLICED_VBI_OUTPUT))
1210 return -EINVAL; 1208 return -EINVAL;
1211 if (itv->is_60hz) { 1209 if (itv->is_60hz) {
@@ -1215,9 +1213,16 @@ static int ivtv_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced
1215 cap->service_lines[0][23] = V4L2_SLICED_WSS_625; 1213 cap->service_lines[0][23] = V4L2_SLICED_WSS_625;
1216 cap->service_lines[0][16] = V4L2_SLICED_VPS; 1214 cap->service_lines[0][16] = V4L2_SLICED_VPS;
1217 } 1215 }
1218 return 0; 1216 } else {
1217 return -EINVAL;
1219 } 1218 }
1220 return -EINVAL; 1219
1220 set = 0;
1221 for (f = 0; f < 2; f++)
1222 for (l = 0; l < 24; l++)
1223 set |= cap->service_lines[f][l];
1224 cap->service_set = set;
1225 return 0;
1221} 1226}
1222 1227
1223static int ivtv_g_enc_index(struct file *file, void *fh, struct v4l2_enc_idx *idx) 1228static int ivtv_g_enc_index(struct file *file, void *fh, struct v4l2_enc_idx *idx)