From 4953886e1b42e2d92dbbfec01d874b24572e68db Mon Sep 17 00:00:00 2001 From: Huang Chao Date: Thu, 12 Jun 2014 14:42:58 +0800 Subject: [PATCH] ASoC: samsung: odroidx2/u3: Remove unnecessary system clock setting This patch removes the redundant sysclk setting of odroid cpu_dai. Since the audio working mode has been changed from I2S master mode to I2S slave mode, so we don't need to set the cpu_dai I2S clock mode to operation any more. Besides, the hw_params function will set cpu_dai I2S sysclk to CDCCLK mode, which makes the cpu_dai to use the system clock generated by audio codec max98090. Change-Id: Ia09f9774c07d22991a706eff6553892b9d7ca39c Signed-off-by: Huang Chao --- sound/soc/samsung/odroidx2_max98090.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c index 614c60fa..739b76a 100644 --- a/sound/soc/samsung/odroidx2_max98090.c +++ b/sound/soc/samsung/odroidx2_max98090.c @@ -12,7 +12,6 @@ #include #include #include "i2s.h" -#include "i2s-regs.h" /* Config I2S CDCLK output 19.2MHZ clock to Max98090 */ #define MAX98090_MCLK 19200000 @@ -33,14 +32,6 @@ static int odroidx2_hw_params(struct snd_pcm_substream *substream, return ret; } - ret = snd_soc_dai_set_sysclk(cpu_dai, SAMSUNG_I2S_OPCLK, - 0, MOD_OPCLK_PCLK); - if (ret < 0) { - dev_err(cpu_dai->dev, - "Unable to set i2s opclk: 0x%x\n", ret); - return ret; - } - /* Set the cpu DAI configuration in order to use CDCLK */ ret = snd_soc_dai_set_sysclk(cpu_dai, SAMSUNG_I2S_CDCLK, 0, SND_SOC_CLOCK_OUT); -- 2.7.4