V4L/DVB (9742): em28xx-alsa: implement another locking schema

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=50f3beb50abe0cc0228363af804e50e710b3e5b0
Commit:     50f3beb50abe0cc0228363af804e50e710b3e5b0
Parent:     7a8f4ccfd572a11f609439dc6a75165b441641bc
Author:     Mauro Carvalho Chehab <mchehab <at> redhat.com>
AuthorDate: Mon Nov 24 08:45:57 2008 -0300
Committer:  Mauro Carvalho Chehab <mchehab <at> redhat.com>
CommitDate: Mon Nov 24 12:24:52 2008 -0200

    V4L/DVB (9742): em28xx-alsa: implement another locking schema

    Instead of using a spinlock, it is better to call the proper pcm stream
    locking schema.

    Signed-off-by: Mauro Carvalho Chehab <mchehab <at> redhat.com>
---
 drivers/media/video/em28xx/em28xx-audio.c |   37 ++++++++++++++++++----------
 1 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/drivers/media/video/em28xx/em28xx-audio.c b/drivers/media/video/em28xx/em28xx-audio.c
index ac3292d..dfac2e0 100644
--- a/drivers/media/video/em28xx/em28xx-audio.c
+++ b/drivers/media/video/em28xx/em28xx-audio.c
@@ -75,7 +75,9 @@ static void em28xx_audio_isocirq(struct urb *urb)
 	struct em28xx            *dev = urb->context;
 	int                      i;
 	unsigned int             oldptr;
+#ifdef NO_PCM_LOCK
 	unsigned long            flags;
+#endif
 	int                      period_elapsed = 0;
(Continue reading)


Gmane