linux/sound/soc/sh/rcar
Kuninori Morimoto 81cb71240e ASoC: rsnd: add rsnd_dma_alloc()
R-Car sound DMA will be used from SSI/SRC.
dma.c doesn't alloc DMA handler in .probe timing, because we don't
know what kind of DMA transfer will be used then.
Thus, SSI/SRC have *rsnd_mod for DMA. rsnd_dma_attach() will allocate
it and attach it to system.
It will be PIO mode if it can't alloc DMA handler.

In case of MIX is used, rsnd_dma_attach() will be called twice from SSI.
To avoid duplicate allocation, current rsnd_dma_attach() is checking
allocated DMA handler. This DMA related operation is a little bit
difficult to understand.
This patch adds new rsnd_dma_alloc() and separates allocation and attach
for readable code.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-09-21 17:50:48 +01:00
..
adg.c ASoC: rsnd: fix ADG flags 2017-09-13 09:44:07 -07:00
cmd.c ASoC: rsnd: make arrays path and cmd_case static const 2017-06-30 12:45:36 +01:00
core.c ASoC: sh: make snd_pcm_hardware const 2017-08-17 17:57:21 +01:00
ctu.c ASoC: rsnd: add missing of_node_put 2017-07-17 15:39:51 +01:00
dma.c ASoC: rsnd: add rsnd_dma_alloc() 2017-09-21 17:50:48 +01:00
dvc.c ASoC: rsnd: add missing of_node_put 2017-07-17 15:39:51 +01:00
gen.c ASoC: rsnd: Delete an error message for a failed memory allocation in three functions 2017-08-10 16:32:38 +01:00
Makefile ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase3 2016-08-24 11:19:16 +01:00
mix.c ASoC: rsnd: add missing of_node_put 2017-07-17 15:39:51 +01:00
rsnd.h ASoC: rsnd: don't use private_value on rsnd_kctrl_new() 2017-07-24 16:26:50 +01:00
src.c ASoC: rsnd: remove unused rsnd_xxx_to_dma() 2017-08-22 16:30:57 +01:00
ssi.c ASoC: rsnd: remove unused rsnd_xxx_to_dma() 2017-08-22 16:30:57 +01:00
ssiu.c ASoC: rsnd: remove unnecessary static in rsnd_ssiu_probe() 2017-07-17 17:00:57 +01:00