summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2011-10-04 19:16:14 +0200
committerMauro Carvalho Chehab2011-10-08 13:00:54 +0200
commita5abdb6044f558bd5da24f122d7d622f887562c7 (patch)
treeb370383a53da66d553e20f7060728aed2558c476
parent[media] saa7115: Trust that V4L2 core will fill the mask (diff)
downloadkernel-qcow2-linux-a5abdb6044f558bd5da24f122d7d622f887562c7.tar.gz
kernel-qcow2-linux-a5abdb6044f558bd5da24f122d7d622f887562c7.tar.xz
kernel-qcow2-linux-a5abdb6044f558bd5da24f122d7d622f887562c7.zip
[media] pvrusb2: initialize standards mask before detecting standard
Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-v4l2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
index 0d029da07e6b..ce7ac4595276 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
@@ -230,6 +230,7 @@ static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg)
case VIDIOC_QUERYSTD:
{
v4l2_std_id *std = arg;
+ *std = V4L2_STD_ALL;
ret = pvr2_hdw_get_detected_std(hdw, std);
break;
}