]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx18: Move spinlock and vb_type initialisation into stream_init
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>
Tue, 10 May 2011 13:49:50 +0000 (10:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 23:21:27 +0000 (20:21 -0300)
commit20143b156f821a595c7747add9a8b7ebe1802b8a
treedf8d294ba25d0ad6aa21d6cfecc88977d6a0e9b8
parentf9f540f25607327121f250d8faaeff5c6c215902
[media] cx18: Move spinlock and vb_type initialisation into stream_init

The initialisation of vb_type in serialized_open was preventing
REQBUFS from working reliably. Remove it, and move the spinlock into
stream_init for good measure - it's only used when we have a stream
that supports videobuf anyway.

Signed-off-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-fileops.c
drivers/media/video/cx18/cx18-streams.c