Commit graph

172 commits

Author SHA1 Message Date
Tanu Kaskinen
bcaba0b1b4 Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-work
Conflicts:
	src/Makefile.am
	src/daemon/daemon-conf.c
	src/daemon/daemon.conf.in
	src/modules/module-stream-restore.c
	src/pulse/client-conf.c
	src/pulsecore/namereg.c
2009-08-16 21:25:48 +03:00
Lennart Poettering
27b8cd783c daemon: reset scheduling priority on startup, too 2009-08-12 21:37:40 +02:00
Lennart Poettering
ef176ecb62 core-util: move personality resetting into core-util 2009-08-12 21:36:52 +02:00
Diego Elio 'Flameeyes' Pettenò
4c15115007 Split OSS support in output and wrapper.
Since Fedora does not enable OSS output support at all, but still uses
padsp, and in Gentoo we could also make use of padsp without OSS output
support, split the two things in two parameters, although they both check
for sys/soundcard.h once.
2009-08-08 01:53:15 +02:00
Lennart Poettering
88d5749f6a Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
Conflicts:
	src/daemon/main.c
2009-07-23 15:18:06 +02:00
Lennart Poettering
41ad33dfe7 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2009-07-22 22:49:06 +02:00
Lennart Poettering
2f54b5df18 daemon: reset personality, to make the autospawn env cleaup complete 2009-07-22 22:47:51 +02:00
Lennart Poettering
a2b207e38a daemon: before exec'ing ourselves, make sure nobody plays games with /proc/self/exe 2009-07-20 15:48:36 +01:00
Diego Elio 'Flameeyes' Pettenò
84200b423e Remove exploitable LD_BIND_NOW hack (CVE-2009-1894).
Instead of trying to re-execute pulseaudio itself with LD_BIND_NOW set,
just find the correct flag for the linker to request immediate bindings
(all ELF files support that option), and use that when linking the daemon.

Reduce the amount of compiled and executed code as well.
2009-07-16 15:57:41 +02:00
Tanu Kaskinen
5c7952e4fa dbus: Implement the Name property of the core object. 2009-07-03 02:49:07 +03:00
Tanu Kaskinen
6e2fec05dd server-lookup: Update the D-Bus identifiers to be versioned. 2009-06-30 15:21:20 +03:00
Tanu Kaskinen
c266595058 Merge branch 'master' into dbus-work 2009-06-29 18:55:12 +03:00
Diego Elio 'Flameeyes' Pettenò
2f7bce9375 Add a missing sys/stat.h include for FreeBSD to declare umask(). 2009-06-29 17:40:56 +02:00
Tanu Kaskinen
0bc538b08c Merge branch 'master' into dbus-work
Conflicts:
	src/daemon/daemon-conf.c
	src/daemon/daemon-conf.h
	src/daemon/main.c
	src/pulsecore/dbus-util.h
2009-06-29 18:35:06 +03:00
Lennart Poettering
3ee29004a9 rtclock: fix build after merge 2009-06-22 23:15:01 +02:00
Lennart Poettering
fc33f7ee97 Merge most of elmarco/rtclock2
Merge commit 'e4d914c945'
2009-06-22 23:09:46 +02:00
Marc-André Lureau
0955e3d45b Base mainloop on pa_rtclock_now()
Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Marc-André Lureau
125c528896 pulse: move pa_rtclock_now in pulsecommon 2009-06-20 17:29:08 +03:00
Lennart Poettering
32e2cd6d32 core: get rid of rt sig/timer handling since modern Linux' ppooll() is finally fixed for granularity 2009-06-19 21:00:06 +02:00
Lennart Poettering
9c438bcac6 daemon: strip all special suid/caps log from our startup code, we'll now rely on RealtimeKit for all high-priority/RT scheduling policy issues 2009-06-19 17:37:18 +02:00
Lennart Poettering
0b479ffbba daemon: write a warning blurb to syslog when folks use --system mode 2009-06-17 03:00:51 +02:00
Tanu Kaskinen
c8d819a5ad dbus-protocol: Connection handling for local connections. 2009-06-16 19:03:22 +03:00
Tanu Kaskinen
5babbaafb2 daemon: Implement the DBus server lookup service. 2009-06-12 07:22:33 +03:00
Lennart Poettering
a9b38b3530 daemon: optionally call mlockall() on startup 2009-06-07 00:45:47 +02:00
Lennart Poettering
759a9d0cc5 core-util: introduce pa_disable_sigpipe() 2009-05-26 00:02:29 +02:00
Lennart Poettering
684b4c116c memtrap: hook up core to memtrap system 2009-04-21 22:56:08 +02:00
Lennart Poettering
a36197c9d0 print session id when starting up 2009-04-13 22:21:26 +02:00
Lennart Poettering
6eaeaea581 Downgrade default log level to NOTICE to follow documentation
Closes #527
2009-04-10 03:41:25 +02:00
Lennart Poettering
90f4fdb071 make sure we keep a reference of the bus connection during the whole runtime if we manage to acquire the bus name 2009-04-06 02:31:22 +02:00
Maarten Bosmans
8bcb9c6910 various spelling fixes 2009-04-04 02:27:13 +02:00
Lennart Poettering
143e1ba739 downgrade a few messages 2009-04-03 17:49:05 +02:00
Lennart Poettering
3df9eef9d0 take org.pulseaudio.Server instead of org.pulseaudio to match the interface name already used in the HAL module 2009-03-30 21:07:23 +02:00
Marc-André Lureau
b4ef64d198 daemon: take org.pulseaudio 2009-03-30 20:57:07 +03:00
Lennart Poettering
bd3154a861 introduce pa_assert_fp() for fast path assertions 2009-03-20 13:29:42 +01:00
Finn Thain
0329edd179 revive solaris module
Hi All,

This patch fixes the solaris audio device source and sink, and fixes some
portability issues that break the build on solaris. Questions and comments
welcomed.

I've tested this patch only with OpenSolaris Express snv 103. Eventually I
hope to be able to test a few older releases and older hardware (though it
is hard to say whether there is much interest in those).

This is my first brush with pulseaudio and so I read the wiki docs and
some of the source code but I'm still unsure of a few things. In
particular I'm wondering about rewind processing, corking and what (if
anything) the module needs for those. I'm also unclear on the implications
of thread_info.buffer_size, .fragment_size and .max_request, and whether
my code is correct or not.

This patch disables link map/library versioning unless ld is GNU ld.
Another approach for solaris would be to use that linker's -M option, but
I couldn't make that work (due to undefined mainloop, browse and simple
symbols when linking pacat. I can post the errors if anyone is intested.)

Thanks,
Finn Thain
2009-03-03 22:27:00 +01:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Lennart Poettering
77779ead6d rework logging to make it more modular 2009-02-21 22:45:56 +01:00
Lennart Poettering
9b74afcfa3 make string translatable (fixes #483) 2009-02-21 17:01:09 +01:00
Lennart Poettering
4505bc9cc6 introduce default channel map in addition to the default sample spec 2009-02-21 16:32:42 +01:00
Marc-André Lureau
a252b61be1 main: remove unused lf variable 2009-02-19 04:54:35 +01:00
Lennart Poettering
c9c63c295f allow pa to be run in a chroot() environment tht lacks /proc 2009-02-18 21:45:06 +01:00
Lennart Poettering
a5401a50a6 store the default sink/source in proper pa_sink*/pa_source* pointers instead of a string 2009-01-28 01:46:27 +01:00
Lennart Poettering
d5f46e824e move flat volume logic into the core. while doing so add n_volume_steps field to sinks/sources 2009-01-27 04:39:07 +01:00
Lennart Poettering
3bcbe1d18f check for availability of RLIMIT_NOFILE and RLIMIT_AS before we make use of it 2009-01-27 00:48:53 +01:00
Lennart Poettering
4dc1916467 add API pa_ncpus() 2009-01-22 02:17:19 +01:00
Jared D. McNeill
cc425ed260 NetBSD doesn't know RLIMIT_AS
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-22 01:39:54 +01:00
Lennart Poettering
5793f93350 make use of PR_SET_TIMERSLACK 2009-01-16 19:57:58 +01:00
Lennart Poettering
29c7a28817 kill autoload stuff as planned 2009-01-15 20:07:13 +01:00
Lennart Poettering
1d2e5cba52 Make sure we drop CAP_NICE if RT is not allowed
but make sure we still allow RT if RLIMIT_RTPRIO is properly set when PA
is called.
2008-12-18 01:25:54 +01:00
Lennart Poettering
e4aa5f2115 Fix return value of --dump-resample-methods
We should return 0 when --dump-resample-methods is called.

Problem identified by "hchen59".

Closes bug #407.
2008-12-16 18:17:21 +01:00