aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/mxs/mxs-pcm.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-02-21 11:47:57 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-21 14:29:59 -0500
commit8949490f70cf2cda615fb0fd0ddc299b531e6e48 (patch)
tree85b8c3fc0f8aa930e380ad2149cb569a4dae4ae8 /sound/soc/mxs/mxs-pcm.c
parentf6914024575fc3fd9773531ca74d1bcb0ddaf88f (diff)
ASoC: mxs-pcm: Remove unused fields from struct mxs_pcm_runtime_data
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/mxs/mxs-pcm.c')
-rw-r--r--sound/soc/mxs/mxs-pcm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/mxs/mxs-pcm.c b/sound/soc/mxs/mxs-pcm.c
index 105f42a394df..06c18ecffbb4 100644
--- a/sound/soc/mxs/mxs-pcm.c
+++ b/sound/soc/mxs/mxs-pcm.c
@@ -119,19 +119,14 @@ static int snd_mxs_pcm_hw_params(struct snd_pcm_substream *substream,
119 return ret; 119 return ret;
120 chan = iprtd->dma_chan; 120 chan = iprtd->dma_chan;
121 121
122 iprtd->size = params_buffer_bytes(params);
123 iprtd->periods = params_periods(params); 122 iprtd->periods = params_periods(params);
124 iprtd->period_bytes = params_period_bytes(params); 123 iprtd->period_bytes = params_period_bytes(params);
125 iprtd->offset = 0; 124 iprtd->offset = 0;
126 iprtd->period_time = HZ / (params_rate(params) /
127 params_period_size(params));
128 125
129 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); 126 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
130 127
131 dma_addr = runtime->dma_addr; 128 dma_addr = runtime->dma_addr;
132 129
133 iprtd->buf = substream->dma_buffer.area;
134
135 iprtd->desc = chan->device->device_prep_dma_cyclic(chan, dma_addr, 130 iprtd->desc = chan->device->device_prep_dma_cyclic(chan, dma_addr,
136 iprtd->period_bytes * iprtd->periods, 131 iprtd->period_bytes * iprtd->periods,
137 iprtd->period_bytes, 132 iprtd->period_bytes,