]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitedce5c496c6af3e5ca6e1bb18f7cf4f6ef6226fa
tree31f4a729c1d96d0942a799ca006ee767b52f6250
parent3e58690b8dbddefb4422295b57a6f214e8aa03fd
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