[media] au0828: frequency handling fixes
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 22 Mar 2013 16:32:20 +0000 (13:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 18:10:02 +0000 (15:10 -0300)
commite1cf6587d5ba2085d7e5eae064b1adde5d07f801
tree9535dbce97a8070319de3ec2593c29cfd5d036c3
parent59e0548453bc24077e32748857e754d4bda2ab73
[media] au0828: frequency handling fixes

- define an initial frequency
- return an error if g_frequency is called for an invalid tuner index
- get the clamped frequency value after setting it: i.e. the tuner driver
  may clamp the given frequency to a valid frequency range and ctrl_freq
  should get that actual clamped frequency.
- remove obsolete tuner type checks (done by the core).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/au0828/au0828-video.c