diff options
author | Garlic Tseng <garlic.tseng@mediatek.com> | 2017-02-16 13:27:15 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-02-16 18:27:17 +0000 |
commit | cc3e1ce2c73c0e44373eb364f94e4fefebf7719e (patch) | |
tree | 27b045c6b2b6fd3a49578806ffab088fd1e59fd4 /sound | |
parent | b1b9e0d3d98ebb1a228d9994b4c9dbac7215e2b9 (diff) | |
download | linux-stable-cc3e1ce2c73c0e44373eb364f94e4fefebf7719e.tar.gz linux-stable-cc3e1ce2c73c0e44373eb364f94e4fefebf7719e.tar.bz2 linux-stable-cc3e1ce2c73c0e44373eb364f94e4fefebf7719e.zip |
ASoC: mediatek: add power-domain get/put ctrl for mt2701
add power-domain ctrl for audio driver
Signed-off-by: Garlic Tseng <garlic.tseng@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c index 34a6123480d3..c7fa3e663463 100644 --- a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c +++ b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c @@ -1578,6 +1578,7 @@ static int mt2701_afe_pcm_dev_probe(struct platform_device *pdev) pm_runtime_enable(&pdev->dev); if (!pm_runtime_enabled(&pdev->dev)) goto err_pm_disable; + pm_runtime_get_sync(&pdev->dev); ret = snd_soc_register_platform(&pdev->dev, &mtk_afe_pcm_platform); if (ret) { @@ -1617,6 +1618,7 @@ static int mt2701_afe_pcm_dev_remove(struct platform_device *pdev) pm_runtime_disable(&pdev->dev); if (!pm_runtime_status_suspended(&pdev->dev)) mt2701_afe_runtime_suspend(&pdev->dev); + pm_runtime_put_sync(&pdev->dev); snd_soc_unregister_component(&pdev->dev); snd_soc_unregister_platform(&pdev->dev); |