From: Lars-Peter Clausen Date: Tue, 21 Feb 2012 16:47:57 +0000 (+0100) Subject: ASoC: mxs-pcm: Remove unused fields from struct mxs_pcm_runtime_data X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8949490f70cf2cda615fb0fd0ddc299b531e6e48;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: mxs-pcm: Remove unused fields from struct mxs_pcm_runtime_data Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- 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, 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, diff --git a/sound/soc/mxs/mxs-pcm.h b/sound/soc/mxs/mxs-pcm.h index f55ac4f7a76a..ba75e103bb3b 100644 --- a/sound/soc/mxs/mxs-pcm.h +++ b/sound/soc/mxs/mxs-pcm.h @@ -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;