linux/drivers/media/video/pvrusb2
Pantelis Koukousoulas 25d8527a44 V4L/DVB (5035): Pvrusb2: Enable radio mode round #2
This is the logic that:
  a) Ensures /sys/class/pvrusb2/sn-*/ctl_frequency/{max,min}_val are
     "automagically" reset to sane values on each mode change.

  b) Allows tuning to a radio frequency by something like:
     echo `perl -e "print int(94.9*16000 + 0.5)"` \
       > /sys/class/pvrusb2/sn-*/ctl_input/cur_val


The trick was to take advantage of the already existing .get_{min,max}_value
function pointers in pvr2_ctrl, to "dynamically override" the hardcoded values
for min/max frequency at runtime.

For a moment I thought to dispose of the hardcoded MIN/MAX_FREQ and use the
hirange/lowrange fields of the v4l2_tuner struct instead, but then I see that
tuner-core.c kinda hardcodes these as well, so I decided to not bother.

Signed-off-by: Pantelis Koukousoulas <pakt223@freemail.gr>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-21 13:34:22 -02:00
..
Kconfig V4L/DVB (4661): Pvrusb2: improve 24XXX config option description 2006-10-03 15:13:31 -03:00
Makefile V4L/DVB (4604): Fix broken pvrusb2 build 2006-09-26 12:30:35 -03:00
pvrusb2-audio.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-audio.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-context.c WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
pvrusb2-context.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-ctrl.c V4L/DVB (4376): Make it possible for run-time calculation of control min/max in pvrusb2 2006-09-26 11:53:20 -03:00
pvrusb2-ctrl.h V4L/DVB (4240): Various V4L control enhancements in pvrusb2 2006-06-27 00:17:28 -03:00
pvrusb2-cx2584x-v4l.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-cx2584x-v4l.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-debug.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-debugifc.c V4L/DVB (4288): Clean out a zillion sparse warnings in pvrusb2 2006-06-30 15:59:50 -03:00
pvrusb2-debugifc.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-eeprom.c V4L/DVB (4288): Clean out a zillion sparse warnings in pvrusb2 2006-06-30 15:59:50 -03:00
pvrusb2-eeprom.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-encoder.c V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -02:00
pvrusb2-encoder.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-hdw-internal.h V4L/DVB (4595): Remove CONFIG_VIDEO_PVRUSB2_24XXX from pvrusb2 driver 2006-09-26 12:30:35 -03:00
pvrusb2-hdw.c V4L/DVB (5035): Pvrusb2: Enable radio mode round #2 2007-02-21 13:34:22 -02:00
pvrusb2-hdw.h V4L/DVB (4662): Pvrusb2: Implement VIDIOC_INT_[G|S]_REGISTER 2006-10-03 15:13:34 -03:00
pvrusb2-i2c-chips-v4l2.c V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -02:00
pvrusb2-i2c-cmd-v4l2.c V4L/DVB (5035): Pvrusb2: Enable radio mode round #2 2007-02-21 13:34:22 -02:00
pvrusb2-i2c-cmd-v4l2.h V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -02:00
pvrusb2-i2c-core.c i2c: Declare more i2c_adapter parent devices 2007-02-13 22:09:03 +01:00
pvrusb2-i2c-core.h V4L/DVB (4287): Pvrusb2/: possible cleanups 2006-06-30 15:59:48 -03:00
pvrusb2-io.c usb: pvrusb2-io free urb cleanup 2006-12-01 14:23:32 -08:00
pvrusb2-io.h V4L/DVB (4337): Refine dead code elimination in pvrusb2 2006-07-29 17:22:24 -03:00
pvrusb2-ioread.c V4L/DVB (4337): Refine dead code elimination in pvrusb2 2006-07-29 17:22:24 -03:00
pvrusb2-ioread.h V4L/DVB (4287): Pvrusb2/: possible cleanups 2006-06-30 15:59:48 -03:00
pvrusb2-main.c V4L/DVB (4339): Removed the remaining config.h stuff 2006-09-26 09:03:16 -03:00
pvrusb2-std.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-std.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-sysfs.c V4L/DVB (4594): Remove some dead data elements from pvrusb2 driver 2006-09-26 12:30:35 -03:00
pvrusb2-sysfs.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-tuner.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-tuner.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-util.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-v4l2.c [PATCH] mark struct file_operations const 4 2007-02-12 09:48:45 -08:00
pvrusb2-v4l2.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-video-v4l.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-video-v4l.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2-wm8775.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-wm8775.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00
pvrusb2.h V4L/DVB (4228a): pvrusb2 to kernel 2.6.18 2006-06-27 00:17:15 -03:00