[media] tuner-core: return the frequency range of the correct tuner
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 25 May 2012 15:01:40 +0000 (12:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 11 Jun 2012 21:12:56 +0000 (18:12 -0300)
commitc44ff8fa026ab34d95ce0805a56ca507c313a91d
tree0445e720c6313a851cb9c5b0eab224285a10b7c5
parenta5ee6e41b2dee2aae2930278ba070ea8385db040
[media] tuner-core: return the frequency range of the correct tuner

The frequency range of the current tuner (radio or TV) was returned
instead of the frequency range of the requested tuner (which depends
on the device node).

This bug caused the frequency range of the radio tuner to be returned
when G_TUNER was called on a video node.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tuner-core.c