vout: add adjustment for hpd event monitor [1/1]
authorHang Cheng <hang.cheng@amlogic.com>
Fri, 14 Jun 2019 05:59:32 +0000 (13:59 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 07:12:46 +0000 (15:12 +0800)
commita3eb0a4ad60e2c7ef5481b7d31e202588fcbc35f
treeb93916673e8229b4a9f5782c64ff6a77a00ebf34
parentc8d1e99810581d7737e84434f2522fb270d84253
vout: add adjustment for hpd event monitor [1/1]

PD#OTT-4604

Problem:
1.Before systemcontrol starts up, vout monitor takes
place to monitor hpd event of hdmi, but vout server
module is indepent with hdmi module, so the hpd status
that vout server got may out of sync with hdmi. If
the monitor interval is larger than hpd reset duration,
for example, the vout server monitor frequency
for hpd event is 500ms once, but hpd reset duration
of TV is smaller, 20ms~200ms..., vout server may miss
some hpd events, thus there will be no notifications
from vout server to set new output mode.
2.If vout monitor timeout before systemcontrol starts
up, hpd events happen during the interval will
not be handled.

Solution:
add adjustment of hpd monitor time and interval

Verify:
A311D

Change-Id: Ic6c371362c63baf50de3c5849fdbcdc5ec22ef61
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
drivers/amlogic/media/vout/vout_serve/vout_serve.c