ASoC: mediatek: Turn AFE on/off in runtime resume/suspend
authorKoro Chen <koro.chen@mediatek.com>
Tue, 22 Dec 2015 03:11:34 +0000 (11:11 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 22 Dec 2015 23:52:20 +0000 (23:52 +0000)
commitc1f2a342846fbfd49ddc06ad7f0684d2c45b419d
treeea780c2454d8d1d0fcd8e315fbac64e4efe803c0
parent8d6f88ce961cf62137696627448cfd6038f07f41
ASoC: mediatek: Turn AFE on/off in runtime resume/suspend

AFE is actually allowed to be turn on before configuration of DAIs
since each DAI has its own enabling control. Turn on/off AFE in
runtime resume/suspend to avoid AFE being shut down when closing a DAI
while other DAIs are still active.

Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mtk-afe-pcm.c