~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/sound/designs/powersave.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/sound/designs/powersave.rst (Architecture m68k) and /Documentation/sound/designs/powersave.rst (Architecture mips)


  1 ==========================                          1 ==========================
  2 Notes on Power-Saving Mode                          2 Notes on Power-Saving Mode
  3 ==========================                          3 ==========================
  4                                                     4 
  5 AC97 and HD-audio drivers have the automatic p      5 AC97 and HD-audio drivers have the automatic power-saving mode.
  6 This feature is enabled via Kconfig ``CONFIG_S      6 This feature is enabled via Kconfig ``CONFIG_SND_AC97_POWER_SAVE``
  7 and ``CONFIG_SND_HDA_POWER_SAVE`` options, res      7 and ``CONFIG_SND_HDA_POWER_SAVE`` options, respectively.
  8                                                     8 
  9 With the automatic power-saving, the driver tu      9 With the automatic power-saving, the driver turns off the codec power
 10 appropriately when no operation is required.       10 appropriately when no operation is required.  When no applications use
 11 the device and/or no analog loopback is set, t     11 the device and/or no analog loopback is set, the power disablement is
 12 done fully or partially.  It'll save a certain     12 done fully or partially.  It'll save a certain power consumption, thus
 13 good for laptops (even for desktops).              13 good for laptops (even for desktops).
 14                                                    14 
 15 The time-out for automatic power-off can be sp     15 The time-out for automatic power-off can be specified via ``power_save``
 16 module option of snd-ac97-codec and snd-hda-in     16 module option of snd-ac97-codec and snd-hda-intel modules.  Specify
 17 the time-out value in seconds.  0 means to dis     17 the time-out value in seconds.  0 means to disable the automatic
 18 power-saving.  The default value of timeout is     18 power-saving.  The default value of timeout is given via
 19 ``CONFIG_SND_AC97_POWER_SAVE_DEFAULT`` and         19 ``CONFIG_SND_AC97_POWER_SAVE_DEFAULT`` and
 20 ``CONFIG_SND_HDA_POWER_SAVE_DEFAULT`` Kconfig      20 ``CONFIG_SND_HDA_POWER_SAVE_DEFAULT`` Kconfig options.  Setting this to 1
 21 (the minimum value) isn't recommended because      21 (the minimum value) isn't recommended because many applications try to
 22 reopen the device frequently.  10 would be a g     22 reopen the device frequently.  10 would be a good choice for normal
 23 operations.                                        23 operations.
 24                                                    24 
 25 The ``power_save`` option is exported as writa     25 The ``power_save`` option is exported as writable.  This means you can
 26 adjust the value via sysfs on the fly.  For ex     26 adjust the value via sysfs on the fly.  For example, to turn on the
 27 automatic power-save mode with 10 seconds, wri     27 automatic power-save mode with 10 seconds, write to
 28 ``/sys/modules/snd_ac97_codec/parameters/power     28 ``/sys/modules/snd_ac97_codec/parameters/power_save`` (usually as root):
 29 ::                                                 29 ::
 30                                                    30 
 31         # echo 10 > /sys/modules/snd_ac97_code     31         # echo 10 > /sys/modules/snd_ac97_codec/parameters/power_save
 32                                                    32 
 33                                                    33 
 34 Note that you might hear click noise/pop when      34 Note that you might hear click noise/pop when changing the power
 35 state.  Also, it often takes certain time to w     35 state.  Also, it often takes certain time to wake up from the
 36 power-down to the active state.  These are oft     36 power-down to the active state.  These are often hardly to fix, so
 37 don't report extra bug reports unless you have     37 don't report extra bug reports unless you have a fix patch ;-)
 38                                                    38 
 39 For HD-audio interface, there is another modul     39 For HD-audio interface, there is another module option,
 40 power_save_controller.  This enables/disables      40 power_save_controller.  This enables/disables the power-save mode of
 41 the controller side.  Setting this on may redu     41 the controller side.  Setting this on may reduce a bit more power
 42 consumption, but might result in longer wake-u     42 consumption, but might result in longer wake-up time and click noise.
 43 Try to turn it off when you experience such a      43 Try to turn it off when you experience such a thing too often.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php