dv: display abnormal after hotplug hdmi [1/1]
authoryao liu <yao.liu@amlogic.com>
Tue, 3 Sep 2019 09:44:18 +0000 (05:44 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 6 Sep 2019 13:14:09 +0000 (06:14 -0700)
commit27c28074f7cfba62fb262ce099b3e93c314f83c8
tree99a3585b6f6abf48b665c117cfcb7b53d53669c0
parentd4764b90b55144866d25f79775541cde6132dd93
dv: display abnormal after hotplug hdmi [1/1]

PD#SWPL-13367

Problem:
HDMI hotplugged during video pause,
system control first set disable_video 1,
then DV core turn on due to sink changed,
then OMX sets disable video 2. DV core 1
is disabled after video_onoff_state is set to OFF.

Solution:
Monitor video status, parser and toggle once
to enable core1 when video off->on.

Verify:
SM1

Change-Id: Ied6f1f05ed1592f9917c093b5d567904a3bdc61c
Signed-off-by: yao liu <yao.liu@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c