/* calculate the crc for a given info frame  */
static void r600_hdmi_infoframe_checksum(uint8_t packetType, uint8_t versionNumber, uint8_t length, uint8_t *frame)
/* calculate the crc for a given info frame  */
static void r600_hdmi_infoframe_checksum(uint8_t packetType, uint8_t versionNumber, uint8_t length, uint8_t *frame)
{
    int i;
    frame[0] = packetType + versionNumber + length;
    for (i = 1; i <= length; i++)
	frame[0] += frame[i];
    frame[0] = 0x100 - frame[0];
}