Commit graph

3240 commits

Author SHA1 Message Date
Wim Taymans
9ad567167e protocol: use the right sample rate for sources
Use the correct sample rate for reporting about the timing.
2009-11-11 05:27:04 +01:00
Lennart Poettering
409a9d01cd jack: never try to autoconnect to MIDI ports
Original patch supplied by 'adi'

http://pulseaudio.org/ticket/669
2009-11-11 05:26:56 +01:00
Lennart Poettering
3b25302554 alsa: disable timer-based scheduling inside a VM
In virtual machines sound card clocks and OS scheduling tend to become
unreliable, adding various 'uneven' latencies. The adaptive algorithm
that handles drop-outs does not handle it this well: in contrast to
drop-outs on real machines that are evenly distributed, small and can
easily be encountered via the adpative algorithms, drop-outs in VMs tend
to happen abruptly, and massively, which is not easy to counter.

This patch simply disables timer based scheduling in VMs reverting to
classic IO based scheduling. This should help make PA perform better in
VMs.

https://bugzilla.redhat.com/show_bug.cgi?id=532775
2009-11-11 05:26:36 +01:00
Lennart Poettering
5da0297744 daemon: during startup say whether we run in a VM 2009-11-11 05:26:30 +01:00
Lennart Poettering
1460374c06 core-util: add call to detect if we are called from within a VM 2009-11-11 05:26:16 +01:00
Lennart Poettering
b47a9e7ea4 alsa: introduce more standard path names 2009-11-11 05:17:52 +01:00
Lennart Poettering
ab573f2e06 alsa: cover 'Analog Output' control
http://pulseaudio.org/ticket/702
2009-11-11 05:17:39 +01:00
Lennart Poettering
4323c9f22f alsa: create a seperate mixer path for Speaker elements
On some cards line-out is independant of Sepaker and it is a good idea
to cover that so that they can independantly be activated.

https://bugzilla.redhat.com/show_bug.cgi?id=520884
2009-11-11 05:17:32 +01:00
Lennart Poettering
8a26fbf863 alsa: leave other headphone control enabled if possible 2009-11-11 05:17:26 +01:00
Lennart Poettering
08d0654867 alsa: lower priority for Headphone2 path 2009-11-11 05:17:19 +01:00
Lennart Poettering
18018b3ff3 alsa: cover Input Source:AUX IN
As seen on some HDA chips:

https://bugzilla.redhat.com/attachment.cgi?id=359804
2009-11-11 05:17:12 +01:00
Lennart Poettering
d711caa38c alsa: cover Headphone2 mixer element
As seen on some drivers:

https://bugzilla.redhat.com/show_bug.cgi?id=498612
2009-11-11 05:17:06 +01:00
Lennart Poettering
82d7b75528 alsa: cover 'Digital Input Source' element
As used by some HDA devices:

https://bugzilla.redhat.com/attachment.cgi?id=365290
2009-11-11 05:17:00 +01:00
Lennart Poettering
6fad76558d alsa: cover Mic Jack Mode element
As used by some HDA chips:

https://bugzilla.redhat.com/attachment.cgi?id=366816
2009-11-11 05:16:53 +01:00
Lennart Poettering
70da8d65d4 bluetooth: do not hand out access to devices that are not fully configured yet 2009-11-11 05:15:40 +01:00
David Yoder
bfb17357cd daemon: realpath segfault fix
Lennart,

Apparently I was debugging this at the same time as you. I can't figure out
why my Fedora 11 install with glibc-2.10 has a glibc realpath that doesn't
match the gnu documentation and returns null. But it does.

Your commit aa8ce5bb9b almost fixed my
problem, but it needs a tweak.

Thanks,
David Yoder
2009-11-11 05:15:30 +01:00
Wim Taymans
973a4ebdba sink: simplify silence checks 2009-11-11 05:14:56 +01:00
Lennart Poettering
320d76f158 daemon: don't crash if pa_realpath() fails 2009-11-11 05:14:44 +01:00
Lennart Poettering
732b468d66 protocol-native: if a client set volume/mute/device store it since it is user input 2009-11-11 05:14:04 +01:00
Lennart Poettering
3dcdab6e8d libpulse: explain semantics of pa_stream_connect_playback() in more detail 2009-11-11 05:13:47 +01:00
Lennart Poettering
0c31723a8b protocol-native: declare that user configured volumes are always absolute 2009-11-11 05:13:28 +01:00
Lennart Poettering
84e77cb13d libpulse: add missing includes 2009-11-11 05:12:45 +01:00
Diego Elio 'Flameeyes' Pettenò
8d612d5142 Fix build when using -fweb, accept both register and memory constraints.
This was reported as Gentoo bug #287391 by Torsten Kaiser, and the fix was
suggested by Mike Frysinger.
2009-11-11 05:12:28 +01:00
Lennart Poettering
3201aecea0 position-event-sounds: never position test sounds in space 2009-11-11 05:12:02 +01:00
Lennart Poettering
833bf30cb9 alsa: disable period event only with tsched=1 2009-11-11 05:11:49 +01:00
Tor-Björn Claesson
c15bd97282 loopback: Setting latency of module-loopback
I checked the source code, and latency_msec is missing from the list
of valid module arguments. Attaching a patch to add it.
2009-11-11 05:11:32 +01:00
Lennart Poettering
df4937045d bluetooth: don't set auto_connect flag when discovering bt devices 2009-11-11 05:11:07 +01:00
Wim Taymans
cc1e90f94b svolume: fix MMX error
We need to sign extend the lower part of the multiplication before adding it to
the higher part. Makes -1 * 0xffff work again.
2009-10-30 09:07:00 +00:00
Lennart Poettering
b8de3bd214 polkit: drop left-over polkit policy file from git tree 2009-09-29 23:48:07 +02:00
Nix
eac566226e Don't refuse to start on systems using GNU stow, graft, STORE et al
There are multiple package management systems out there which implement
packages using symlinks. The recent (otherwise useful) check to ensure that
a re-executed pulseaudio is actually reexecuting itself unfortunately breaks
in the presence of all these packaging systems, because PA_BINARY refers
to its installed location (e.g. /usr/local/bin/pulseaudio), which is a
symlink to the binary (e.g. /usr/local/stow/pulseaudio-0.9.18/bin/pulseaudio),
because /proc/self/exe always contains the canonical path of the executable,
with all symlinks resolved.

(At least one distribution uses a symlink-based packaging system, so
will be forced to apply this locally in any case.)

The fix is simple: canonicalize PA_BINARY before equality-testing. (This
should be completely safe, because the OS does just that when PA_BINARY
is executed.)

The patch is against 0.9.18, but applies without fuzz to current master.
2009-09-29 19:32:25 +02:00
Lennart Poettering
d06f2eaf30 reserve: downgrade reserve logic messages, so that reusing pa in two sessions does not create spew in syslog 2009-09-28 19:54:37 -07:00
Wim Taymans
5eecd8ea7d svolume: tweak constraints for 32 bits
Tweak the constraints a little so that register starved 32bit systems
can select a stack variable for the channel paramter instead of reusing one of
the registers we're using in the code.
2009-09-23 17:18:20 +02:00
Colin Guthrie
8f4940b17a libpulse: Add *_NOFLAGS flags with value 0 for various enums
This avoids the need for ugly casting in client implementations.
2009-09-22 18:43:03 +01:00
Colin Guthrie
c194db71b0 tunnel: fix parsing of source info from newer servers 2009-09-20 21:36:14 +01:00
Emil Renner Berthing
592345fd36 tunnel: fix parsing of sink info from newer servers 2009-09-20 21:28:49 +01:00
Colin Guthrie
cc6932c4c8 stream-restore: Comment fix 2009-09-20 18:51:20 +01:00
Lennart Poettering
e7686a607d core: dump proplist when creating stream similar to how we already to it for sinks/sources 2009-09-20 03:18:03 +02:00
Lennart Poettering
88b777311d alsa: make build gcc clean on 32bit 2009-09-20 03:17:36 +02:00
Lennart Poettering
996051ebc1 memtrap: properly add items to linked list 2009-09-19 00:21:34 +02:00
Lennart Poettering
56e1290ef6 gconf: run the wrapper script when running gconf-helper from build tree 2009-09-18 23:31:54 +02:00
Lennart Poettering
8ad8e393f1 namereg: choose default sink/source as soon as one becomes available 2009-09-18 22:42:37 +02:00
Lennart Poettering
9697c5dc18 memblock: don't try to reuse PA_MEMBLOCK_APPENDED memblocks since they usually are much bigger than we want them 2009-09-18 22:16:26 +02:00
Lennart Poettering
f84d755d6a mainloop: fix detection of rt clocks 2009-09-18 22:16:25 +02:00
Lennart Poettering
cd5d6e7b42 socket-client: modernizations 2009-09-18 22:16:25 +02:00
Lennart Poettering
c010172c66 memblock: modernizations 2009-09-18 22:16:25 +02:00
Colin Guthrie
8f29968788 conf: Fix typo in daemon.conf: rlimit-rtttime - too many t's
Spotted by peol on IRC
2009-09-18 16:10:13 +01:00
Colin Guthrie
fd25e8fa8b alsa: Give all ports a human name to allow UI tools to present the choice to users. 2009-09-18 09:22:23 +01:00
Colin Guthrie
0323e48fdc rtp: Remove 'fix me' comment after it was actually fixed in [56b6e1]
That's what you get for applying your stash without fully checking if anything else was committed in the mean time :p
2009-09-18 09:18:13 +01:00
Lennart Poettering
d6291511a2 mainloop: pass monotonic times back to user if he passed monotonic times to us 2009-09-18 04:21:01 +02:00
Lennart Poettering
c024aeaae9 timeval: make timeval conversion routines handle PA_USEC_INVALID special 2009-09-18 04:14:39 +02:00