ASoC: Samsung: Set RFS and BFS in slave mode
authorPadmavathi Venna <padma.v@samsung.com>
Thu, 11 Jul 2013 07:08:25 +0000 (12:38 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 11 Jul 2013 11:06:39 +0000 (12:06 +0100)
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>
sound/soc/samsung/i2s.c

index 7a1734697434487e13b0dfeeeadb614ae24940d2..959c702235c8c6028d0946f29b622266f043ab2f 100644 (file)
@@ -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);