This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8168 - internal HDMI hot plug interrupt?

Hi...We are using the DM8168 internal HDMI for our primary display.  The TI driver works fine and will display video as expected.  However now we want to be able to do things like detect hot plug events and read hdmi EDID.  I did not see in the documentation that we would receive a hot plug event upon attach/detach.  Rather, I would receive the status of the hdmi port when I queried the driver.  Hot plug should be an interrupt back to the host, not something that should be queried.  If I am understanding this correctly, will you have hot plug interrupts implemented soon?

I have a read thread that looks for events from the driver.  However, I always get back -1 from the read and an errno of 22 (ENOPKT).  Here is how we open the driver:

ReadFD = open(/dev/ti81xxhdmi, O_RDWR );

This returns a valid FD.  Next here is my read thread:

//*******************************************************************
// Read data coming in from Internal Netra HDMI
//*******************************************************************
void* MON1_Int_VideoOut_ReadThread(void* portPtr)
{
eErrorT error;
// From ti81xxhdmi.h.
struct ti81xxhdmi_status attachStatus;
PortConfig *pPort = (PortConfig*) portPtr;
int statusRead;

printf("Netra Internal VideoOut Read: Start.\n");

// Event handling loop.
while(true)
{
// This blocks, and only returns when something changed.

statusRead = read(ReadFD,(char *)&attachStatus,sizeof(struct ti81xxhdmi_status));

if(statusRead < 0)
{
printf("ERROR: MON_INT VideoOut read failed: %d errno:%d\n",statusRead, errno);
continue;
}

// Something has been attached / detached, or resolution changed.
printf("MON_INT VideoOut event:\n");
error = VideoOutNotification_IntHDMI_Handler(&attachStatus, pPort);
} // End while (true).

// This is discarded anyway.
return (void*)NULL;
}

Above is where I always get statusRead == -1 and errno = 22.  Please let me know is there is example code that interacts with the TI8168 HDMI driver.  

Thanks in advance for the help,

Bob Van Gulick