dv: flash when start playing dv [1/1]
authorrobin zhu <robin.zhu@amlogic.com>
Tue, 1 Oct 2019 03:16:32 +0000 (20:16 -0700)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 9 Oct 2019 05:36:32 +0000 (22:36 -0700)
commit1f59da0293f2045d22642213f238c348bae4bd12
tree2a30c156a816c8e3b0ed352377759f6ca014377a
parent762679c950ca941260a8fabb232ed96bfe01b1cb
dv: flash when start playing dv [1/1]

PD#SWPL-14836

Problem:
1) video enable flag is not update correctly
2) source format not update correctly,
which cause wrong dv control path reset
3) when start play video off and repeat frame,
triggers wrong fake sdr frame

Solution:
1) change video enable flag to use both
video_global_output and video_enabled
2) use latest src format insdead of using cur format
3) add repeat frame and video on to off flag to
prevent wrong fake sdr frame

Verify:
Verified on AC213

Change-Id: Ia8ee7bea0b8bcb33e18275611287e0b563caf978
Signed-off-by: robin zhu <robin.zhu@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c
drivers/amlogic/media/video_sink/video.c