android_kernel_google_msm/drivers/media/video/cx88
Jonathan Nieder 579b2b4512 [media] cx88: gracefully reject attempts to use unregistered cx88-blackbird driver
It should not be possible to enter mpeg_open and acquire core->lock
without the blackbird driver being registered, so just error out if it
is not.  This makes the code more readable and should prevent the bug
fixed by the patch "hold device lock during sub-driver initialization"
from resurfacing again.

Similarly, if we enter mpeg_release and acquire core->lock then either
the blackbird driver is registered (since open files keep it loaded)
or the sysadmin forced the driver's removal.  In the latter case the
state will be inconsistent and this is worth a loud warning.

Tested-by: Andi Huber <hobrom@gmx.at>
Tested-by: Marlon de Boer <marlon@hyves.nl>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-05-20 09:29:40 -03:00
..
cx88-alsa.c [media] cx88-alsa: fix compiler warning 2011-03-22 04:54:03 -03:00
cx88-blackbird.c [media] cx88: gracefully reject attempts to use unregistered cx88-blackbird driver 2011-05-20 09:29:40 -03:00
cx88-cards.c [media] cx88: add support for TeVii S464 PCI card 2011-03-21 20:32:27 -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] cx88: fix locking of sub-driver operations 2011-05-20 09:29:36 -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] Fix cx88 remote control input 2011-05-04 16:30:20 -03:00
cx88-mpeg.c [media] cx88: protect cx8802_devlist with a mutex 2011-05-20 09:29:38 -03:00
cx88-reg.h
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] use pci_dev->revision 2011-05-20 07:26:16 -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
cx88.h [media] cx88: hold device lock during sub-driver initialization 2011-05-20 09:29:37 -03:00
Kconfig [media] rc: rename the remaining things to rc_core 2010-12-29 08:16:50 -02:00
Makefile