android_kernel_samsung_msm8976/drivers/media/video/pvrusb2
Pantelis Koukousoulas 275b2e283b V4L/DVB (5034): Pvrusb2: Enable radio mode round #1
This is the logic that supports switching modes via e.g.,
  echo radio > /sys/class/pvrusb2/sn-*/ctl_input/cur_val.

To do the mode switching we need to:
a) broadcast AUDC_SET_RADIO and
b) issue the CX2341X_ENC_MUTE_VIDEO command to the encoder. 

The first is done by adding a new pvr2_i2c_op and having it trigger on 
input change, the second by adding this command in pvr2_encoder_start() 
and requesting an encoder restart on input change by setting 
stale_subsys_mask appropriately. 

The clues about AUDC_SET_RADIO and CX2341X_ENC_MUTE_VIDEO were kindly 
provided by Hans Verkuil on the pvrusb2 mailing list. The idea to 
implement mode switching this way (on input change) is due to Mike Isely.

Why AUDC_SET_RADIO/VIDIOC_S_STD are used for switching? I can 't be sure, 
but I think this can be traced to a cornell student being the first to 
implement radio support in ivtv "as a different standard". I think the 
rest just evolved from there (it 's in the ivtv ML archives).

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:21 -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
pvrusb2-context.c WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
pvrusb2-context.h
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
pvrusb2-debug.h
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
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
pvrusb2-encoder.c V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -02:00
pvrusb2-encoder.h
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 (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -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 (5034): Pvrusb2: Enable radio mode round #1 2007-02-21 13:34:21 -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
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
pvrusb2-tuner.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-tuner.h
pvrusb2-util.h
pvrusb2-v4l2.c [PATCH] mark struct file_operations const 4 2007-02-12 09:48:45 -08:00
pvrusb2-v4l2.h
pvrusb2-video-v4l.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-video-v4l.h
pvrusb2-wm8775.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
pvrusb2-wm8775.h
pvrusb2.h