OSDN Git Service

[media] solo6x10: bind start & stop of encoded frames processing thread to device...
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>
Wed, 29 Oct 2014 16:03:53 +0000 (13:03 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Nov 2014 10:46:31 +0000 (08:46 -0200)
commit670390c2dc80de8695aafbe8c854da344738361d
treee8e4b8c424bb3a08798d9c88f8c6119a54afb51a
parent0cb2df380b8845f94f1b3c492ad3cc79f5112630
[media] solo6x10: bind start & stop of encoded frames processing thread to device (de)init

Before, it was called from individual encoder (de)init procedures, which
lead to spare threads running (which were actually lost, leaked).
The current fix uses trivial approach, and the downside is that the
processing thread is working always, even when there's no consumer.

Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c