diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-30 10:44:37 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-02 08:08:36 -0500 |
commit | 36c1b400188266be737392c1ce9b74e3e7136be2 (patch) | |
tree | 0325a87426b269b489ed1c0f814da1dafaeabad8 /sound/soc/pxa | |
parent | c0e942310a0a8881ace0a8bf0aa9e7efbb988309 (diff) |
ASoC: Use dai_fmt in z2 machine driver
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/z2.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sound/soc/pxa/z2.c b/sound/soc/pxa/z2.c index d6807e0372bd..e8f15ce83749 100644 --- a/sound/soc/pxa/z2.c +++ b/sound/soc/pxa/z2.c | |||
@@ -56,18 +56,6 @@ static int z2_hw_params(struct snd_pcm_substream *substream, | |||
56 | break; | 56 | break; |
57 | } | 57 | } |
58 | 58 | ||
59 | /* set codec DAI configuration */ | ||
60 | ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S | | ||
61 | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS); | ||
62 | if (ret < 0) | ||
63 | return ret; | ||
64 | |||
65 | /* set cpu DAI configuration */ | ||
66 | ret = snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_I2S | | ||
67 | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS); | ||
68 | if (ret < 0) | ||
69 | return ret; | ||
70 | |||
71 | /* set the codec system clock for DAC and ADC */ | 59 | /* set the codec system clock for DAC and ADC */ |
72 | ret = snd_soc_dai_set_sysclk(codec_dai, WM8750_SYSCLK, clk, | 60 | ret = snd_soc_dai_set_sysclk(codec_dai, WM8750_SYSCLK, clk, |
73 | SND_SOC_CLOCK_IN); | 61 | SND_SOC_CLOCK_IN); |
@@ -196,6 +184,8 @@ static struct snd_soc_dai_link z2_dai = { | |||
196 | .platform_name = "pxa-pcm-audio", | 184 | .platform_name = "pxa-pcm-audio", |
197 | .codec_name = "wm8750.0-001b", | 185 | .codec_name = "wm8750.0-001b", |
198 | .init = z2_wm8750_init, | 186 | .init = z2_wm8750_init, |
187 | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | | ||
188 | SND_SOC_DAIFMT_CBS_CFS, | ||
199 | .ops = &z2_ops, | 189 | .ops = &z2_ops, |
200 | }; | 190 | }; |
201 | 191 | ||