summaryrefslogtreecommitdiffstats
path: root/sound/soc/imx
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-02-21 17:47:56 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-21 19:29:59 +0000
commitf6914024575fc3fd9773531ca74d1bcb0ddaf88f (patch)
tree0f07cb9c844c972072a84251d3bb9cd8b45392ae /sound/soc/imx
parente54e2f81da0aaf9e39d6f9b25fa08ce0bec9ca06 (diff)
downloadlinux-f6914024575fc3fd9773531ca74d1bcb0ddaf88f.tar.gz
linux-f6914024575fc3fd9773531ca74d1bcb0ddaf88f.tar.bz2
linux-f6914024575fc3fd9773531ca74d1bcb0ddaf88f.zip
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')
-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 @@
struct imx_pcm_runtime_data {
int period_bytes;
int periods;
- int dma;
unsigned long offset;
- unsigned long size;
- void *buf;
- int period_time;
struct dma_async_tx_descriptor *desc;
struct dma_chan *dma_chan;
struct imx_dma_data dma_data;
@@ -144,19 +140,14 @@ static int snd_imx_pcm_hw_params(struct snd_pcm_substream *substream,
return ret;
chan = iprtd->dma_chan;
- iprtd->size = params_buffer_bytes(params);
iprtd->periods = params_periods(params);
iprtd->period_bytes = params_period_bytes(params);
iprtd->offset = 0;
- iprtd->period_time = HZ / (params_rate(params) /
- params_period_size(params));
snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
dma_addr = runtime->dma_addr;
- iprtd->buf = (unsigned int *)substream->dma_buffer.area;
-
iprtd->desc = chan->device->device_prep_dma_cyclic(chan, dma_addr,
iprtd->period_bytes * iprtd->periods,
iprtd->period_bytes,