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/igep0020.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/igep0020.c')
-rw-r--r-- | sound/soc/omap/igep0020.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/sound/soc/omap/igep0020.c b/sound/soc/omap/igep0020.c index 0ae34702995b..84615a7de6ad 100644 --- a/sound/soc/omap/igep0020.c +++ b/sound/soc/omap/igep0020.c | |||
@@ -38,29 +38,8 @@ static int igep2_hw_params(struct snd_pcm_substream *substream, | |||
38 | { | 38 | { |
39 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 39 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
40 | struct snd_soc_dai *codec_dai = rtd->codec_dai; | 40 | struct snd_soc_dai *codec_dai = rtd->codec_dai; |
41 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; | ||
42 | int ret; | 41 | int ret; |
43 | 42 | ||
44 | /* Set codec DAI configuration */ | ||
45 | ret = snd_soc_dai_set_fmt(codec_dai, | ||
46 | SND_SOC_DAIFMT_I2S | | ||
47 | SND_SOC_DAIFMT_NB_NF | | ||
48 | SND_SOC_DAIFMT_CBM_CFM); | ||
49 | if (ret < 0) { | ||
50 | printk(KERN_ERR "can't set codec DAI configuration\n"); | ||
51 | return ret; | ||
52 | } | ||
53 | |||
54 | /* Set cpu DAI configuration */ | ||
55 | ret = snd_soc_dai_set_fmt(cpu_dai, | ||
56 | SND_SOC_DAIFMT_I2S | | ||
57 | SND_SOC_DAIFMT_NB_NF | | ||
58 | SND_SOC_DAIFMT_CBM_CFM); | ||
59 | if (ret < 0) { | ||
60 | printk(KERN_ERR "can't set cpu DAI configuration\n"); | ||
61 | return ret; | ||
62 | } | ||
63 | |||
64 | /* Set the codec system clock for DAC and ADC */ | 43 | /* Set the codec system clock for DAC and ADC */ |
65 | ret = snd_soc_dai_set_sysclk(codec_dai, 0, 26000000, | 44 | ret = snd_soc_dai_set_sysclk(codec_dai, 0, 26000000, |
66 | SND_SOC_CLOCK_IN); | 45 | SND_SOC_CLOCK_IN); |
@@ -84,6 +63,8 @@ static struct snd_soc_dai_link igep2_dai = { | |||
84 | .codec_dai_name = "twl4030-hifi", | 63 | .codec_dai_name = "twl4030-hifi", |
85 | .platform_name = "omap-pcm-audio", | 64 | .platform_name = "omap-pcm-audio", |
86 | .codec_name = "twl4030-codec", | 65 | .codec_name = "twl4030-codec", |
66 | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | | ||
67 | SND_SOC_DAIFMT_CBM_CFM, | ||
87 | .ops = &igep2_ops, | 68 | .ops = &igep2_ops, |
88 | }; | 69 | }; |
89 | 70 | ||