]> 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)
commite78181d58b4ea8dcf5fdf8089265702346a8cf05
tree31f4a729c1d96d0942a799ca006ee767b52f6250
parenta1bbdf9c955451b9e7cee91a49d8677bc8faa247
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