]> bbs.cooldavid.org Git - net-next-2.6.git/commit
V4L/DVB (11616): cx18: Add a work queue for deferring empty buffer handoffs to the...
authorAndy Walls <awalls@radix.net>
Tue, 14 Apr 2009 01:42:43 +0000 (22:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:44 +0000 (18:20 -0300)
commit87116159517ecf6b9cf62a136f2935a63833c485
tree4a52a97e9e740304ed44d4348762836284f4d100
parentdeed75ed9f7576ada4bca02e6c851833a352a38d
V4L/DVB (11616): cx18: Add a work queue for deferring empty buffer handoffs to the firmware

This change defers sending all CX18_CPU_DE_SET_MDL commands, for a stream with
an ongoing capture, by adding a work queue to handle sending such commands when
needed.  This prevents any sleeps, caused by notifying the firmware of new
usable buffers, when a V4L2 application read() is being satisfied or when
an incoming buffer is processed by the cx18-NN-in work queue thread.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-driver.c
drivers/media/video/cx18/cx18-driver.h
drivers/media/video/cx18/cx18-streams.c
drivers/media/video/cx18/cx18-streams.h