]> Git Repo - linux.git/commitdiff
ASoC: rsnd: dma.c: spin lock is no longer needed in IRQ handler
authorKuninori Morimoto <[email protected]>
Wed, 29 Nov 2017 03:08:35 +0000 (03:08 +0000)
committerMark Brown <[email protected]>
Wed, 29 Nov 2017 10:16:48 +0000 (10:16 +0000)
DMA handler had needed to calculate pointer before, but it doesn't
need now. Thus, we can remove unnecessary spin lock from DMAC handler.

Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/sh/rcar/dma.c

index 4d750bdf8e2449981537a4b6d41bea33af321789..41de23417c4a11199140f32c8b7804c51e606a24 100644 (file)
@@ -71,25 +71,7 @@ static struct rsnd_mod mem = {
 static void __rsnd_dmaen_complete(struct rsnd_mod *mod,
                                  struct rsnd_dai_stream *io)
 {
-       struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
-       bool elapsed = false;
-       unsigned long flags;
-
-       /*
-        * Renesas sound Gen1 needs 1 DMAC,
-        * Gen2 needs 2 DMAC.
-        * In Gen2 case, it are Audio-DMAC, and Audio-DMAC-peri-peri.
-        * But, Audio-DMAC-peri-peri doesn't have interrupt,
-        * and this driver is assuming that here.
-        */
-       spin_lock_irqsave(&priv->lock, flags);
-
        if (rsnd_io_is_working(io))
-               elapsed = true;
-
-       spin_unlock_irqrestore(&priv->lock, flags);
-
-       if (elapsed)
                rsnd_dai_period_elapsed(io);
 }
 
This page took 0.059377 seconds and 4 git commands to generate.