linux/drivers/media
Sascha Sommer 5a80415bca V4L/DVB (6538): em28xx: fix locking to allow accesses from 2 different threads at the same time
The attached patch modifies the em28xx driver so that there can be ioctls from
multiple different threads.

This is necessary for capture apps like MPlayer that use different threads for
capturing and channel tuning.

Now the locking is only done for the ioctls that change properties of the
device or access the i2c bus.

It also removes some locks that look unnecessary:

In em28xx_init_dev:
  the videodevice is not registered yet so nothing can access the hardware
 meanwhile, the device struct is not assigned to the interface yet so no race
 with disconnect is possible

In em28xx_release_resources:
  it gets only called when dev->lock is already held

Signed-off-by: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-25 19:01:55 -02:00
..
common V4L/DVB (6508): ttpci: Rework Kconfig menus and Makefile 2008-01-25 19:01:53 -02:00
dvb V4L/DVB (6508): ttpci: Rework Kconfig menus and Makefile 2008-01-25 19:01:53 -02:00
radio V4L/DVB (6481): radio-gemtek: make file_operations const 2008-01-25 19:01:42 -02:00
video V4L/DVB (6538): em28xx: fix locking to allow accesses from 2 different threads at the same time 2008-01-25 19:01:55 -02:00
Kconfig V4L/DVB (6443): make tda9887 build selectable via Kconfig 2008-01-25 19:01:10 -02:00
Makefile V4L/DVB (6814): Makefile: always enter video/ 2007-12-13 17:58:05 -02:00