void vDisableHDCP(u8 fgDisableHdcp) { MT8193_HDCP_FUNC(); if(fgDisableHdcp) { vHDCPReset(); if(fgDisableHdcp==1) vMoveHDCPInternalKey(EXTERNAL_KEY); else if(fgDisableHdcp==2) vMoveHDCPInternalKey(INTERNAL_NOENCRYPT_KEY); else if(fgDisableHdcp==3) vMoveHDCPInternalKey(INTERNAL_ENCRYPT_KEY); _bHdcpOff = 1; } else { vSetHDCPState(HDCP_RE_DO_AUTHENTICATION); vSendHdmiCmd(HDMI_HDCP_PROTOCAL_CMD); _bHdcpOff = 0; } #ifdef MTK_MT8193_HDCP_SUPPORT _bHdcpOff = 0; #else _bHdcpOff = 1; #endif }
void mt8193_hdcpkey(u8 *pbhdcpkey) { u16 i; MT8193_HDCP_FUNC(); for (i = 0; i < 287; i++) { bHdcpKeyExternalBuff[i] = *pbhdcpkey++; } vMoveHDCPInternalKey(EXTERNAL_KEY); }