Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
At Sat, 06 Dec 2014 10:22:44 +0100, Takashi Iwai wrote: > > At Sat, 06 Dec 2014 03:46:27 +0100, > Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > > selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks > > depending on CONFIG_PM_RUNTIME may now be changed to depend on > > CONFIG_PM. > > > > Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. > > > > Signed-off-by: Rafael J. Wysocki > > --- > > > > Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if > > PM_SLEEP is selected) which is only in linux-next at the moment (via the > > linux-pm tree). > > > > Please let me know if it is OK to take this one into linux-pm. > > I'm fine about hd-audio driver, but not sure about all the rest ASoC > stuff Mark is keeping up for 3.19. But if this is applied cleanly to > linux-next, it should be fine, too. I seem to have forgotten the formality :) Acked-by: Takashi Iwai thanks, Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
On Sat, Dec 06, 2014 at 03:46:27AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks > depending on CONFIG_PM_RUNTIME may now be changed to depend on > CONFIG_PM. Acked-by: Mark Brown signature.asc Description: Digital signature
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
On 12/5/14, 8:46 PM, "Rafael J. Wysocki" wrote: >From: Rafael J. Wysocki > >After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is >selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks >depending on CONFIG_PM_RUNTIME may now be changed to depend on >CONFIG_PM. > >Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. > >Signed-off-by: Rafael J. Wysocki >--- > >Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if >PM_SLEEP is selected) which is only in linux-next at the moment (via the >linux-pm tree). > For the cs35l32 Acked-by: Brian Austin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
On 12/5/14, 8:46 PM, Rafael J. Wysocki r...@rjwysocki.net wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). For the cs35l32 Acked-by: Brian Austin brian.aus...@cirrus.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
On Sat, Dec 06, 2014 at 03:46:27AM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Acked-by: Mark Brown broo...@kernel.org signature.asc Description: Digital signature
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
At Sat, 06 Dec 2014 10:22:44 +0100, Takashi Iwai wrote: At Sat, 06 Dec 2014 03:46:27 +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. I'm fine about hd-audio driver, but not sure about all the rest ASoC stuff Mark is keeping up for 3.19. But if this is applied cleanly to linux-next, it should be fine, too. I seem to have forgotten the formality :) Acked-by: Takashi Iwai ti...@suse.de thanks, Takashi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
On Sat, Dec 06, 2014 at 03:46:27AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks > depending on CONFIG_PM_RUNTIME may now be changed to depend on > CONFIG_PM. > > Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. > > Signed-off-by: Rafael J. Wysocki > --- > > Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if > PM_SLEEP is selected) which is only in linux-next at the moment (via the > linux-pm tree). > > Please let me know if it is OK to take this one into linux-pm. > > --- > sound/pci/hda/hda_controller.c |2 +- > sound/pci/hda/hda_intel.c |5 + > sound/soc/codecs/cs35l32.c |2 +- > sound/soc/codecs/cs42xx8.c |2 +- > sound/soc/codecs/max98090.c|2 +- > sound/soc/codecs/pcm512x.c |2 +- > sound/soc/codecs/tas2552.c |4 ++-- > sound/soc/codecs/wm2200.c |2 +- > sound/soc/codecs/wm5100.c |2 +- > sound/soc/codecs/wm8962.c |2 +- > sound/soc/fsl/fsl_asrc.c |4 ++-- > sound/soc/samsung/i2s.c|4 ++-- > 12 files changed, 15 insertions(+), 18 deletions(-) For cs42xx8.c and fsl_asrc.c Acked-by: Nicolin Chen Thank you Nic -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
At Sat, 06 Dec 2014 03:46:27 +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks > depending on CONFIG_PM_RUNTIME may now be changed to depend on > CONFIG_PM. > > Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. > > Signed-off-by: Rafael J. Wysocki > --- > > Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if > PM_SLEEP is selected) which is only in linux-next at the moment (via the > linux-pm tree). > > Please let me know if it is OK to take this one into linux-pm. I'm fine about hd-audio driver, but not sure about all the rest ASoC stuff Mark is keeping up for 3.19. But if this is applied cleanly to linux-next, it should be fine, too. thanks, Takashi > > --- > sound/pci/hda/hda_controller.c |2 +- > sound/pci/hda/hda_intel.c |5 + > sound/soc/codecs/cs35l32.c |2 +- > sound/soc/codecs/cs42xx8.c |2 +- > sound/soc/codecs/max98090.c|2 +- > sound/soc/codecs/pcm512x.c |2 +- > sound/soc/codecs/tas2552.c |4 ++-- > sound/soc/codecs/wm2200.c |2 +- > sound/soc/codecs/wm5100.c |2 +- > sound/soc/codecs/wm8962.c |2 +- > sound/soc/fsl/fsl_asrc.c |4 ++-- > sound/soc/samsung/i2s.c|4 ++-- > 12 files changed, 15 insertions(+), 18 deletions(-) > > Index: linux-pm/sound/pci/hda/hda_controller.c > === > --- linux-pm.orig/sound/pci/hda/hda_controller.c > +++ linux-pm/sound/pci/hda/hda_controller.c > @@ -1676,7 +1676,7 @@ irqreturn_t azx_interrupt(int irq, void > u8 sd_status; > int i; > > -#ifdef CONFIG_PM_RUNTIME > +#ifdef CONFIG_PM > if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME) > if (!pm_runtime_active(chip->card->dev)) > return IRQ_NONE; > Index: linux-pm/sound/pci/hda/hda_intel.c > === > --- linux-pm.orig/sound/pci/hda/hda_intel.c > +++ linux-pm/sound/pci/hda/hda_intel.c > @@ -856,7 +856,7 @@ static int azx_resume(struct device *dev > } > #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ > > -#ifdef CONFIG_PM_RUNTIME > +#ifdef CONFIG_PM > static int azx_runtime_suspend(struct device *dev) > { > struct snd_card *card = dev_get_drvdata(dev); > @@ -954,9 +954,6 @@ static int azx_runtime_idle(struct devic > return 0; > } > > -#endif /* CONFIG_PM_RUNTIME */ > - > -#ifdef CONFIG_PM > static const struct dev_pm_ops azx_pm = { > SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) > SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, > azx_runtime_idle) > Index: linux-pm/sound/soc/codecs/cs35l32.c > === > --- linux-pm.orig/sound/soc/codecs/cs35l32.c > +++ linux-pm/sound/soc/codecs/cs35l32.c > @@ -550,7 +550,7 @@ static int cs35l32_i2c_remove(struct i2c > return 0; > } > > -#ifdef CONFIG_PM_RUNTIME > +#ifdef CONFIG_PM > static int cs35l32_runtime_suspend(struct device *dev) > { > struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); > Index: linux-pm/sound/soc/codecs/cs42xx8.c > === > --- linux-pm.orig/sound/soc/codecs/cs42xx8.c > +++ linux-pm/sound/soc/codecs/cs42xx8.c > @@ -537,7 +537,7 @@ err_enable: > } > EXPORT_SYMBOL_GPL(cs42xx8_probe); > > -#ifdef CONFIG_PM_RUNTIME > +#ifdef CONFIG_PM > static int cs42xx8_runtime_resume(struct device *dev) > { > struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); > Index: linux-pm/sound/soc/codecs/max98090.c > === > --- linux-pm.orig/sound/soc/codecs/max98090.c > +++ linux-pm/sound/soc/codecs/max98090.c > @@ -2492,7 +2492,7 @@ static int max98090_i2c_remove(struct i2 > return 0; > } > > -#ifdef CONFIG_PM_RUNTIME > +#ifdef CONFIG_PM > static int max98090_runtime_resume(struct device *dev) > { > struct max98090_priv *max98090 = dev_get_drvdata(dev); > Index: linux-pm/sound/soc/codecs/pcm512x.c > === > --- linux-pm.orig/sound/soc/codecs/pcm512x.c > +++ linux-pm/sound/soc/codecs/pcm512x.c > @@ -517,7 +517,7 @@ void pcm512x_remove(struct device *dev) > } > EXPORT_SYMBOL_GPL(pcm512x_remove); > > -#ifdef CONFIG_PM_RUNTIME > +#ifdef CONFIG_PM > static int pcm512x_suspend(struct device *dev) > { > struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); > Index: linux-pm/sound/soc/codecs/tas2552.c > === > --- linux-pm.orig/sound/soc/codecs/tas2552.c > +++ linux-pm/sound/soc/codecs/tas2552.c > @@ -115,7 +115,7 @@ static const struct snd_soc_dapm_route t > {"ClassD", NULL, "PLL"}, >
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
At Sat, 06 Dec 2014 03:46:27 +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. I'm fine about hd-audio driver, but not sure about all the rest ASoC stuff Mark is keeping up for 3.19. But if this is applied cleanly to linux-next, it should be fine, too. thanks, Takashi --- sound/pci/hda/hda_controller.c |2 +- sound/pci/hda/hda_intel.c |5 + sound/soc/codecs/cs35l32.c |2 +- sound/soc/codecs/cs42xx8.c |2 +- sound/soc/codecs/max98090.c|2 +- sound/soc/codecs/pcm512x.c |2 +- sound/soc/codecs/tas2552.c |4 ++-- sound/soc/codecs/wm2200.c |2 +- sound/soc/codecs/wm5100.c |2 +- sound/soc/codecs/wm8962.c |2 +- sound/soc/fsl/fsl_asrc.c |4 ++-- sound/soc/samsung/i2s.c|4 ++-- 12 files changed, 15 insertions(+), 18 deletions(-) Index: linux-pm/sound/pci/hda/hda_controller.c === --- linux-pm.orig/sound/pci/hda/hda_controller.c +++ linux-pm/sound/pci/hda/hda_controller.c @@ -1676,7 +1676,7 @@ irqreturn_t azx_interrupt(int irq, void u8 sd_status; int i; -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM if (chip-driver_caps AZX_DCAPS_PM_RUNTIME) if (!pm_runtime_active(chip-card-dev)) return IRQ_NONE; Index: linux-pm/sound/pci/hda/hda_intel.c === --- linux-pm.orig/sound/pci/hda/hda_intel.c +++ linux-pm/sound/pci/hda/hda_intel.c @@ -856,7 +856,7 @@ static int azx_resume(struct device *dev } #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int azx_runtime_suspend(struct device *dev) { struct snd_card *card = dev_get_drvdata(dev); @@ -954,9 +954,6 @@ static int azx_runtime_idle(struct devic return 0; } -#endif /* CONFIG_PM_RUNTIME */ - -#ifdef CONFIG_PM static const struct dev_pm_ops azx_pm = { SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle) Index: linux-pm/sound/soc/codecs/cs35l32.c === --- linux-pm.orig/sound/soc/codecs/cs35l32.c +++ linux-pm/sound/soc/codecs/cs35l32.c @@ -550,7 +550,7 @@ static int cs35l32_i2c_remove(struct i2c return 0; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int cs35l32_runtime_suspend(struct device *dev) { struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/cs42xx8.c === --- linux-pm.orig/sound/soc/codecs/cs42xx8.c +++ linux-pm/sound/soc/codecs/cs42xx8.c @@ -537,7 +537,7 @@ err_enable: } EXPORT_SYMBOL_GPL(cs42xx8_probe); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int cs42xx8_runtime_resume(struct device *dev) { struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/max98090.c === --- linux-pm.orig/sound/soc/codecs/max98090.c +++ linux-pm/sound/soc/codecs/max98090.c @@ -2492,7 +2492,7 @@ static int max98090_i2c_remove(struct i2 return 0; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int max98090_runtime_resume(struct device *dev) { struct max98090_priv *max98090 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/pcm512x.c === --- linux-pm.orig/sound/soc/codecs/pcm512x.c +++ linux-pm/sound/soc/codecs/pcm512x.c @@ -517,7 +517,7 @@ void pcm512x_remove(struct device *dev) } EXPORT_SYMBOL_GPL(pcm512x_remove); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int pcm512x_suspend(struct device *dev) { struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/tas2552.c === --- linux-pm.orig/sound/soc/codecs/tas2552.c +++ linux-pm/sound/soc/codecs/tas2552.c @@ -115,7 +115,7 @@ static const struct snd_soc_dapm_route t {ClassD, NULL, PLL}, }; -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static void
Re: [PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
On Sat, Dec 06, 2014 at 03:46:27AM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. --- sound/pci/hda/hda_controller.c |2 +- sound/pci/hda/hda_intel.c |5 + sound/soc/codecs/cs35l32.c |2 +- sound/soc/codecs/cs42xx8.c |2 +- sound/soc/codecs/max98090.c|2 +- sound/soc/codecs/pcm512x.c |2 +- sound/soc/codecs/tas2552.c |4 ++-- sound/soc/codecs/wm2200.c |2 +- sound/soc/codecs/wm5100.c |2 +- sound/soc/codecs/wm8962.c |2 +- sound/soc/fsl/fsl_asrc.c |4 ++-- sound/soc/samsung/i2s.c|4 ++-- 12 files changed, 15 insertions(+), 18 deletions(-) For cs42xx8.c and fsl_asrc.c Acked-by: Nicolin Chen nicoleots...@gmail.com Thank you Nic -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. Signed-off-by: Rafael J. Wysocki --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. --- sound/pci/hda/hda_controller.c |2 +- sound/pci/hda/hda_intel.c |5 + sound/soc/codecs/cs35l32.c |2 +- sound/soc/codecs/cs42xx8.c |2 +- sound/soc/codecs/max98090.c|2 +- sound/soc/codecs/pcm512x.c |2 +- sound/soc/codecs/tas2552.c |4 ++-- sound/soc/codecs/wm2200.c |2 +- sound/soc/codecs/wm5100.c |2 +- sound/soc/codecs/wm8962.c |2 +- sound/soc/fsl/fsl_asrc.c |4 ++-- sound/soc/samsung/i2s.c|4 ++-- 12 files changed, 15 insertions(+), 18 deletions(-) Index: linux-pm/sound/pci/hda/hda_controller.c === --- linux-pm.orig/sound/pci/hda/hda_controller.c +++ linux-pm/sound/pci/hda/hda_controller.c @@ -1676,7 +1676,7 @@ irqreturn_t azx_interrupt(int irq, void u8 sd_status; int i; -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME) if (!pm_runtime_active(chip->card->dev)) return IRQ_NONE; Index: linux-pm/sound/pci/hda/hda_intel.c === --- linux-pm.orig/sound/pci/hda/hda_intel.c +++ linux-pm/sound/pci/hda/hda_intel.c @@ -856,7 +856,7 @@ static int azx_resume(struct device *dev } #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int azx_runtime_suspend(struct device *dev) { struct snd_card *card = dev_get_drvdata(dev); @@ -954,9 +954,6 @@ static int azx_runtime_idle(struct devic return 0; } -#endif /* CONFIG_PM_RUNTIME */ - -#ifdef CONFIG_PM static const struct dev_pm_ops azx_pm = { SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle) Index: linux-pm/sound/soc/codecs/cs35l32.c === --- linux-pm.orig/sound/soc/codecs/cs35l32.c +++ linux-pm/sound/soc/codecs/cs35l32.c @@ -550,7 +550,7 @@ static int cs35l32_i2c_remove(struct i2c return 0; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int cs35l32_runtime_suspend(struct device *dev) { struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/cs42xx8.c === --- linux-pm.orig/sound/soc/codecs/cs42xx8.c +++ linux-pm/sound/soc/codecs/cs42xx8.c @@ -537,7 +537,7 @@ err_enable: } EXPORT_SYMBOL_GPL(cs42xx8_probe); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int cs42xx8_runtime_resume(struct device *dev) { struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/max98090.c === --- linux-pm.orig/sound/soc/codecs/max98090.c +++ linux-pm/sound/soc/codecs/max98090.c @@ -2492,7 +2492,7 @@ static int max98090_i2c_remove(struct i2 return 0; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int max98090_runtime_resume(struct device *dev) { struct max98090_priv *max98090 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/pcm512x.c === --- linux-pm.orig/sound/soc/codecs/pcm512x.c +++ linux-pm/sound/soc/codecs/pcm512x.c @@ -517,7 +517,7 @@ void pcm512x_remove(struct device *dev) } EXPORT_SYMBOL_GPL(pcm512x_remove); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int pcm512x_suspend(struct device *dev) { struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/tas2552.c === --- linux-pm.orig/sound/soc/codecs/tas2552.c +++ linux-pm/sound/soc/codecs/tas2552.c @@ -115,7 +115,7 @@ static const struct snd_soc_dapm_route t {"ClassD", NULL, "PLL"}, }; -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) { u8 cfg1_reg; @@ -264,7 +264,7 @@ static int tas2552_mute(struct snd_soc_d return 0; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int tas2552_runtime_suspend(struct device *dev) { struct tas2552_data *tas2552 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/wm2200.c
[PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. --- sound/pci/hda/hda_controller.c |2 +- sound/pci/hda/hda_intel.c |5 + sound/soc/codecs/cs35l32.c |2 +- sound/soc/codecs/cs42xx8.c |2 +- sound/soc/codecs/max98090.c|2 +- sound/soc/codecs/pcm512x.c |2 +- sound/soc/codecs/tas2552.c |4 ++-- sound/soc/codecs/wm2200.c |2 +- sound/soc/codecs/wm5100.c |2 +- sound/soc/codecs/wm8962.c |2 +- sound/soc/fsl/fsl_asrc.c |4 ++-- sound/soc/samsung/i2s.c|4 ++-- 12 files changed, 15 insertions(+), 18 deletions(-) Index: linux-pm/sound/pci/hda/hda_controller.c === --- linux-pm.orig/sound/pci/hda/hda_controller.c +++ linux-pm/sound/pci/hda/hda_controller.c @@ -1676,7 +1676,7 @@ irqreturn_t azx_interrupt(int irq, void u8 sd_status; int i; -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM if (chip-driver_caps AZX_DCAPS_PM_RUNTIME) if (!pm_runtime_active(chip-card-dev)) return IRQ_NONE; Index: linux-pm/sound/pci/hda/hda_intel.c === --- linux-pm.orig/sound/pci/hda/hda_intel.c +++ linux-pm/sound/pci/hda/hda_intel.c @@ -856,7 +856,7 @@ static int azx_resume(struct device *dev } #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int azx_runtime_suspend(struct device *dev) { struct snd_card *card = dev_get_drvdata(dev); @@ -954,9 +954,6 @@ static int azx_runtime_idle(struct devic return 0; } -#endif /* CONFIG_PM_RUNTIME */ - -#ifdef CONFIG_PM static const struct dev_pm_ops azx_pm = { SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle) Index: linux-pm/sound/soc/codecs/cs35l32.c === --- linux-pm.orig/sound/soc/codecs/cs35l32.c +++ linux-pm/sound/soc/codecs/cs35l32.c @@ -550,7 +550,7 @@ static int cs35l32_i2c_remove(struct i2c return 0; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int cs35l32_runtime_suspend(struct device *dev) { struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/cs42xx8.c === --- linux-pm.orig/sound/soc/codecs/cs42xx8.c +++ linux-pm/sound/soc/codecs/cs42xx8.c @@ -537,7 +537,7 @@ err_enable: } EXPORT_SYMBOL_GPL(cs42xx8_probe); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int cs42xx8_runtime_resume(struct device *dev) { struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/max98090.c === --- linux-pm.orig/sound/soc/codecs/max98090.c +++ linux-pm/sound/soc/codecs/max98090.c @@ -2492,7 +2492,7 @@ static int max98090_i2c_remove(struct i2 return 0; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int max98090_runtime_resume(struct device *dev) { struct max98090_priv *max98090 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/pcm512x.c === --- linux-pm.orig/sound/soc/codecs/pcm512x.c +++ linux-pm/sound/soc/codecs/pcm512x.c @@ -517,7 +517,7 @@ void pcm512x_remove(struct device *dev) } EXPORT_SYMBOL_GPL(pcm512x_remove); -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int pcm512x_suspend(struct device *dev) { struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/tas2552.c === --- linux-pm.orig/sound/soc/codecs/tas2552.c +++ linux-pm/sound/soc/codecs/tas2552.c @@ -115,7 +115,7 @@ static const struct snd_soc_dapm_route t {ClassD, NULL, PLL}, }; -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) { u8 cfg1_reg; @@ -264,7 +264,7 @@ static int tas2552_mute(struct snd_soc_d return 0; } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int tas2552_runtime_suspend(struct device *dev) { struct tas2552_data *tas2552 = dev_get_drvdata(dev); Index: linux-pm/sound/soc/codecs/wm2200.c