]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: Request/Release DMA channel each time
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 14 Nov 2016 04:20:40 +0000 (04:20 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 22 Nov 2016 17:25:52 +0000 (17:25 +0000)
commit0738b3eff2ee91ba69900ac04c499290da9e49ab
tree31f4a729c1d96d0942a799ca006ee767b52f6250
parent6fdd873375f12c447995e3c022499e0acdd2da87
ASoC: rsnd: Request/Release DMA channel each time

Current Renesas Sound driver requests DMA channel when .probe timing,
and release it when .remove timing. And use DMA on .start/.stop
But, Audio DMAC power ON was handled when request timing (= .probe),
and power OFF was when release timing (= .remove).
This means Audio DMAC power is always ON during driver was enabled.
The best choice to solve this issue is that DMAEngine side handle
this. But current DMAEngine API design can't solve atmic/non-atmic
context issue for power ON/OFF. So next better choice is sound
driver request/release DMA channel each time. This patch do it

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c