Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rsnd: tidyup rsnd_dma_addr()

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>

authored by

Kuninori Morimoto and committed by
Mark Brown
c20bc7c9 662721ec

+5 -5
+5 -5
sound/soc/sh/rcar/dma.c
··· 659 659 { 660 660 struct rsnd_priv *priv = rsnd_io_to_priv(io); 661 661 662 + if (!mod) 663 + return 0; 664 + 662 665 /* 663 666 * gen1 uses default DMA addr 664 667 */ 665 668 if (rsnd_is_gen1(priv)) 666 669 return 0; 667 - 668 - if (!mod) 669 - return 0; 670 - 671 - return rsnd_gen2_dma_addr(io, mod, is_play, is_from); 670 + else 671 + return rsnd_gen2_dma_addr(io, mod, is_play, is_from); 672 672 } 673 673 674 674 #define MOD_MAX (RSND_MOD_MAX + 1) /* +Memory */