From: Hans Verkuil <hans.verkuil@cisco.com>
Date: Wed, 29 May 2013 06:55:13 +0000 (-0300)
Subject: [media] hdpvr: fix querystd 'unknown format' return
X-Git-Tag: firefly_0821_release~176^2~3573^2~1780
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ab6e134a48a58b111f28dfb5c8440a56d6be10c5;p=firefly-linux-kernel-4.4.55.git

[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>
---

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)
 	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);