This interrupt is triggered every time a stream is detected and the Video PHY Controller /HDMI GT Subsystem is stabilized for the HDMI 1.4/2.0 RX Subsystem to start stream locking.
The callback function must perform the following steps:
- Check the event is for cable connected or cable
disconnected.
XV_HdmiRxSs *HdmiRxSsPtr = (XV_HdmiRxSs *)CallbackRef; HdmiRxSsPtr->IsStreamConnected
- 1 - Connected
- 0 - Disconnected
- Retrieve the video stream information.
XVidC_VideoStream *XV_HdmiRxSs_GetVideoStream(XV_HdmiRxSs *InstancePtr);
- Calculate the HDMI MMCM parameter based on the video stream information received.
u32 XVphy_HdmiCfgCalcMmcmParam(XVphy *InstancePtr, u8 QuadId, XVphy_ChannelId ChId, XVphy_DirectionType Dir, XVidC_PixelsPerClock Ppc, XVidC_ColorDepth Bpc);
- Enable the Video PHY Controller
/HDMI GT Subsystem
to start the MMCM.
void XVphy_MmcmStart(XVphy *InstancePtr, u8 QuadId, XVphy_DirectionType Dir);
where,
-
InstancePtr
is a pointer to the XVphy core instance. -
QuadId
is the GT quad ID to operate on. -
Dir
is an indicator for TX or RX.
Note: QuadId is not used and should be set to 0.For example:
XVphy_MmcmStart(&Vphy, 0, XVPHY_DIR_RX);
-