From: Javier Martin Date: Tue, 7 Feb 2012 10:14:42 +0000 (-0300) Subject: [media] media i.MX27 camera: improve discard buffer handling X-Git-Tag: v3.4-rc1~110^2^2~134 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdc9d6f191d81aa1b1b34db9d3a33f779f5c5ec7;p=pandora-kernel.git [media] media i.MX27 camera: improve discard buffer handling The way discard buffer was previously handled lead to possible races that made a buffer that was not yet ready to be overwritten by new video data. This is easily detected at 25fps just adding "#define DEBUG" to enable the "memset" check and seeing how the image is corrupted. A new "discard" queue and two discard buffers have been added to make them flow trough the pipeline of queues and thus provide suitable event ordering. Signed-off-by: Javier Martin Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed