diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-05-29 02:55:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-13 10:33:08 -0400 |
commit | ab6e134a48a58b111f28dfb5c8440a56d6be10c5 (patch) | |
tree | 403353d40dd73214711a9fb0acae8e27e03812af /drivers/media/usb/hdpvr | |
parent | 36b51146539c42306fd6ab1ff30cfc5a2d13c706 (diff) |
[media] hdpvr: fix querystd 'unknown format' return
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>
Diffstat (limited to 'drivers/media/usb/hdpvr')
-rw-r--r-- | drivers/media/usb/hdpvr/hdpvr-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/hdpvr/hdpvr-video.c b/drivers/media/usb/hdpvr/hdpvr-video.c index 2d02b490756b..81018c478f44 100644 --- a/drivers/media/usb/hdpvr/hdpvr-video.c +++ b/drivers/media/usb/hdpvr/hdpvr-video.c | |||
@@ -613,7 +613,7 @@ static int vidioc_querystd(struct file *file, void *_fh, v4l2_std_id *a) | |||
613 | struct hdpvr_fh *fh = _fh; | 613 | struct hdpvr_fh *fh = _fh; |
614 | int ret; | 614 | int ret; |
615 | 615 | ||
616 | *a = V4L2_STD_ALL; | 616 | *a = V4L2_STD_UNKNOWN; |
617 | if (dev->options.video_input == HDPVR_COMPONENT) | 617 | if (dev->options.video_input == HDPVR_COMPONENT) |
618 | return fh->legacy_mode ? 0 : -ENODATA; | 618 | return fh->legacy_mode ? 0 : -ENODATA; |
619 | ret = get_video_info(dev, &vid_info); | 619 | ret = get_video_info(dev, &vid_info); |