Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206677
b: refs/heads/master
c: 1d8c110
h: refs/heads/master
i:
  206675: 39dcc31
v: v3
  • Loading branch information
Michael Witten authored and Takashi Iwai committed Jul 15, 2010
1 parent 7f03242 commit 6c4609d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 992cbf743862916dfbfdd3238fe3fecffbab5dd3
refs/heads/master: 1d8c1100fbf956b9c5994077a4d3c6490c23e087
24 changes: 21 additions & 3 deletions trunk/sound/drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,25 @@ config SND_AC97_POWER_SAVE
AC97 codecs. In this mode, the power-mode is dynamically
controlled at each open/close.

The mode is activated by passing power_save=1 option to
snd-ac97-codec driver. You can toggle it dynamically over
sysfs, too.
The mode is activated by passing 'power_save=X' to the
snd-ac97-codec driver module, where 'X' is the time-out
value, a nonnegative integer that specifies how many
seconds of idle time the driver must count before it may
put the AC97 into power-save mode; a value of 0 (zero)
disables the use of this power-save mode.

After the snd-ac97-codec driver module has been loaded,
the 'power_save' parameter can be set via sysfs as follows:

echo 10 > /sys/module/snd_ac97_codec/parameters/power_save

In this case, the time-out is set to 10 seconds; setting
the time-out to 1 second (the minimum activation value)
isn't recommended because many applications try to reopen
the device frequently. A value of 10 seconds would be a
good choice for normal operations.

See Documentation/sound/alsa/powersave.txt for more details.

config SND_AC97_POWER_SAVE_DEFAULT
int "Default time-out for AC97 power-save mode"
Expand All @@ -182,4 +198,6 @@ config SND_AC97_POWER_SAVE_DEFAULT
The default time-out value in seconds for AC97 automatic
power-save mode. 0 means to disable the power-save mode.

See SND_AC97_POWER_SAVE for more details.

endif # SND_DRIVERS

0 comments on commit 6c4609d

Please sign in to comment.