]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00259949 mxc vout:fix screen tearing issue in ic bypass case
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 23 Apr 2013 04:24:17 +0000 (12:24 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:14:01 +0000 (14:14 +0200)
commit335e56abd92d5296772c4cf32ad7cbfd20209f34
tree5015a0988e3b99a14b3aeaca204bb67660e9b406
parente9a42114140269c22aa58e701d59d14348e936ec
ENGR00259949 mxc vout:fix screen tearing issue in ic bypass case

In ic bypass case, we put video buffers at a framebuffer display
channel directly. The display channel works at triple buffer
mode. To make sure a video buffer(buf N) has been shown on display
device, we at least need to wait for the second video buffer(buf N+2)
after the current buffer(buf N) is put on the display channel. Then,
the current buffer(buf N) can be added to the dequeue list, otherwise,
the user may get the buffer too early so that the buffer being shown
can be overwritten - screen tearing issue happens.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/media/video/mxc/output/mxc_vout.c