aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2009-07-04 22:29:56 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-07-05 07:59:08 -0400
commit9333b594a08f2b2d8b7d96260164817acdbc5cab (patch)
treebfda524ccc9845ef5a9a34b86d4e913acedcf05a
parent1bef449989d0866a7db366a8153135cfa3d5cad9 (diff)
ASoC: DaVinci: i2s, minor cleanup of davinci_i2s_startup
Save a few lines of code. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/davinci/davinci-i2s.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c
index 42609654b5e3..5b31b56e2e92 100644
--- a/sound/soc/davinci/davinci-i2s.c
+++ b/sound/soc/davinci/davinci-i2s.c
@@ -210,14 +210,10 @@ static void davinci_mcbsp_stop(struct davinci_mcbsp_dev *dev, int playback)
210} 210}
211 211
212static int davinci_i2s_startup(struct snd_pcm_substream *substream, 212static int davinci_i2s_startup(struct snd_pcm_substream *substream,
213 struct snd_soc_dai *dai) 213 struct snd_soc_dai *cpu_dai)
214{ 214{
215 struct snd_soc_pcm_runtime *rtd = substream->private_data; 215 struct davinci_mcbsp_dev *dev = cpu_dai->private_data;
216 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
217 struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data;
218
219 cpu_dai->dma_data = dev->dma_params[substream->stream]; 216 cpu_dai->dma_data = dev->dma_params[substream->stream];
220
221 return 0; 217 return 0;
222} 218}
223 219