]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7298): pvrusb2: Account for dtv choice (a bit) in v4l2 implementation
authorMike Isely <isely@pobox.com>
Tue, 22 Apr 2008 17:45:37 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:46 +0000 (14:07 -0300)
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>
drivers/media/video/pvrusb2/pvrusb2-v4l2.c

index 8f0587ebd4bd8609b4e97f785f3641f176b01344..5e2292726e945589c6d2e19a86c41b4781efd807 100644 (file)
@@ -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;