kernel-fxtec-pro1x/drivers/media/video/cx88
Devin Heitmueller 243bf1a24d [media] cx88: properly maintain decoder config when using MPEG encoder
The cx88 driver would force core->input to always be zero when doing the
the request_acquire().  While it wasn't actually changing the input register
in the hardware, the driver makes decision based on the current input.  In
particular, it decides whether to do things like enabling the comb filter
when on a composite input but disabling it on s-video.  So for example, on
the HVR-1300, using the s-video input with the MPEG encoder would end up with
the video decoder core configured as though the input type were composite.

In short, the driver state did not match the hardware state.

This patch does two things:

1.  It forces the input to zero only if actually switching to DVB mode.  This
prevents the input from changing when the blackbird driver opens the device.

2.  Keep track of what the input was set to when switching to DVB, and reset
it back when done.  This eliminates a condition where for example the user
had the analog side of the board set to capture on the s-video input, then
he used DVB for a bit, then the analog input would unexpectedly be set to
the tuner input.

This work was sponsored by Anevia S.A.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Florent Audebert <florent.audebert@anevia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-07-27 17:56:00 -03:00
..
cx88-alsa.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
cx88-blackbird.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
cx88-cards.c [media] cx88: replaced duplicated code with function call 2011-07-27 17:53:05 -03:00
cx88-core.c V4L/DVB: videobuf: add queue argument to videobuf_waiton() 2010-10-21 01:06:14 -02:00
cx88-dsp.c V4L/DVB: drivers/media: Make static data tables and strings const 2010-10-21 01:04:52 -02:00
cx88-dvb.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
cx88-i2c.c [media] cx88: Remove the obsolete i2c_adapter.id field 2010-12-30 12:17:19 -02:00
cx88-input.c [media] cx88: added support for Leadtek WinFast DTV1800 H with XC4000 tuner 2011-07-27 17:53:05 -03:00
cx88-mpeg.c [media] cx88: properly maintain decoder config when using MPEG encoder 2011-07-27 17:56:00 -03:00
cx88-reg.h V4L/DVB (6066): cx88-alsa: Change order of interrupt enabling, fix spurious IRQs 2007-10-09 22:05:55 -03:00
cx88-tvaudio.c [media] Add proper audio support for Nova-S Plus with wm8775 ADC 2011-03-21 20:32:19 -03:00
cx88-vbi.c V4L/DVB: drivers/media: Make static data tables and strings const 2010-10-21 01:04:52 -02:00
cx88-video.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
cx88-vp3054-i2c.c [media] cx88: Remove the obsolete i2c_adapter.id field 2010-12-30 12:17:19 -02:00
cx88-vp3054-i2c.h V4L/DVB (5629): Cx88: VP3054 support can't be a module when cx88 is compiled in 2007-07-18 14:23:11 -03:00
cx88.h [media] cx88: properly maintain decoder config when using MPEG encoder 2011-07-27 17:56:00 -03:00
Kconfig [media] rc: rename the remaining things to rc_core 2010-12-29 08:16:50 -02:00
Makefile V4L/DVB (11394): cx88: Add support for stereo and sap detection for A2 2009-06-16 19:14:17 -03:00