diff options
Diffstat (limited to 'sound/soc/omap/omap3pandora.c')
-rw-r--r-- | sound/soc/omap/omap3pandora.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/sound/soc/omap/omap3pandora.c b/sound/soc/omap/omap3pandora.c index 8047c521e318..3ae87fd36612 100644 --- a/sound/soc/omap/omap3pandora.c +++ b/sound/soc/omap/omap3pandora.c | |||
@@ -48,24 +48,8 @@ static int omap3pandora_hw_params(struct snd_pcm_substream *substream, | |||
48 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 48 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
49 | struct snd_soc_dai *codec_dai = rtd->codec_dai; | 49 | struct snd_soc_dai *codec_dai = rtd->codec_dai; |
50 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; | 50 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; |
51 | int fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | | ||
52 | SND_SOC_DAIFMT_CBS_CFS; | ||
53 | int ret; | 51 | int ret; |
54 | 52 | ||
55 | /* Set codec DAI configuration */ | ||
56 | ret = snd_soc_dai_set_fmt(codec_dai, fmt); | ||
57 | if (ret < 0) { | ||
58 | pr_err(PREFIX "can't set codec DAI configuration\n"); | ||
59 | return ret; | ||
60 | } | ||
61 | |||
62 | /* Set cpu DAI configuration */ | ||
63 | ret = snd_soc_dai_set_fmt(cpu_dai, fmt); | ||
64 | if (ret < 0) { | ||
65 | pr_err(PREFIX "can't set cpu DAI configuration\n"); | ||
66 | return ret; | ||
67 | } | ||
68 | |||
69 | /* Set the codec system clock for DAC and ADC */ | 53 | /* Set the codec system clock for DAC and ADC */ |
70 | ret = snd_soc_dai_set_sysclk(codec_dai, 0, 26000000, | 54 | ret = snd_soc_dai_set_sysclk(codec_dai, 0, 26000000, |
71 | SND_SOC_CLOCK_IN); | 55 | SND_SOC_CLOCK_IN); |
@@ -231,6 +215,8 @@ static struct snd_soc_dai_link omap3pandora_dai[] = { | |||
231 | .codec_dai_name = "twl4030-hifi", | 215 | .codec_dai_name = "twl4030-hifi", |
232 | .platform_name = "omap-pcm-audio", | 216 | .platform_name = "omap-pcm-audio", |
233 | .codec_name = "twl4030-codec", | 217 | .codec_name = "twl4030-codec", |
218 | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | | ||
219 | SND_SOC_DAIFMT_CBS_CFS, | ||
234 | .ops = &omap3pandora_ops, | 220 | .ops = &omap3pandora_ops, |
235 | .init = omap3pandora_out_init, | 221 | .init = omap3pandora_out_init, |
236 | }, { | 222 | }, { |
@@ -240,6 +226,8 @@ static struct snd_soc_dai_link omap3pandora_dai[] = { | |||
240 | .codec_dai_name = "twl4030-hifi", | 226 | .codec_dai_name = "twl4030-hifi", |
241 | .platform_name = "omap-pcm-audio", | 227 | .platform_name = "omap-pcm-audio", |
242 | .codec_name = "twl4030-codec", | 228 | .codec_name = "twl4030-codec", |
229 | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | | ||
230 | SND_SOC_DAIFMT_CBS_CFS, | ||
243 | .ops = &omap3pandora_ops, | 231 | .ops = &omap3pandora_ops, |
244 | .init = omap3pandora_in_init, | 232 | .init = omap3pandora_in_init, |
245 | } | 233 | } |