Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1582319 > unrolled thread

[alsa-devel] [PATCH 0/2] ASoC: mediatek: add power-domain ctrl for 2701

Started byGarlic Tseng <garlic.tseng@mediatek.com>
First post2017-02-16 06:30 +0100
Last post2017-02-16 20:10 +0100
Articles 4 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [alsa-devel] [PATCH 0/2] ASoC: mediatek: add power-domain ctrl for 2701 Garlic Tseng <garlic.tseng@mediatek.com> - 2017-02-16 06:30 +0100
    [alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain get/put ctrl for mt2701 Garlic Tseng <garlic.tseng@mediatek.com> - 2017-02-16 06:30 +0100
      Re: [alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain  get/put ctrl for mt2701 Mark Brown <broonie@kernel.org> - 2017-02-16 19:30 +0100
      Applied "ASoC: mediatek: add power-domain get/put ctrl for mt2701" to the asoc tree Mark Brown <broonie@kernel.org> - 2017-02-16 20:10 +0100

#1582319 — [alsa-devel] [PATCH 0/2] ASoC: mediatek: add power-domain ctrl for 2701

FromGarlic Tseng <garlic.tseng@mediatek.com>
Date2017-02-16 06:30 +0100
Subject[alsa-devel] [PATCH 0/2] ASoC: mediatek: add power-domain ctrl for 2701
Message-ID<tbmNI-1El-3@gated-at.bofh.it>
add power-domain get/put ctrl for 2701 and add relative node description
in binding doc.

Garlic Tseng (2):
  ASoC: mediatek: add power-domain get/put ctrl for mt2701
  ASoC: mediatek: add power-domains for mt2701-afe-pcm.txt

 Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 2 ++
 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c                 | 2 ++
 2 files changed, 4 insertions(+)

-- 
1.9.1

[toc] | [next] | [standalone]


#1582320 — [alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain get/put ctrl for mt2701

FromGarlic Tseng <garlic.tseng@mediatek.com>
Date2017-02-16 06:30 +0100
Subject[alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain get/put ctrl for mt2701
Message-ID<tbmNI-1El-9@gated-at.bofh.it>
In reply to#1582319
add power-domain ctrl for audio driver

Signed-off-by: Garlic Tseng <garlic.tseng@mediatek.com>
---
 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
index 34a6123..c7fa3e6 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);
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1582827 — Re: [alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain get/put ctrl for mt2701

FromMark Brown <broonie@kernel.org>
Date2017-02-16 19:30 +0100
SubjectRe: [alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain get/put ctrl for mt2701
Message-ID<tbyYy-1KY-5@gated-at.bofh.it>
In reply to#1582320

[Multipart message — attachments visible in raw view] — view raw

On Thu, Feb 16, 2017 at 01:27:15PM +0800, Garlic Tseng wrote:

>  	pm_runtime_enable(&pdev->dev);
>  	if (!pm_runtime_enabled(&pdev->dev))
>  		goto err_pm_disable;
> +	pm_runtime_get_sync(&pdev->dev);

You should really check for errors here.

[toc] | [prev] | [next] | [standalone]


#1582867 — Applied "ASoC: mediatek: add power-domain get/put ctrl for mt2701" to the asoc tree

FromMark Brown <broonie@kernel.org>
Date2017-02-16 20:10 +0100
SubjectApplied "ASoC: mediatek: add power-domain get/put ctrl for mt2701" to the asoc tree
Message-ID<tbzBg-2gu-5@gated-at.bofh.it>
In reply to#1582320
The patch

   ASoC: mediatek: add power-domain get/put ctrl for mt2701

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

From cc3e1ce2c73c0e44373eb364f94e4fefebf7719e Mon Sep 17 00:00:00 2001
From: Garlic Tseng <garlic.tseng@mediatek.com>
Date: Thu, 16 Feb 2017 13:27:15 +0800
Subject: [PATCH] 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>
---
 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 ++
 1 file changed, 2 insertions(+)

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);
-- 
2.11.0

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web