linux/drivers/media/video/em28xx
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
..
em28xx-cards.c V4L/DVB (6537): Add entry for Pixelview Prolink PlayTV USB 2.0 2008-01-25 19:01:55 -02:00
em28xx-core.c V4L/DVB (6350): V4L: possible leak in em28xx_init_isoc 2007-10-22 12:01:49 -02:00
em28xx-i2c.c V4L/DVB (6536): Add a hint for boards without unique USB ID 2008-01-25 19:01:55 -02:00
em28xx-input.c V4L/DVB (6079): Cleanup: remove linux/moduleparam.h from drivers/media files 2007-10-09 22:06:17 -03:00
em28xx-video.c 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
em28xx.h 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 (6479): use input functions, should depend on INPUT 2007-11-04 21:41:23 -02:00
Makefile kbuild: fix unneeded rebuilds in drivers/media/video after moving source tree 2006-04-04 16:50:50 +02:00