Add delay for switching eARC to ARC
Certain eARC devices need to wait for eARC timeout to enter ARC mode.
If there is no delay for these devices, devices would answer
<Request ARC Initiated> with <Feature Abort> [Not in correct mode to
respond].
[Solution]
Add delay when switching eARC mode from eARC to ARC.
The reason for 500ms is as follows.
TeARC_LOST_HEARTBEAT 120-130ms
timeout starting from last received heartbeat to entering [RX DISC1] state
130ms is max time for AVR to leave RX_eARC
TeARC_RX_TIMEOUT 250-300ms
Heartbeat timeout startingfrom entry into [RX IDLE1] state @ eARC RX
300ms is max time for AVR to give up waiting for next heartbeat start
In total this means a max. total timeout of 430 ms. That's why we delay ARC initiation by 500 ms.
Bug: 253387972
(cherry picked from https://keystone-mtk-review.git.corp.google.com/c/platform/frameworks/base/+/135980)
Change-Id: Idd9221f206144e04241a70af9ca7529a20913adb
2 files changed