diff options
author | Jassi Brar <jassi.brar@samsung.com> | 2010-12-19 21:05:46 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-20 08:45:27 -0500 |
commit | 6ce534aac29ca177749000d76e4ecc8a326c852d (patch) | |
tree | 889857e2992959029cf088fb0f91d1f1612b59b3 /sound | |
parent | 67c7efad9a64e9d58a6259332c344ab433f706eb (diff) |
ASoC: Samsung: Set default rclk source rate
Since the rclk_srcrate is cleared upon startup, it should be
initialized upon second and later 'open' calls to the device
with same root-clock source. The bug is otherwise visible in
Codec-Slave mode.
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/samsung/i2s.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index d6de3f0eeff8..26b4bdf42c5b 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -525,6 +525,8 @@ static int i2s_set_sysclk(struct snd_soc_dai *dai, | |||
525 | clk_disable(i2s->op_clk); | 525 | clk_disable(i2s->op_clk); |
526 | clk_put(i2s->op_clk); | 526 | clk_put(i2s->op_clk); |
527 | } else { | 527 | } else { |
528 | i2s->rclk_srcrate = | ||
529 | clk_get_rate(i2s->op_clk); | ||
528 | return 0; | 530 | return 0; |
529 | } | 531 | } |
530 | } | 532 | } |