]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
V4L: ivtv: Add locking to ensure stream setup is atomic
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 24 Jul 2007 12:07:40 +0000 (08:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:31 +0000 (14:27 -0700)
commite4d697881eb3e13efb8ff68d12edfe0c09124d09
tree6521a68b1aba315948f66cc336536732d269a97f
parent53a8e6e303cd55242bdfc5a1c898d21ce2805ac7
V4L: 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.

(cherry picked from commit f885969196da6ae905162c0d1c5f0553de12cb40)

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