]> 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)
commitc3fe37985a0971a017ed62a06a859c75296a6896
treee8e4b8c424bb3a08798d9c88f8c6119a54afb51a
parentf5b09f072d3288f4a03259ff450afc3d73a15352
[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