/* Configures the desired channel with the given value.  */
void AC97C_ConfigureChannel(unsigned char channel, unsigned int cfg)
/* Configures the desired channel with the given value.  */
void AC97C_ConfigureChannel(unsigned char channel, unsigned int cfg)
{
    SANITY_CHECK((channel == AC97C_CHANNEL_A) || (channel == AC97C_CHANNEL_B));
    if (channel == AC97C_CHANNEL_A) {
        AT91C_BASE_AC97C->AC97C_CAMR = cfg;
    }
    else {
        AT91C_BASE_AC97C->AC97C_CBMR = cfg;
    }
}