aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/rx51.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/omap/rx51.c')
-rw-r--r--sound/soc/omap/rx51.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c
index 893300a53bab..a56842380c72 100644
--- a/sound/soc/omap/rx51.c
+++ b/sound/soc/omap/rx51.c
@@ -115,24 +115,6 @@ static int rx51_hw_params(struct snd_pcm_substream *substream,
115{ 115{
116 struct snd_soc_pcm_runtime *rtd = substream->private_data; 116 struct snd_soc_pcm_runtime *rtd = substream->private_data;
117 struct snd_soc_dai *codec_dai = rtd->codec_dai; 117 struct snd_soc_dai *codec_dai = rtd->codec_dai;
118 struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
119 int err;
120
121 /* Set codec DAI configuration */
122 err = snd_soc_dai_set_fmt(codec_dai,
123 SND_SOC_DAIFMT_DSP_A |
124 SND_SOC_DAIFMT_IB_NF |
125 SND_SOC_DAIFMT_CBM_CFM);
126 if (err < 0)
127 return err;
128
129 /* Set cpu DAI configuration */
130 err = snd_soc_dai_set_fmt(cpu_dai,
131 SND_SOC_DAIFMT_DSP_A |
132 SND_SOC_DAIFMT_IB_NF |
133 SND_SOC_DAIFMT_CBM_CFM);
134 if (err < 0)
135 return err;
136 118
137 /* Set the codec system clock for DAC and ADC */ 119 /* Set the codec system clock for DAC and ADC */
138 return snd_soc_dai_set_sysclk(codec_dai, 0, 19200000, 120 return snd_soc_dai_set_sysclk(codec_dai, 0, 19200000,
@@ -335,8 +317,6 @@ static int rx51_aic34_init(struct snd_soc_pcm_runtime *rtd)
335 if (err < 0) 317 if (err < 0)
336 return err; 318 return err;
337 319
338 snd_soc_dapm_sync(dapm);
339
340 /* AV jack detection */ 320 /* AV jack detection */
341 err = snd_soc_jack_new(codec, "AV Jack", 321 err = snd_soc_jack_new(codec, "AV Jack",
342 SND_JACK_HEADSET | SND_JACK_VIDEOOUT, 322 SND_JACK_HEADSET | SND_JACK_VIDEOOUT,
@@ -377,6 +357,8 @@ static struct snd_soc_dai_link rx51_dai[] = {
377 .codec_dai_name = "tlv320aic3x-hifi", 357 .codec_dai_name = "tlv320aic3x-hifi",
378 .platform_name = "omap-pcm-audio", 358 .platform_name = "omap-pcm-audio",
379 .codec_name = "tlv320aic3x-codec.2-0018", 359 .codec_name = "tlv320aic3x-codec.2-0018",
360 .dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_NF |
361 SND_SOC_DAIFMT_CBM_CFM,
380 .init = rx51_aic34_init, 362 .init = rx51_aic34_init,
381 .ops = &rx51_ops, 363 .ops = &rx51_ops,
382 }, 364 },