From: Mike Isely <isely@pobox.com>
Date: Tue, 22 Apr 2008 17:45:37 +0000 (-0300)
Subject: V4L/DVB (7298): pvrusb2: Account for dtv choice (a bit) in v4l2 implementation
X-Git-Tag: firefly_0821_release~21561^2~368
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=895c3e8bfec9738251da9a2a8592dab15ec3a1bd;p=firefly-linux-kernel-4.4.55.git

V4L/DVB (7298): pvrusb2: Account for dtv choice (a bit) in v4l2 implementation

The v4l2 implementation in pvru2b2 must produce a sane answer when
asked, when the input choice is set to dtv.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---

diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
index 8f0587ebd4bd..5e2292726e94 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
@@ -267,6 +267,7 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file,
 		ret = 0;
 		switch (vi->index) {
 		case PVR2_CVAL_INPUT_TV:
+		case PVR2_CVAL_INPUT_DTV:
 		case PVR2_CVAL_INPUT_RADIO:
 			tmp.type = V4L2_INPUT_TYPE_TUNER;
 			break;