ASoC: samsung: odroidx2/u3: Remove unnecessary system clock setting
authorHuang Chao <chao7.huang@samsung.com>
Thu, 12 Jun 2014 06:42:58 +0000 (14:42 +0800)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:32:09 +0000 (14:32 +0900)
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 <chao7.huang@samsung.com>
sound/soc/samsung/odroidx2_max98090.c

index 614c60f..739b76a 100644 (file)
@@ -12,7 +12,6 @@
 #include <sound/soc.h>
 #include <sound/pcm_params.h>
 #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);