pvrusb2: fix g/s_tuner support
commitf89e20d61648229d1282125cdebf416634f9ac80
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 12 Jun 2011 09:39:52 +0000 (12 06:39 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 17:23:06 +0000 (8 10:23 -0700)
treeb1ef04a57c4bedb1f851bddc8edfa184d9075477
parent46905de090c508781d0ef2a0add4503bc2066e57
pvrusb2: fix g/s_tuner support

commit 50e9efd60b213ce43ad6979bfc18e25eec2d8413 upstream.

The tuner-core subdev requires that the type field of v4l2_tuner is
filled in correctly. This is done in v4l2-ioctl.c, but pvrusb2 doesn't
use that yet, so we have to do it manually based on whether the current
input is radio or not.

Tested with my pvrusb2.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/pvrusb2/pvrusb2-hdw.c