/* Convenience function for synchronously sending commands to the codec.  */
void AC97C_WriteCodec(unsigned char address, unsigned short data)
/* Convenience function for synchronously sending commands to the codec.  */
void AC97C_WriteCodec(unsigned char address, unsigned short data)
{
    unsigned int sample;
    sample = (address << 16) | data;
    AC97C_Transfer(AC97C_CODEC_TRANSFER, (unsigned char *) &sample, 1, 0, 0);
    while (!AC97C_IsFinished(AC97C_CODEC_TRANSFER));
}