]> err.no Git - linux-2.6/commit
V4L/DVB (5842): ivtv: Add locking to ensure stream setup is atomic.
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 10 Jul 2007 17:58:33 +0000 (14:58 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 18 Jul 2007 17:24:47 +0000 (14:24 -0300)
commitf885969196da6ae905162c0d1c5f0553de12cb40
tree3d23cbba88366834d05d8b6a63c6889caf789b37
parent0901973f4bde9c1004795c9c2321bdc51f3996f1
V4L/DVB (5842): ivtv: Add locking to ensure stream setup is atomic.

Starting an MPEG and VBI capture simultaneously caused errors in
the VBI setup: this setup was done twice when it should be done
only for the first stream that is opened.
Added a mutex to prevent this from happening.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-driver.c
drivers/media/video/ivtv/ivtv-driver.h
drivers/media/video/ivtv/ivtv-streams.c