/* Sets the frame size for I2S LR clock */
static void i2s_set_lr_framesize(struct i2s_reg *i2s_reg, unsigned int rfs)
/* Sets the frame size for I2S LR clock */
static void i2s_set_lr_framesize(struct i2s_reg *i2s_reg, unsigned int rfs)
{
	unsigned int mod = readl(&i2s_reg->mod);
	mod &= ~MOD_RCLK_MASK;
	switch (rfs) {
	case 768:
		mod |= MOD_RCLK_768FS;
		break;
	case 512:
		mod |= MOD_RCLK_512FS;
		break;
	case 384:
		mod |= MOD_RCLK_384FS;
		break;
	default:
		mod |= MOD_RCLK_256FS;
		break;
	}
	writel(mod, &i2s_reg->mod);
}