[alsa-devel] [PATCH 01/10] ASoC: Samsung: Set default rclk source rate

Jassi at alsa-project.org Jassi at alsa-project.org
Mon Dec 20 03:05:46 CET 2010


From: Jassi Brar <jassi.brar at samsung.com>

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 at samsung.com>
---
 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 d6de3f0..26b4bdf 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,
 					clk_disable(i2s->op_clk);
 					clk_put(i2s->op_clk);
 				} else {
+					i2s->rclk_srcrate =
+						clk_get_rate(i2s->op_clk);
 					return 0;
 				}
 			}
-- 
1.6.2.5



More information about the Alsa-devel mailing list