]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit86ad8d741a9dd7bf35c50a585ea8e3bd22020b85
treee8e4b8c424bb3a08798d9c88f8c6119a54afb51a
parent63534820d2a4a50d9bbdf557be23071b37fe1f5e
[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