[media] pvrusb2: fix g/s_tuner support
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 12 Jun 2011 09:39:52 +0000 (06:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 7 Jul 2011 18:02:40 +0000 (15:02 -0300)
commit50e9efd60b213ce43ad6979bfc18e25eec2d8413
treeab833483b2a5ee1e780694bf97628f09dd010cd9
parent227690df75382e46a4f6ea1bbc5df855a674b47f
[media] pvrusb2: fix g/s_tuner support

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>
drivers/media/video/pvrusb2/pvrusb2-hdw.c