[PATCH 10/10] S3C64XX I2S: En/Disable codec clocks.

Jassi jassi.brar at samsung.com
Tue Sep 15 06:02:42 EDT 2009


Disable audio-bus when PCLK is used as base clock for I2S controller
codec. Enable otherwise.

Signed-Off-by: Jassi <jassi.brar at samsung.com>
---
 sound/soc/s3c24xx/s3c64xx-i2s.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sound/soc/s3c24xx/s3c64xx-i2s.c b/sound/soc/s3c24xx/s3c64xx-i2s.c
index 71aeb33..4438f5b 100644
--- a/sound/soc/s3c24xx/s3c64xx-i2s.c
+++ b/sound/soc/s3c24xx/s3c64xx-i2s.c
@@ -107,10 +107,12 @@ static int s3c64xx_i2s_set_sysclk(struct snd_soc_dai *cpu_dai,
 	switch (clk_id) {
 	case S3C64XX_CLKSRC_PCLK:
 		iismod &= ~S3C64XX_IISMOD_IMS_SYSMUX;
+		clk_disable(i2s->iis_cclk);
 		break;
 
 	case S3C64XX_CLKSRC_MUX:
 		iismod |= S3C64XX_IISMOD_IMS_SYSMUX;
+		clk_enable(i2s->iis_cclk);
 		break;
 
 	case S3C64XX_CODCLKSRC_INT:
-- 
1.6.2.5




More information about the linux-arm-kernel mailing list