]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (5117): Fix: VIDIOC_G_TUNER were returning an endless number of tuners
authorMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 22 Jan 2007 01:02:58 +0000 (22:02 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:48 +0000 (13:34 -0200)
commit5cc1dd8c3d8f80dbdce4d2e981a5e452af4b4529
treee7232d23668382405a3af48f41a1bf4ab493c95e
parent69b04f0dc1c489899b610cb44209da9d728b248f
V4L/DVB (5117): Fix: VIDIOC_G_TUNER were returning an endless number of tuners

pvrusb2 have only one tuner inside. However, as it were not handling
index, a call to v4l-info were returning as if it were an infinite
number of tuners:
$ v4l-info|grep VIDIOC_G_TUNER |head -5
    VIDIOC_G_TUNER(0)
    VIDIOC_G_TUNER(1)
    VIDIOC_G_TUNER(2)
    VIDIOC_G_TUNER(3)
    VIDIOC_G_TUNER(4)

Acked-by: Mike Isely <isely@isely.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-v4l2.c