pvrusb2: fix g/s_tuner support
commitf452581990ad01497dfefb023102d7dc49cbe75a
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 12 Jun 2011 09:39:52 +0000 (12 06:39 -0300)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:55:03 +0000 (1 13:55 -0700)
tree40f5aee17876934adbcea65e0270c399320d6607
parent3db400fabd1f22b4bb4187142d0eb33efceff85a
pvrusb2: fix g/s_tuner support

[ upstream commit 50e9efd60b213ce43ad6979bfc18e25eec2d8413 ]

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>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/media/video/pvrusb2/pvrusb2-hdw.c