ASoC: mxs-pcm: Remove unused fields from struct mxs_pcm_runtime_data
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 21 Feb 2012 16:47:57 +0000 (17:47 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 21 Feb 2012 19:29:59 +0000 (19:29 +0000)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mxs/mxs-pcm.c
sound/soc/mxs/mxs-pcm.h

index 105f42a394df6460e80899f22c567f3ac6192c7f..06c18ecffbb437eb49910dfe445eaf89e0ccd8a2 100644 (file)
@@ -119,19 +119,14 @@ static int snd_mxs_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 = substream->dma_buffer.area;
-
        iprtd->desc = chan->device->device_prep_dma_cyclic(chan, dma_addr,
                        iprtd->period_bytes * iprtd->periods,
                        iprtd->period_bytes,
index f55ac4f7a76a4f11e42dd5782d5178afd2ebcd57..ba75e103bb3beaf325f93f4cf7a701c13dd8f74c 100644 (file)
@@ -29,11 +29,7 @@ struct mxs_pcm_dma_params {
 struct mxs_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 mxs_dma_data dma_data;