[alsa-devel] [PATCH 2/5] ASoC: S3C64XX: Add ADC source clock setting

Seungwhan Youn sw.youn at samsung.com
Fri Aug 6 02:21:04 CEST 2010


This patch adds ADC source clock setting to set wm8580 use ADC
source clock to ADC_MCLK.

Signed-off-by: Seungwhan Youn <sw.youn at samsung.com>
---
 sound/soc/s3c24xx/smdk64xx_wm8580.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/sound/soc/s3c24xx/smdk64xx_wm8580.c b/sound/soc/s3c24xx/smdk64xx_wm8580.c
index 07e8e51..39bb701 100644
--- a/sound/soc/s3c24xx/smdk64xx_wm8580.c
+++ b/sound/soc/s3c24xx/smdk64xx_wm8580.c
@@ -113,6 +113,12 @@ static int smdk64xx_hw_params(struct snd_pcm_substream *substream,
 	if (ret < 0)
 		return ret;
 
+	/* Explicitly set WM8580-ADC to source from ADCMCLK */
+	ret = snd_soc_dai_set_clkdiv(codec_dai, WM8580_ADC_CLKSEL,
+					WM8580_CLKSRC_ADCMCLK);
+	if (ret < 0)
+		return ret;
+
 	ret = snd_soc_dai_set_pll(codec_dai, WM8580_PLLA, 0,
 					SMDK64XX_WM8580_FREQ, pll_out);
 	if (ret < 0)
-- 
1.6.2.5



More information about the Alsa-devel mailing list