diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-29 22:13:24 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-30 05:44:45 -0500 |
commit | 74f4dd56ffab34f280b83d18a5343ac96a7b91ad (patch) | |
tree | 840033129690b7b99861e483ad4169821384511a /sound/soc/pxa | |
parent | 87063dfcea80316ff4647b9906d146b5c7969766 (diff) |
ASoC: Use dai_fmt in corgi machine driver
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/corgi.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sound/soc/pxa/corgi.c b/sound/soc/pxa/corgi.c index 5e5004a84073..5ff6dac4794d 100644 --- a/sound/soc/pxa/corgi.c +++ b/sound/soc/pxa/corgi.c | |||
@@ -142,18 +142,6 @@ static int corgi_hw_params(struct snd_pcm_substream *substream, | |||
142 | break; | 142 | break; |
143 | } | 143 | } |
144 | 144 | ||
145 | /* set codec DAI configuration */ | ||
146 | ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S | | ||
147 | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS); | ||
148 | if (ret < 0) | ||
149 | return ret; | ||
150 | |||
151 | /* set cpu DAI configuration */ | ||
152 | ret = snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_I2S | | ||
153 | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS); | ||
154 | if (ret < 0) | ||
155 | return ret; | ||
156 | |||
157 | /* set the codec system clock for DAC and ADC */ | 145 | /* set the codec system clock for DAC and ADC */ |
158 | ret = snd_soc_dai_set_sysclk(codec_dai, WM8731_SYSCLK_XTAL, clk, | 146 | ret = snd_soc_dai_set_sysclk(codec_dai, WM8731_SYSCLK_XTAL, clk, |
159 | SND_SOC_CLOCK_IN); | 147 | SND_SOC_CLOCK_IN); |
@@ -311,6 +299,8 @@ static struct snd_soc_dai_link corgi_dai = { | |||
311 | .platform_name = "pxa-pcm-audio", | 299 | .platform_name = "pxa-pcm-audio", |
312 | .codec_name = "wm8731.0-001b", | 300 | .codec_name = "wm8731.0-001b", |
313 | .init = corgi_wm8731_init, | 301 | .init = corgi_wm8731_init, |
302 | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | | ||
303 | SND_SOC_DAIFMT_CBS_CFS, | ||
314 | .ops = &corgi_ops, | 304 | .ops = &corgi_ops, |
315 | }; | 305 | }; |
316 | 306 | ||