ASoC: rsnd: remove rsnd_dma::addr
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 20 Feb 2015 10:28:07 +0000 (10:28 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 7 Mar 2015 15:04:30 +0000 (15:04 +0000)
DMAEngine for Renesas R-Car driver is used only for Audio DMAC now.
rsnd_dma::addr was added to support Audio DMAC peri peri,
but it is no longer needed. Let's remove it

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c
sound/soc/sh/rcar/rsnd.h

index a01bb8c6b06808b110a54a59862eb3e7dc1f03ae..c407fd250d2a296b2b6d49cd0713c7a7aa57d9c5 100644 (file)
@@ -89,7 +89,6 @@ static void rsnd_dmaen_start(struct rsnd_dma *dma)
        struct dma_async_tx_descriptor *desc;
 
        desc = dmaengine_prep_dma_cyclic(dma->chan,
-                                        (dma->addr) ? dma->addr :
                                         substream->runtime->dma_addr,
                                         snd_pcm_lib_buffer_bytes(substream),
                                         snd_pcm_lib_period_bytes(substream),
@@ -157,7 +156,6 @@ static int rsnd_dmaen_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id,
        if (ret < 0)
                goto rsnd_dma_init_err;
 
-       dma->addr = is_play ? cfg.src_addr : cfg.dst_addr;
        dma->dir = is_play ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM;
 
        return 0;
index 9e67142c82bd20be5c044137b839357adfdb54de..a2954917bfcb8f834902f084ca9114d8960df3ed 100644 (file)
@@ -183,7 +183,6 @@ struct rsnd_dma {
        struct dma_chan         *chan;
        struct rsnd_dma_ops     *ops;
        enum dma_transfer_direction dir;
-       dma_addr_t              addr;
        int                     dmapp_id;
        u32                     chcr;
        dma_addr_t              src_addr;