diff options
Diffstat (limited to 'sound/soc/atmel/snd-soc-afeb9260.c')
-rw-r--r-- | sound/soc/atmel/snd-soc-afeb9260.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/sound/soc/atmel/snd-soc-afeb9260.c b/sound/soc/atmel/snd-soc-afeb9260.c index 4ca667d477f9..cb0130cf8f13 100644 --- a/sound/soc/atmel/snd-soc-afeb9260.c +++ b/sound/soc/atmel/snd-soc-afeb9260.c | |||
@@ -46,29 +46,8 @@ static int afeb9260_hw_params(struct snd_pcm_substream *substream, | |||
46 | { | 46 | { |
47 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 47 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
48 | struct snd_soc_dai *codec_dai = rtd->codec_dai; | 48 | struct snd_soc_dai *codec_dai = rtd->codec_dai; |
49 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; | ||
50 | int err; | 49 | int err; |
51 | 50 | ||
52 | /* Set codec DAI configuration */ | ||
53 | err = snd_soc_dai_set_fmt(codec_dai, | ||
54 | SND_SOC_DAIFMT_I2S| | ||
55 | SND_SOC_DAIFMT_NB_IF | | ||
56 | SND_SOC_DAIFMT_CBM_CFM); | ||
57 | if (err < 0) { | ||
58 | printk(KERN_ERR "can't set codec DAI configuration\n"); | ||
59 | return err; | ||
60 | } | ||
61 | |||
62 | /* Set cpu DAI configuration */ | ||
63 | err = snd_soc_dai_set_fmt(cpu_dai, | ||
64 | SND_SOC_DAIFMT_I2S | | ||
65 | SND_SOC_DAIFMT_NB_IF | | ||
66 | SND_SOC_DAIFMT_CBM_CFM); | ||
67 | if (err < 0) { | ||
68 | printk(KERN_ERR "can't set cpu DAI configuration\n"); | ||
69 | return err; | ||
70 | } | ||
71 | |||
72 | /* Set the codec system clock for DAC and ADC */ | 51 | /* Set the codec system clock for DAC and ADC */ |
73 | err = | 52 | err = |
74 | snd_soc_dai_set_sysclk(codec_dai, 0, CODEC_CLOCK, SND_SOC_CLOCK_IN); | 53 | snd_soc_dai_set_sysclk(codec_dai, 0, CODEC_CLOCK, SND_SOC_CLOCK_IN); |
@@ -129,6 +108,8 @@ static struct snd_soc_dai_link afeb9260_dai = { | |||
129 | .platform_name = "atmel_pcm-audio", | 108 | .platform_name = "atmel_pcm-audio", |
130 | .codec_name = "tlv320aic23-codec.0-001a", | 109 | .codec_name = "tlv320aic23-codec.0-001a", |
131 | .init = afeb9260_tlv320aic23_init, | 110 | .init = afeb9260_tlv320aic23_init, |
111 | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_IF | | ||
112 | SND_SOC_DAIFMT_CBM_CFM, | ||
132 | .ops = &afeb9260_ops, | 113 | .ops = &afeb9260_ops, |
133 | }; | 114 | }; |
134 | 115 | ||