|
22
by Daniel T Chen
...and make it all work together for the first raw ALSA device (hw:0). Migrating streams to another device requires manual pacmd or pavucontrol use, in which case libflashsupport would be more useful than mucking with an asoundrc anyway. |
1 |
Index: pulseaudio-0.9.10/src/daemon/default.pa.in
|
2 |
===================================================================
|
|
3 |
--- pulseaudio-0.9.10.orig/src/daemon/default.pa.in 2008-03-27 19:45:37.000000000 -0400
|
|
|
24
by Daniel T Chen
Fix the race condition in loading suspend-on-idle by loading it before any sink or source. Go power-management-rangers\! |
4 |
+++ pulseaudio-0.9.10/src/daemon/default.pa.in 2008-04-24 18:24:33.000000000 -0400
|
5 |
@@ -16,6 +16,9 @@
|
|
6 |
# along with PulseAudio; if not, write to the Free Software Foundation, |
|
7 |
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
|
8 |
||
9 |
+### Automatically suspend sinks/sources that become idle for too long
|
|
10 |
+load-module module-suspend-on-idle
|
|
11 |
+
|
|
12 |
.nofail |
|
13 |
||
14 |
### Load something into the sample cache |
|
15 |
@@ -29,12 +32,14 @@
|
|
|
22
by Daniel T Chen
...and make it all work together for the first raw ALSA device (hw:0). Migrating streams to another device requires manual pacmd or pavucontrol use, in which case libflashsupport would be more useful than mucking with an asoundrc anyway. |
16 |
### Load audio drivers statically (it's probably better to not load |
17 |
### these drivers manually, but instead use module-hal-detect -- |
|
18 |
### see below -- for doing this automatically) |
|
19 |
-#load-module module-alsa-sink
|
|
20 |
-#load-module module-alsa-source device=hw:1,0
|
|
|
23
by Daniel T Chen
Wrap the module-alsa-* section in 'nofail' to prevent PA from dying on hardware that lack playback or capture capability (e.g., USB mics and speakers). |
21 |
+.nofail
|
|
22
by Daniel T Chen
...and make it all work together for the first raw ALSA device (hw:0). Migrating streams to another device requires manual pacmd or pavucontrol use, in which case libflashsupport would be more useful than mucking with an asoundrc anyway. |
22 |
+load-module module-alsa-sink device=dmix
|
23 |
+load-module module-alsa-source device=dsnoop
|
|
24 |
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input |
|
25 |
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input |
|
26 |
#load-module module-null-sink |
|
|
23
by Daniel T Chen
Wrap the module-alsa-* section in 'nofail' to prevent PA from dying on hardware that lack playback or capture capability (e.g., USB mics and speakers). |
27 |
#load-module module-pipe-sink |
28 |
+.fail
|
|
29 |
||
30 |
### Automatically load driver modules depending on the hardware available |
|
31 |
.ifexists module-hal-detect@PA_SOEXT@ |
|
|
24
by Daniel T Chen
Fix the race condition in loading suspend-on-idle by loading it before any sink or source. Go power-management-rangers\! |
32 |
@@ -74,9 +79,6 @@
|
33 |
### connected to dies, similar for sources |
|
|
22
by Daniel T Chen
...and make it all work together for the first raw ALSA device (hw:0). Migrating streams to another device requires manual pacmd or pavucontrol use, in which case libflashsupport would be more useful than mucking with an asoundrc anyway. |
34 |
load-module module-rescue-streams |
35 |
||
|
24
by Daniel T Chen
Fix the race condition in loading suspend-on-idle by loading it before any sink or source. Go power-management-rangers\! |
36 |
-### Automatically suspend sinks/sources that become idle for too long
|
|
22
by Daniel T Chen
...and make it all work together for the first raw ALSA device (hw:0). Migrating streams to another device requires manual pacmd or pavucontrol use, in which case libflashsupport would be more useful than mucking with an asoundrc anyway. |
37 |
-load-module module-suspend-on-idle
|
|
24
by Daniel T Chen
Fix the race condition in loading suspend-on-idle by loading it before any sink or source. Go power-management-rangers\! |
38 |
-
|
|
22
by Daniel T Chen
...and make it all work together for the first raw ALSA device (hw:0). Migrating streams to another device requires manual pacmd or pavucontrol use, in which case libflashsupport would be more useful than mucking with an asoundrc anyway. |
39 |
### Load X11 bell module |
40 |
#load-module module-x11-bell sample=x11-bell |
|
|
24
by Daniel T Chen
Fix the race condition in loading suspend-on-idle by loading it before any sink or source. Go power-management-rangers\! |
41 |