/* Frob the SKCR to select AC Link mode or I2S mode for the audio block.  */
void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode)
/* Frob the SKCR to select AC Link mode or I2S mode for the audio block.  */
void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode)
{
	struct sa1111 *sachip = sa1111_chip_driver(sadev);
	unsigned long flags;
	unsigned int val;
	spin_lock_irqsave(&sachip->lock, flags);
	val = sa1111_readl(sachip->base + SA1111_SKCR);
	if (mode == SA1111_AUDIO_I2S) {
		val &= ~SKCR_SELAC;
	} else {
		val |= SKCR_SELAC;
	}
	sa1111_writel(val, sachip->base + SA1111_SKCR);
	spin_unlock_irqrestore(&sachip->lock, flags);
}