diff options
author | Jarkko Nikula <jarkko.nikula@bitmer.com> | 2011-09-30 09:07:45 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-02 14:57:07 -0400 |
commit | cf9feff28fc1f00c82fb0cc016307d4c65da132a (patch) | |
tree | eec1415a291e0f6d88da379c26fc7e2f631bc762 /sound/soc/omap/rx51.c | |
parent | 4dd0417253be35bfbe368c40ec5a10732b24fd65 (diff) |
ASoC: omap: Convert bunch of machine drivers to use init time DAI format
Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap/rx51.c')
-rw-r--r-- | sound/soc/omap/rx51.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 893300a53bab..7164db5fc38a 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, |
@@ -377,6 +359,8 @@ static struct snd_soc_dai_link rx51_dai[] = { | |||
377 | .codec_dai_name = "tlv320aic3x-hifi", | 359 | .codec_dai_name = "tlv320aic3x-hifi", |
378 | .platform_name = "omap-pcm-audio", | 360 | .platform_name = "omap-pcm-audio", |
379 | .codec_name = "tlv320aic3x-codec.2-0018", | 361 | .codec_name = "tlv320aic3x-codec.2-0018", |
362 | .dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_NF | | ||
363 | SND_SOC_DAIFMT_CBM_CFM, | ||
380 | .init = rx51_aic34_init, | 364 | .init = rx51_aic34_init, |
381 | .ops = &rx51_ops, | 365 | .ops = &rx51_ops, |
382 | }, | 366 | }, |