hdmirx: hdcp1.4 force OESS mode

PD#169940: hdmirx: hdcp1.4 force OESS mode

Force OESS mode to fix Google Chromecast box
flashing black screen issue.

Change-Id: I1768f7b69ac1379166d88f605a4dcfab7a7044ea
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
This commit is contained in:
yicheng shen
2018-07-12 10:17:25 +08:00
committed by Yixun Lan
parent a173b19b08
commit 3bf2bf8357
3 changed files with 19 additions and 16 deletions

View File

@@ -46,7 +46,7 @@
*
*
*/
#define RX_VER2 "ver.2018/06/27"
#define RX_VER2 "ver.2018/07/12"
/* 50ms timer for hdmirx main loop (HDMI_STATE_CHECK_FREQ is 20) */

View File

@@ -1069,7 +1069,8 @@ static int DWC_init(void)
data32 |= (HYST_DVI_TO_HDMI << 8);
data32 |= (0 << 6);
data32 |= (0 << 4);
data32 |= (0 << 2);
/* Force OESS mode to fix Google Chromecast box black screen issue */
data32 |= (1 << 2);
data32 |= (0 << 0);
hdmirx_wr_dwc(DWC_HDMI_MODE_RECOVER, data32);

View File

@@ -2634,20 +2634,22 @@ unsigned int hdmirx_show_info(unsigned char *buf, int size)
"TMDS clock: %d\n", hdmirx_get_tmds_clock());
pos += snprintf(buf+pos, size-pos,
"Pixel clock: %d\n", hdmirx_get_pixel_clock());
/*
*if (drmpkt->des_u.tp1.eotf == EOTF_SDR)
* pos += snprintf(buf+pos, size-pos,
* "HDR EOTF: %s\n", "SDR");
* else if (drmpkt->des_u.tp1.eotf == EOTF_HDR)
* pos += snprintf(buf+pos, size-pos,
* "HDR EOTF: %s\n", "HDR");
* else if (drmpkt->des_u.tp1.eotf == EOTF_SMPTE_ST_2048)
* pos += snprintf(buf+pos, size-pos,
* "HDR EOTF: %s\n", "SMPTE_ST_2048");
* pos += snprintf(buf+pos, size-pos,
* "Dolby Vision: %s\n",
* (rx.vs_info_details.dolby_vision?"on":"off"));
*/
if (drmpkt->des_u.tp1.eotf == EOTF_SDR)
pos += snprintf(buf+pos, size-pos,
"HDR EOTF: %s\n", "SDR");
else if (drmpkt->des_u.tp1.eotf == EOTF_HDR)
pos += snprintf(buf+pos, size-pos,
"HDR EOTF: %s\n", "HDR");
else if (drmpkt->des_u.tp1.eotf == EOTF_SMPTE_ST_2048)
pos += snprintf(buf+pos, size-pos,
"HDR EOTF: %s\n", "SMPTE_ST_2048");
else if (drmpkt->des_u.tp1.eotf == EOTF_HLG)
pos += snprintf(buf+pos, size-pos,
"HDR EOTF: %s\n", "HLG");
pos += snprintf(buf+pos, size-pos,
"Dolby Vision: %s\n",
(rx.vs_info_details.dolby_vision?"on":"off"));
pos += snprintf(buf+pos, size-pos,
"\n\nAudio info\n\n");
pos += snprintf(buf+pos, size-pos,