Skip to contentSkip to conversation

ASoC: Intel: cleanup runtime_pm initialization

PATCH Applied Vinod Koul 3 participants 8 messages Nov 19, 2014 – Nov 21, 2014

Subsystems (3)
lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

PATCH 1/2 ASoC: Intel: cleanup runtime_pm initialization

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

---
 sound/soc/intel/sst/sst.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/sst/sst.c +5 -5
index b2b5604..9e68a7c 100644
@@ -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);
Signature · 1 line
1.7.0.4
author
#1 lore raw

PATCH 2/2 ASoC: Intel: add BYTCR machine driver with RT5640

From: Subhransu S. Prusty <[email protected]>

---
 sound/soc/intel/Kconfig             |   12 ++
 sound/soc/intel/Makefile            |    2 +
 sound/soc/intel/bytcr_dpcm_rt5640.c |  230 +++++++++++++++++++++++++++++++++++
 3 files changed, 244 insertions(+), 0 deletions(-)
 create mode 100644 sound/soc/intel/bytcr_dpcm_rt5640.c
sound/soc/intel/Kconfig +12 -0
index a992e85..a26e8e8 100644
@@ -86,3 +86,15 @@ config SND_SOC_INTEL_BROADWELL_MACH
 	  Ultrabook platforms.
 	  Say Y if you have such a device
 	  If unsure select "N".
+
+config SND_SOC_INTEL_BYTCR_RT5640_MACH
+	tristate "ASoC Audio DSP Support for MID BYT Platform"
+	depends on X86
+	select SND_SOC_RT5640
+	select SND_SST_MFLD_PLATFORM
+	select SND_SST_IPC_ACPI
+	help
+	  This adds support for ASoC machine driver for Intel(R) MID Baytrail platform
+          used as alsa device in audio substem in Intel(R) MID devices
+          Say Y if you have such a device
+          If unsure select "N".
sound/soc/intel/Makefile +2 -0
index 9ab43be..fbde4b0 100644
@@ -26,11 +26,13 @@ snd-soc-sst-haswell-objs := haswell.o
 snd-soc-sst-byt-rt5640-mach-objs := byt-rt5640.o
 snd-soc-sst-byt-max98090-mach-objs := byt-max98090.o
 snd-soc-sst-broadwell-objs := broadwell.o
+snd-soc-sst-bytcr-dpcm-rt5640-objs := bytcr_dpcm_rt5640.o
 
 obj-$(CONFIG_SND_SOC_INTEL_HASWELL_MACH) += snd-soc-sst-haswell.o
 obj-$(CONFIG_SND_SOC_INTEL_BYT_RT5640_MACH) += snd-soc-sst-byt-rt5640-mach.o
 obj-$(CONFIG_SND_SOC_INTEL_BYT_MAX98090_MACH) += snd-soc-sst-byt-max98090-mach.o
 obj-$(CONFIG_SND_SOC_INTEL_BROADWELL_MACH) += snd-soc-sst-broadwell.o
+obj-$(CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH) += snd-soc-sst-bytcr-dpcm-rt5640.o
 
 # DSP driver
 obj-$(CONFIG_SND_SST_IPC) += sst/
sound/soc/intel/bytcr_dpcm_rt5640.c new file +230 -0

230 lines not on this page · raw message

Signature · 1 line
1.7.0.4
maintainer Applied
#3 lore raw
In reply to Vinod Koul
Quoted 4 lines · Vinod Koul

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

Applied, thanks.

#4 lore raw

Hi Mark and Vinod,

Could you tell me where are the two patches in git repo?

I cannot find them on topic/intel branch.
I want to rebase the Cherrytrail/Braswell machine driver on the two applied patches.

Thanks
Mengdong

Quoted 17 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Brown
Sent: Wednesday, November 19, 2014 6:57 PM
To: Koul, Vinod
Cc: [email protected]; [email protected]
Subject: Re: [alsa-devel] [PATCH 1/2] ASoC: Intel: cleanup runtime_pm initialization

Quoted 5 lines · Vinod Koul

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

Applied, thanks.

author
#5 lore raw
Quoted 1 line · Mengdong

Hi Mark and Vinod,

Please don't top post

Quoted 6 lines

Could you tell me where are the two patches in git repo?

I cannot find them on topic/intel branch.
I want to rebase the Cherrytrail/Braswell machine driver on the two applied patches.

I think Mark forgot to push :) don't see update to tree since yesterday

Signature · 1 line
~Vinod
Quoted 21 lines

Thanks
Mengdong

Quoted 17 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Brown
Sent: Wednesday, November 19, 2014 6:57 PM
To: Koul, Vinod
Cc: [email protected]; [email protected]
Subject: Re: [alsa-devel] [PATCH 1/2] ASoC: Intel: cleanup runtime_pm initialization

Quoted 5 lines · Vinod Koul

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

Applied, thanks.

maintainer
#6 lore raw
Quoted 9 lines · Vinod Koul
Quoted 5 lines · Mengdong

Could you tell me where are the two patches in git repo?

I cannot find them on topic/intel branch.
I want to rebase the Cherrytrail/Braswell machine driver on the two applied patches.

I think Mark forgot to push :) don't see update to tree since yesterday

No, I haven't forgotten. I've got spotty connectivity since I'm travelling.

#7 lore raw
Quoted 9 lines

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Thursday, November 20, 2014 5:39 PM

Quoted 3 lines · Vinod Koul
Quoted 1 line · Mengdong

Could you tell me where are the two patches in git repo?

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

I cannot find them on topic/intel branch.
I want to rebase the Cherrytrail/Braswell machine driver on the two applied patches.

I think Mark forgot to push :) don't see update to tree since yesterday

No, I haven't forgotten. I've got spotty connectivity since I'm travelling.

Got it. Thanks!

I posted the new v6 Cherrytrail & Braswell patches based on Vinod's patches:
[PATCH v6 1/2] ASoC: Intel: Add Cherrytrail & Braswell machine driver cht_bsw_rt5672 [PATCH v6 2/2] ASoC: Intel: add support for Cherrytrail and Braswell in SST driver

Regards
Mengdong