video: merged from A wait AFBC idle when report state [1/1]
authorZhi Zhou <zhi.zhou@amlogic.com>
Wed, 27 Jun 2018 07:44:45 +0000 (15:44 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 8 Nov 2018 07:28:57 +0000 (00:28 -0700)
commit1900bdee8b32c2b18767bcdb61fc381f72c5a9e9
tree9edd14c177e838194760f3b40eabd3f4920c97dd
parent3434c9f80e6a2918c9c7623898102518025312b1
video: merged from A wait AFBC idle when report state [1/1]

PD#169128:

[Problem]
When quick switch video between 2 vsync isr, the AFBC may read wrong
data, and green screen or distortion image occurs.

[Solution]
1. Add delay when get video layer state, to make sure afbc is stopped
2. Remove ambiguous log print

[Platform]
Blanche
BranchTo: NONE

[Test]

Change-Id: I94ccf25373f29ce188829ab1b7db6f9df1fb49ad
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
drivers/amlogic/media/video_sink/video.c