From: Laurent Pinchart Date: Sat, 7 Jun 2014 23:57:07 +0000 (-0300) Subject: [media] omap3isp: ccdc: Only complete buffer when all fields are captured X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~504 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d7badf1b929120cbc886f3dfec3ca55549d086;p=pandora-kernel.git [media] omap3isp: ccdc: Only complete buffer when all fields are captured Checking that the captured field corresponds to the last required field depending on the requested field order before completing the buffer isn't enough. When the first field at stream start corresponds to the last required field, this would result in returning an interlaced buffer containing a single field. Fix this by keeping track of the fields captured in the buffer, and make sure that both fields are present for alternate field orders. Signed-off-by: Laurent Pinchart Tested-by: Enrico Butera Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed