ASoC: Intel: cleanup runtime_pm initialization
Subsystems (3)
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
@@ -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
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
@@ -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
@@ -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
Re: [PATCH 2/2] ASoC: Intel: add BYTCR machine driver with RT5640
Quoted 4 lines · Vinod Koul
From: Subhransu S. Prusty <[email protected]>
Signed-off-by Subhransu S. Prusty <[email protected]>Signed-off-by Vinod Koul <[email protected]>
Applied, thanks.
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 requirepm_runtime_allow()call, so remove that
Applied, thanks.
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: cleanupruntime_pminitializationQuoted 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 requirepm_runtime_allow()call, so remove thatApplied, thanks.
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
MengdongQuoted 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: cleanupruntime_pminitializationQuoted 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 requirepm_runtime_allow()call, so remove thatApplied, thanks.
Mark Brown
maintainerQuoted 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.
Quoted 9 lines
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Thursday, November 20, 2014 5:39 PMQuoted 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