projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
662721e
)
ASoC: rsnd: tidyup rsnd_dma_addr()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Wed, 1 Feb 2023 02:00:42 +0000
(
02:00
+0000)
committer
Mark Brown
<broonie@kernel.org>
Wed, 1 Feb 2023 11:43:53 +0000
(11:43 +0000)
This patch tidyups rsnd_dma_addr(), but there is no effect.
This is prepare for Gen4 support.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://lore.kernel.org/r/87sffq5elx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c
patch
|
blob
|
history
diff --git
a/sound/soc/sh/rcar/dma.c
b/sound/soc/sh/rcar/dma.c
index 463ab237d7bd47ff9e79272bd07502ba73979b0b..b422c3bd34dec413687da2843b4dba5c2639a39a 100644
(file)
--- a/
sound/soc/sh/rcar/dma.c
+++ b/
sound/soc/sh/rcar/dma.c
@@
-659,16
+659,16
@@
static dma_addr_t rsnd_dma_addr(struct rsnd_dai_stream *io,
{
struct rsnd_priv *priv = rsnd_io_to_priv(io);
+ if (!mod)
+ return 0;
+
/*
* gen1 uses default DMA addr
*/
if (rsnd_is_gen1(priv))
return 0;
-
- if (!mod)
- return 0;
-
- return rsnd_gen2_dma_addr(io, mod, is_play, is_from);
+ else
+ return rsnd_gen2_dma_addr(io, mod, is_play, is_from);
}
#define MOD_MAX (RSND_MOD_MAX + 1) /* +Memory */