]> git.karo-electronics.de Git - linux-beck.git/commit
[media] media: ti-vpe: vpe: Fix vb2 buffer cleanup
authorBenoit Parrot <bparrot@ti.com>
Fri, 18 Nov 2016 23:20:34 +0000 (21:20 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 10:07:01 +0000 (08:07 -0200)
commitdfe1349dc805aa3113e6fba9db55761d24ce63fe
tree005c6f4e6f57e4faecaa2b8b59aff5d69b97629b
parentbc809bfc1796accdd0c15c3bccd4e8af33922018
[media] media: ti-vpe: vpe: Fix vb2 buffer cleanup

When stop_streaming is called we need to cleanup the queued
vb2 buffers properly.
This was not previously being done which caused kernel
warning when the application using the resources was killed.
Kernel warnings were also generated on successful completion
of a de-interlacing case as well as upon aborting a
conversion.

Make sure every vb2 buffers is properly handled in all cases.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/ti-vpe/vpe.c