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>
#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
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);