linux/sound/soc/sh
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
..
rcar ASoC: rsnd: add rsnd_dma_alloc() 2017-09-21 17:50:48 +01:00
dma-sh7760.c ASoC: sh: make snd_pcm_hardware const 2017-08-17 17:57:21 +01:00
fsi.c Merge remote-tracking branches 'asoc/topic/dwc', 'asoc/topic/es8316', 'asoc/topic/fsi', 'asoc/topic/fsl' and 'asoc/topic/hdmi' into asoc-next 2017-09-01 12:12:36 +01:00
hac.c ASoC: sh: hac: add missing "int ret" 2017-07-24 13:06:53 +01:00
Kconfig ASoC: rsnd: add HDMI output support 2017-05-19 18:36:25 +01:00
Makefile ASoC: add Renesas R-Car core feature 2013-07-28 19:34:09 +01:00
migor.c ASoC: sh: make snd_soc_ops const 2017-08-17 18:09:48 +01:00
sh7760-ac97.c
siu_dai.c ASoC: sh: make snd_pcm_hardware const 2017-08-17 17:57:21 +01:00
siu_pcm.c ASoC: sh: constify snd_pcm_ops structures 2017-08-14 17:23:43 +01:00
siu.h
ssi.c ASoC: sh: ssi: Convert to devm_snd_soc_register_component 2015-08-28 17:28:49 +01:00