[media] hdpvr: fix querystd 'unknown format' return
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 29 May 2013 06:55:13 +0000 (03:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Jun 2013 14:33:08 +0000 (11:33 -0300)
If no format has been detected, then querystd should return V4L2_STD_UNKNOWN,
not V4L2_STD_ALL.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/hdpvr/hdpvr-video.c

index 2d02b490756b482e898d3096dbd50189118617ec..81018c478f446e8d69dc7c9f18d3f87249fb11bb 100644 (file)
@@ -613,7 +613,7 @@ static int vidioc_querystd(struct file *file, void *_fh, v4l2_std_id *a)
        struct hdpvr_fh *fh = _fh;
        int ret;
 
-       *a = V4L2_STD_ALL;
+       *a = V4L2_STD_UNKNOWN;
        if (dev->options.video_input == HDPVR_COMPONENT)
                return fh->legacy_mode ? 0 : -ENODATA;
        ret = get_video_info(dev, &vid_info);