aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'sound/drivers')
-rw-r--r--sound/drivers/Kconfig26
-rw-r--r--sound/drivers/virmidi.c2
2 files changed, 23 insertions, 5 deletions
diff --git a/sound/drivers/Kconfig b/sound/drivers/Kconfig
index b6ae76285255..c8961165277c 100644
--- a/sound/drivers/Kconfig
+++ b/sound/drivers/Kconfig
@@ -174,7 +174,7 @@ config SND_ML403_AC97CR
174 select SND_AC97_CODEC 174 select SND_AC97_CODEC
175 help 175 help
176 Say Y here to include support for the 176 Say Y here to include support for the
177 opb_ac97_controller_ref_v1_00_a ip core found in Xilinx' ML403 177 opb_ac97_controller_ref_v1_00_a ip core found in Xilinx's ML403
178 reference design. 178 reference design.
179 179
180 To compile this driver as a module, choose M here: the module 180 To compile this driver as a module, choose M here: the module
@@ -189,9 +189,25 @@ config SND_AC97_POWER_SAVE
189 AC97 codecs. In this mode, the power-mode is dynamically 189 AC97 codecs. In this mode, the power-mode is dynamically
190 controlled at each open/close. 190 controlled at each open/close.
191 191
192 The mode is activated by passing power_save=1 option to 192 The mode is activated by passing 'power_save=X' to the
193 snd-ac97-codec driver. You can toggle it dynamically over 193 snd-ac97-codec driver module, where 'X' is the time-out
194 sysfs, too. 194 value, a nonnegative integer that specifies how many
195 seconds of idle time the driver must count before it may
196 put the AC97 into power-save mode; a value of 0 (zero)
197 disables the use of this power-save mode.
198
199 After the snd-ac97-codec driver module has been loaded,
200 the 'power_save' parameter can be set via sysfs as follows:
201
202 echo 10 > /sys/module/snd_ac97_codec/parameters/power_save
203
204 In this case, the time-out is set to 10 seconds; setting
205 the time-out to 1 second (the minimum activation value)
206 isn't recommended because many applications try to reopen
207 the device frequently. A value of 10 seconds would be a
208 good choice for normal operations.
209
210 See Documentation/sound/alsa/powersave.txt for more details.
195 211
196config SND_AC97_POWER_SAVE_DEFAULT 212config SND_AC97_POWER_SAVE_DEFAULT
197 int "Default time-out for AC97 power-save mode" 213 int "Default time-out for AC97 power-save mode"
@@ -201,4 +217,6 @@ config SND_AC97_POWER_SAVE_DEFAULT
201 The default time-out value in seconds for AC97 automatic 217 The default time-out value in seconds for AC97 automatic
202 power-save mode. 0 means to disable the power-save mode. 218 power-save mode. 0 means to disable the power-save mode.
203 219
220 See SND_AC97_POWER_SAVE for more details.
221
204endif # SND_DRIVERS 222endif # SND_DRIVERS
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c
index 0e631c3221e3..f4cd49336f33 100644
--- a/sound/drivers/virmidi.c
+++ b/sound/drivers/virmidi.c
@@ -94,7 +94,7 @@ static int __devinit snd_virmidi_probe(struct platform_device *devptr)
94 sizeof(struct snd_card_virmidi), &card); 94 sizeof(struct snd_card_virmidi), &card);
95 if (err < 0) 95 if (err < 0)
96 return err; 96 return err;
97 vmidi = (struct snd_card_virmidi *)card->private_data; 97 vmidi = card->private_data;
98 vmidi->card = card; 98 vmidi->card = card;
99 99
100 if (midi_devs[dev] > MAX_MIDI_DEVICES) { 100 if (midi_devs[dev] > MAX_MIDI_DEVICES) {