OpenCloudOS-Kernel/drivers/media/pci/cx88
Devin Heitmueller 4e0973a918 [media] cx88: Fix regression in initial video standard setting
Setting initial standard at the top of cx8800_initdev would cause the
first call to cx88_set_tvnorm() to return without programming any
registers (leaving the driver saying it's set to NTSC but the hardware
isn't programmed).  Even worse, any subsequent attempt to explicitly
set it to NTSC-M will return success but actually fail to program the
underlying registers unless first changing the standard to something
other than NTSC-M.

Set the initial standard later in the process, and make sure the field
is zero at the beginning to ensure that the call always goes through.

This regression was introduced in the following commit:

commit ccd6f1d488 ("[media] cx88: move width, height and field to core
struct")

Author: Hans Verkuil <hans.verkuil@cisco.com>

[media] cx88: move width, height and field to core struct

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: <stable@vger.kernel.org>      # for v3.19 and up
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-06 07:26:25 -03:00
..
Kconfig [media] cx88: remove dependency on btcx-risc 2014-11-03 08:29:51 -02:00
Makefile [media] cx88: remove dependency on btcx-risc 2014-11-03 08:29:51 -02:00
cx88-alsa.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-blackbird.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-cards.c [media] cx88: Fix regression in initial video standard setting 2017-06-06 07:26:25 -03:00
cx88-core.c [media] cx88: convert struct cx88_core.refcount from atomic_t to refcount_t 2017-04-05 15:25:54 -03:00
cx88-dsp.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-dvb.c [media] cx88: constify mb86a16_config structure 2017-04-17 12:52:41 -03:00
cx88-i2c.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-input.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
cx88-mpeg.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-reg.h [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-tvaudio.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-vbi.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-video.c [media] cx88: Fix regression in initial video standard setting 2017-06-06 07:26:25 -03:00
cx88-vp3054-i2c.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-vp3054-i2c.h [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88.h [media] cx88: convert struct cx88_core.refcount from atomic_t to refcount_t 2017-04-05 15:25:54 -03:00