/* set the bit clock frame size (in multiples of LRCLK) */
static void i2s_set_bitclk_framesize(struct i2s_reg *i2s_reg, unsigned bfs)
/* set the bit clock frame size (in multiples of LRCLK) */
static void i2s_set_bitclk_framesize(struct i2s_reg *i2s_reg, unsigned bfs)
{
	unsigned int mod = readl(&i2s_reg->mod);
	mod &= ~MOD_BCLK_MASK;
	switch (bfs) {
	case 48:
		mod |= MOD_BCLK_48FS;
		break;
	case 32:
		mod |= MOD_BCLK_32FS;
		break;
	case 24:
		mod |= MOD_BCLK_24FS;
		break;
	case 16:
		mod |= MOD_BCLK_16FS;
		break;
	default:
		return;
	}
	writel(mod, &i2s_reg->mod);
}