diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-05-07 13:58:27 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2015-05-08 16:36:18 +0800 |
commit | c4c7e7e64c64e18a947edc29cc62a608c9b3fc6c (patch) | |
tree | a5d5016b0df1264b0454481b87c5374e75b769ab /sound | |
parent | 24d2364452dba42b897342c9a5f73a3dc3c3f79d (diff) |
MLK-10843-1 ASoC: imx-wm8960: set codec mclk in device tree instead of machine driver
set codec mclk in device tree instead of machine driver.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-wm8960.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/fsl/imx-wm8960.c b/sound/soc/fsl/imx-wm8960.c index eb528b96c8d2..46249fecb63c 100644 --- a/sound/soc/fsl/imx-wm8960.c +++ b/sound/soc/fsl/imx-wm8960.c @@ -27,7 +27,6 @@ #include "fsl_sai.h" #define DAI_NAME_SIZE 32 -#define DEFAULT_MCLK_FREQ (12000000) struct imx_wm8960_data { struct snd_soc_card card; @@ -313,13 +312,6 @@ static int imx_hifi_hw_params(struct snd_pcm_substream *substream, } data->clk_frequency = clk_get_rate(data->codec_clk); - if (data->clk_frequency != DEFAULT_MCLK_FREQ) { - ret = clk_set_rate(data->codec_clk, DEFAULT_MCLK_FREQ); - if (ret < 0) - dev_dbg(dev, "fail to set codec clock frequency.\n"); - else - data->clk_frequency = clk_get_rate(data->codec_clk); - } /* Use MCLK to provide sysclk directly*/ sysclk = data->clk_frequency; |