aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorPadmavathi Venna <padma.v@samsung.com>2013-07-11 03:08:25 -0400
committerMark Brown <broonie@linaro.org>2013-07-11 07:06:39 -0400
commit770100108be7dbe614361dbcc450096b4cdfc98b (patch)
tree2e5aae7d4f83d8fa38afa95741a2817d64764ac1 /sound/soc
parentb3ff04668c5a36c290e5b2849b6c86ceb3aec2c3 (diff)
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>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/samsung/i2s.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index 7a1734697434..959c702235c8 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -742,13 +742,13 @@ static int config_setup(struct i2s_dai *i2s)
742 return -EAGAIN; 742 return -EAGAIN;
743 } 743 }
744 744
745 /* Don't bother RFS, BFS & PSR in Slave mode */
746 if (is_slave(i2s))
747 return 0;
748
749 set_bfs(i2s, bfs); 745 set_bfs(i2s, bfs);
750 set_rfs(i2s, rfs); 746 set_rfs(i2s, rfs);
751 747
748 /* Don't bother with PSR in Slave mode */
749 if (is_slave(i2s))
750 return 0;
751
752 if (!(i2s->quirks & QUIRK_NO_MUXPSR)) { 752 if (!(i2s->quirks & QUIRK_NO_MUXPSR)) {
753 psr = i2s->rclk_srcrate / i2s->frmclk / rfs; 753 psr = i2s->rclk_srcrate / i2s->frmclk / rfs;
754 writel(((psr - 1) << 8) | PSR_PSREN, i2s->addr + I2SPSR); 754 writel(((psr - 1) << 8) | PSR_PSREN, i2s->addr + I2SPSR);