ASoc: rsnd: dma: Calculate dma address with consider of BUSIF
authorJiada Wang <jiada_wang@mentor.com>
Mon, 3 Sep 2018 07:07:43 +0000 (07:07 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Sep 2018 13:37:17 +0000 (14:37 +0100)
commit5e45a6fab3b90ca300e13191fc68baaa8e37d1d4
tree632e06a2b884d254281c203b57276f7287500fc3
parent599da084e041b877ef89211dcbb4c7bd8380049d
ASoc: rsnd: dma: Calculate dma address with consider of BUSIF

DMA address calculated by rsnd_dma_addr() only considers BUSIF0 so far.
But BUSIF1 ~ BUSIF7 also maybe used, in the future.

This patch updates DMA address calculations, to also consider
BUSIF number used by SSI.

One note is that we can't support SSI9-4/5/6/7 so far,
because its address is out of calculation rule.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
[kuninori: adjust to upstreaming]
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c
sound/soc/sh/rcar/rsnd.h
sound/soc/sh/rcar/ssi.c