Commit 77010010 authored by Padmavathi Venna's avatar Padmavathi Venna Committed by Mark Brown
Browse files

ASoC: Samsung: Set RFS and BFS in slave mode



As per the User Manual, the RFS and BFS should be set in slave mode
for correct operation.

Signed-off-by: default avatarPadmavathi Venna <padma.v@samsung.com>
Signed-off-by: default avatarAndrew Bresticker <abrestic@chromium.org>
Reviewed-by: default avatarSimon Glass <sjg@google.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent b3ff0466
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -742,13 +742,13 @@ static int config_setup(struct i2s_dai *i2s)
		return -EAGAIN;
		return -EAGAIN;
	}
	}


	/* Don't bother RFS, BFS & PSR in Slave mode */
	if (is_slave(i2s))
		return 0;

	set_bfs(i2s, bfs);
	set_bfs(i2s, bfs);
	set_rfs(i2s, rfs);
	set_rfs(i2s, rfs);


	/* Don't bother with PSR in Slave mode */
	if (is_slave(i2s))
		return 0;

	if (!(i2s->quirks & QUIRK_NO_MUXPSR)) {
	if (!(i2s->quirks & QUIRK_NO_MUXPSR)) {
		psr = i2s->rclk_srcrate / i2s->frmclk / rfs;
		psr = i2s->rclk_srcrate / i2s->frmclk / rfs;
		writel(((psr - 1) << 8) | PSR_PSREN, i2s->addr + I2SPSR);
		writel(((psr - 1) << 8) | PSR_PSREN, i2s->addr + I2SPSR);