aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/sound/alsa/ALSA-Configuration.txt5
-rw-r--r--sound/pci/hda/hda_intel.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/Documentation/sound/alsa/ALSA-Configuration.txt b/Documentation/sound/alsa/ALSA-Configuration.txt
index b9cfd339a6fa..ce6581c8ca26 100644
--- a/Documentation/sound/alsa/ALSA-Configuration.txt
+++ b/Documentation/sound/alsa/ALSA-Configuration.txt
@@ -890,8 +890,9 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
890 enable_msi - Enable Message Signaled Interrupt (MSI) (default = off) 890 enable_msi - Enable Message Signaled Interrupt (MSI) (default = off)
891 power_save - Automatic power-saving timeout (in second, 0 = 891 power_save - Automatic power-saving timeout (in second, 0 =
892 disable) 892 disable)
893 power_save_controller - Reset HD-audio controller in power-saving mode 893 power_save_controller - Support runtime D3 of HD-audio controller
894 (default = on) 894 (-1 = on for supported chip (default), false = off,
895 true = force to on even for unsupported hardware)
895 align_buffer_size - Force rounding of buffer/period sizes to multiples 896 align_buffer_size - Force rounding of buffer/period sizes to multiples
896 of 128 bytes. This is more efficient in terms of memory 897 of 128 bytes. This is more efficient in terms of memory
897 access but isn't required by the HDA spec and prevents 898 access but isn't required by the HDA spec and prevents
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index cca87277baf0..988323577834 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -134,8 +134,8 @@ MODULE_PARM_DESC(power_save, "Automatic power-saving timeout "
134 * this may give more power-saving, but will take longer time to 134 * this may give more power-saving, but will take longer time to
135 * wake up. 135 * wake up.
136 */ 136 */
137static bool power_save_controller = 1; 137static int power_save_controller = -1;
138module_param(power_save_controller, bool, 0644); 138module_param(power_save_controller, bint, 0644);
139MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode."); 139MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode.");
140#endif /* CONFIG_PM */ 140#endif /* CONFIG_PM */
141 141
@@ -2711,6 +2711,8 @@ static int azx_runtime_idle(struct device *dev)
2711 struct snd_card *card = dev_get_drvdata(dev); 2711 struct snd_card *card = dev_get_drvdata(dev);
2712 struct azx *chip = card->private_data; 2712 struct azx *chip = card->private_data;
2713 2713
2714 if (power_save_controller > 0)
2715 return 0;
2714 if (!power_save_controller || 2716 if (!power_save_controller ||
2715 !(chip->driver_caps & AZX_DCAPS_PM_RUNTIME)) 2717 !(chip->driver_caps & AZX_DCAPS_PM_RUNTIME))
2716 return -EBUSY; 2718 return -EBUSY;