All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: Intel: cleanup runtime_pm initialization
@ 2014-11-19  9:43 Vinod Koul
  2014-11-19  9:43 ` [PATCH 2/2] ASoC: Intel: add BYTCR machine driver with RT5640 Vinod Koul
  2014-11-19 10:56 ` [PATCH 1/2] ASoC: Intel: cleanup runtime_pm initialization Mark Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Vinod Koul @ 2014-11-19  9:43 UTC (permalink / raw)
  To: alsa-devel; +Cc: Vinod Koul, broonie, lgirdwood

For ACPI we missed to pm_runtime_enable() call which is required to tell PM
core that runtime on this device is enabled now. Since this is common to
both PCI and APCI move it out. Also for ACPI we do not require
pm_runtime_allow() call, so remove that

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/soc/intel/sst/sst.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sound/soc/intel/sst/sst.c b/sound/soc/intel/sst/sst.c
index b2b5604..9e68a7c 100644
--- a/sound/soc/intel/sst/sst.c
+++ b/sound/soc/intel/sst/sst.c
@@ -378,13 +378,13 @@ void sst_configure_runtime_pm(struct intel_sst_drv *ctx)
 	 * initially active. So change the state to active before
 	 * enabling the pm
 	 */
-	if (acpi_disabled) {
+	pm_runtime_enable(ctx->dev);
+
+	if (acpi_disabled)
 		pm_runtime_set_active(ctx->dev);
-		pm_runtime_enable(ctx->dev);
-	} else {
-		pm_runtime_allow(ctx->dev);
+	else
 		pm_runtime_put_noidle(ctx->dev);
-	}
+
 	sst_save_shim64(ctx, ctx->shim, ctx->shim_regs64);
 }
 EXPORT_SYMBOL_GPL(sst_configure_runtime_pm);
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-11-21  8:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-19  9:43 [PATCH 1/2] ASoC: Intel: cleanup runtime_pm initialization Vinod Koul
2014-11-19  9:43 ` [PATCH 2/2] ASoC: Intel: add BYTCR machine driver with RT5640 Vinod Koul
2014-11-19 17:49   ` Mark Brown
2014-11-19 10:56 ` [PATCH 1/2] ASoC: Intel: cleanup runtime_pm initialization Mark Brown
2014-11-20  9:05   ` Lin, Mengdong
2014-11-20  9:12     ` Vinod Koul
2014-11-20  9:38       ` Mark Brown
2014-11-21  8:12         ` Lin, Mengdong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.