aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/imx/imx-pcm-dma-mx2.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-02-21 11:47:56 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-21 14:29:59 -0500
commitf6914024575fc3fd9773531ca74d1bcb0ddaf88f (patch)
tree0f07cb9c844c972072a84251d3bb9cd8b45392ae /sound/soc/imx/imx-pcm-dma-mx2.c
parente54e2f81da0aaf9e39d6f9b25fa08ce0bec9ca06 (diff)
ASoC: imx-pcm: Remove unused fields from imx_pcm_runtime_data struct
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/imx/imx-pcm-dma-mx2.c')
-rw-r--r--sound/soc/imx/imx-pcm-dma-mx2.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sound/soc/imx/imx-pcm-dma-mx2.c b/sound/soc/imx/imx-pcm-dma-mx2.c
index bc1df166385a..ec1394415526 100644
--- a/sound/soc/imx/imx-pcm-dma-mx2.c
+++ b/sound/soc/imx/imx-pcm-dma-mx2.c
@@ -35,11 +35,7 @@
35struct imx_pcm_runtime_data { 35struct imx_pcm_runtime_data {
36 int period_bytes; 36 int period_bytes;
37 int periods; 37 int periods;
38 int dma;
39 unsigned long offset; 38 unsigned long offset;
40 unsigned long size;
41 void *buf;
42 int period_time;
43 struct dma_async_tx_descriptor *desc; 39 struct dma_async_tx_descriptor *desc;
44 struct dma_chan *dma_chan; 40 struct dma_chan *dma_chan;
45 struct imx_dma_data dma_data; 41 struct imx_dma_data dma_data;
@@ -144,19 +140,14 @@ static int snd_imx_pcm_hw_params(struct snd_pcm_substream *substream,
144 return ret; 140 return ret;
145 chan = iprtd->dma_chan; 141 chan = iprtd->dma_chan;
146 142
147 iprtd->size = params_buffer_bytes(params);
148 iprtd->periods = params_periods(params); 143 iprtd->periods = params_periods(params);
149 iprtd->period_bytes = params_period_bytes(params); 144 iprtd->period_bytes = params_period_bytes(params);
150 iprtd->offset = 0; 145 iprtd->offset = 0;
151 iprtd->period_time = HZ / (params_rate(params) /
152 params_period_size(params));
153 146
154 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); 147 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
155 148
156 dma_addr = runtime->dma_addr; 149 dma_addr = runtime->dma_addr;
157 150
158 iprtd->buf = (unsigned int *)substream->dma_buffer.area;
159
160 iprtd->desc = chan->device->device_prep_dma_cyclic(chan, dma_addr, 151 iprtd->desc = chan->device->device_prep_dma_cyclic(chan, dma_addr,
161 iprtd->period_bytes * iprtd->periods, 152 iprtd->period_bytes * iprtd->periods,
162 iprtd->period_bytes, 153 iprtd->period_bytes,