mirror of
https://github.com/torvalds/linux.git
synced 2024-10-31 17:21:49 +00:00
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: Padmavathi Venna <padma.v@samsung.com> Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Reviewed-by: Simon Glass <sjg@google.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
b3ff04668c
commit
770100108b
@ -742,13 +742,13 @@ static int config_setup(struct i2s_dai *i2s)
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
/* Don't bother RFS, BFS & PSR in Slave mode */
|
||||
if (is_slave(i2s))
|
||||
return 0;
|
||||
|
||||
set_bfs(i2s, bfs);
|
||||
set_rfs(i2s, rfs);
|
||||
|
||||
/* Don't bother with PSR in Slave mode */
|
||||
if (is_slave(i2s))
|
||||
return 0;
|
||||
|
||||
if (!(i2s->quirks & QUIRK_NO_MUXPSR)) {
|
||||
psr = i2s->rclk_srcrate / i2s->frmclk / rfs;
|
||||
writel(((psr - 1) << 8) | PSR_PSREN, i2s->addr + I2SPSR);
|
||||
|
Loading…
Reference in New Issue
Block a user