void SiiHdmiTxLiteHandleEvents (uint8_t HdcpStatus,uint8_t queryData) { LITE_DEBUG_PRINT(("%s %s\n",(TxSupportsHdcp == true)? "TxSupportsHdcp":"No HDCP here",(TxValidAksv == true)?"TxValidAksv":"No valid Aksv")); if ((TxSupportsHdcp == true) && (TxValidAksv == true)) { LITE_DEBUG_PRINT(("%s %s\n",(TxSupportsHdcp == true)? "TxSupportsHdcp":"No HDCP here",(TxValidAksv == true)?"TxValidAksv":"No valid Aksv")); SiiDrvHdmiTxLiteHandleHdcpEvents(HdcpStatus,queryData); } }
void SiiHdmiTxLiteInitialize (bool_t enableHdcp) { TxSupportsHdcp = false; TxValidAksv = false; // If the caller does not want HDCP enabled, no need to execute the rest of the function. if (enableHdcp == false) { // The rest of the code will execute as if TX does not support HDCP, // so authentication will never be attempted. // Video will be shown as soon as TMDS is enabled. return; } // This is TX-related... need only be done once. if (!SiiDrvHdmiTxLiteIsHdcpSupported()) { // The TX does not support HDCP, so authentication will never be attempted. // Video will be shown as soon as TMDS is enabled. return; } TxSupportsHdcp = true; // This is TX-related... need only be done once. if (!SiiDrvHdmiTxLiteIsAksvValid()) { // The TX supports HDCP, but does not have valid AKSVs. // Video will not be shown. return; } TxValidAksv = true; SiiDrvHdmiTxLiteHdcpInitialize(); LITE_DEBUG_PRINT(("HDCP -> Supported by TX, AKSVs valid\n")); }