Lennart Poettering
17d57415f5
start-child: clean up child environment a bit better
2009-08-12 21:43:06 +02:00
Lennart Poettering
5fcb8a3c08
pacmd: port pacmd from select() to poll() so that we notice writer side hangups
2009-08-12 21:42:02 +02:00
Lennart Poettering
286ab2f193
memblock: rate limit 'Pool full' message
2009-08-12 21:40:38 +02:00
Lennart Poettering
5921324fd3
context: document why we only do minimal cleanups before the autospawn exec()
2009-08-12 21:40:12 +02: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
Lennart Poettering
9f53aa5546
daemon: unconditionally clean up priviliges
2009-08-12 21:35:48 +02:00
Lennart Poettering
facae1f275
conf: invert all negative boolean configuration option
2009-08-12 20:15:28 +02:00
Lennart Poettering
8998cba683
conf: add pa_config_parse_not_bool() for parsing inverse boolean configuration options
2009-08-12 20:14:31 +02:00
Lennart Poettering
eb40da25d6
daemon: install D-Bus system policy file for PA system instances
...
Original patch from 'mgrela'.
http://pulseaudio.org/ticket/582
2009-08-12 01:50:24 +02:00
Lennart Poettering
e8340345f6
alsa: enable ext. amplifier by default
2009-08-12 00:56:10 +02:00
Lennart Poettering
462cdf44b7
alsa: adjust priority bonus of mappings that match the configured default channel map
...
We need to make sure that having both input and output weighs more for
selecting the default profile than a channel map that matches the
default channel map has.
https://bugzilla.redhat.com/show_bug.cgi?id=496320
2009-08-12 00:53:38 +02:00
Lennart Poettering
d27e26dca0
volume-restore: forward module load return value of stream-restore back to caller
2009-08-11 23:19:28 +02:00
Lennart Poettering
c117febbe4
hal: replace subdevs= parameter by subdevices= parameter
...
Abbreviating tsched like this was bad enough, so let's not add another
option here.
2009-08-11 23:18:01 +02:00
Lennart Poettering
c904f97e2d
hal: add stub module that loads module-udev-detect instead of module-hal-detect
...
This adds module-hal-detect-compat.c which when enabled will be compiled
into a module module-hal-detect which simply loads module-udev-detect.
The purpose of this is to allow easy upgrading without breaking
default.pa. Distributions are recommended to enable this to easy
upgrades from HAL versions of PA to udev versions.
2009-08-11 23:04:35 +02:00
Maxim Levitsky
23a294c97e
Correctly deal with events in the past in calc_next_timeout
...
pa_usec_t is unsigned, thus it will always be >= 0
This makes gstreamer pulse mixer work again
This fixes a gstreamer mixer regression, when it can't control the volume,
after few changes.
2009-08-10 21:23:26 +02:00
Lennart Poettering
9bd3398f94
mix-test: fix test for s24-32 samples
2009-08-08 04:30:42 +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
7d4916379b
ladspa/remap: make sure we process all requested rewinds unconditionally
...
In some situations a rewind request travelling downstream might be
optimized away on its way and an upstream rewind processing might never
come back. Hence, call _process_rewind() before each _render()just to
make sure we processed them all.
2009-08-07 23:58:45 +02:00
Lennart Poettering
51b3899348
core: save volume/mute changes coming from the hardware automatically
...
Volume changes coming from the lower layers are most likely changes
triggered by the user, so let's save them automatically.
2009-08-07 23:55:06 +02:00
Lennart Poettering
ff52588c7b
smoother: readd #ifdef protection
2009-08-05 03:52:15 +02:00
Lennart Poettering
2cab6a256c
simple: check for == RUNNING instead of != DONE when waiting for operations
2009-08-05 01:05:35 +02:00
Lennart Poettering
5bbeb516aa
simple: split data/length validity checks into two
2009-08-05 01:05:08 +02:00
Lennart Poettering
53fcf3add0
simple: call pa_context_disconnect() just to be sure
2009-08-05 01:04:50 +02:00
Lennart Poettering
a73c615b74
simple: always loop around pa_threaded_mainloop_wait() to handle spurious wakeups properly
2009-08-05 01:04:36 +02:00
Lennart Poettering
b553e7283d
simple: use pa_xnew0 instead of manual reset to 0
2009-08-05 01:04:08 +02:00
Lennart Poettering
a4bc41a7a5
simple: use PA_xxx_IS_GOOD for state checks
2009-08-05 01:03:49 +02:00
Lennart Poettering
9b2534b6d0
alsa: properly treat ESTRPIPE as system suspend
2009-08-04 00:23:43 +02:00
Lennart Poettering
3e2ab9b22e
client: extend documentation on pa_operation_cancel() a bit
2009-08-03 23:07:59 +02:00
Lubomir Rintel
34f31f666e
Recover stream when it's suspended upon rewind
...
Error from snd_pcm_rewind() might mean we just woke up from suspend and
didn't have a chance to try to recover the stream since we didn't write
to it in between. Call try_recover() in such cases.
Note that for this to work kernel must return ESTRPIPE instead of EBADF
for rewind/forward attempts on suspended streams, so that
snd_pcm_recover() can recognize it should snd_pcm_resume() the stream.
This is not the case yet (2.6.31-rc5), patch is available.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
2009-08-03 22:47:15 +02:00
Lennart Poettering
277822053c
autospawn: if creating the lock file fails, pass error code cleanly back to main process
...
This makes sure PA clients don't hang if $HOME is for some reason
unsuitable for autospawn lockfiles.
Closes #539
2009-08-01 03:10:19 +02:00
Lennart Poettering
49fd8ee72e
core-util: replace remaining fixed size destination string functions by _malloc() versions
...
This helps portability to GNU/Hurd.
Patch originally from Samuel Thibault but modified.
Closes ticket #546
2009-08-01 02:03:22 +02:00
Lennart Poettering
c6ea9fecc9
core-util: rework pa_strlcpy() to not rely on strncpy()
...
strncpy() is very slow since it resets the entire destination buffer.
Replace usage of strncpy by memcpy().
2009-08-01 02:01:58 +02:00
Lennart Poettering
e5c2256e36
pipe: replace PIPE_BUF macro pa pa_pipe_buf call
...
This should help portability to platforms that lack PIPE_BUF. Based on a
patch from Samuel Thibault.
See ticket #546
2009-08-01 01:59:58 +02:00
Lennart Poettering
0113e7282c
hal: add option to initialize all subdevices of an OSS device
...
Patch from 'cmt', closes ticket #544
2009-07-31 23:13:21 +02:00
Lennart Poettering
478f3254b3
client: documented that pa_stream_drain() may only have a single operation active at a time
...
Closes #552 .
2009-07-31 23:09:16 +02:00
Lennart Poettering
2952f28c06
client: fix documentation for threaded mainloop
...
Closes #553
2009-07-31 23:07:07 +02:00
Lennart Poettering
39aa1cf94d
alsa: revert to first set number of periods, then set buffer size
...
Apparently some ALSA drivers aren't happy with getting the buffer size
configured first followed the period size. So swap the order again and
document this for future reference so that we don't turn that around
again.
2009-07-31 02:07:24 +02:00
Lennart Poettering
c14f6c179f
tunnel: don't assert on misaligned reads, closes #597 and rhbz #496310
2009-07-31 00:50:19 +02:00
Lennart Poettering
4f5e2b745e
threaded-mainloop: loop around pa_cond_wait() invocation in pa_threaded_mainloop_signal()
2009-07-30 23:46:25 +02:00
Lennart Poettering
8343360da1
client: minor modernizations
2009-07-25 03:11:09 +02:00
Lennart Poettering
6ce7d208f0
client: if a child we created was already reaped, assume that it was successful
2009-07-25 01:29:36 +02:00
Lennart Poettering
59659e1db6
interpol-test: allow configuration of latency
2009-07-24 20:22:19 +02:00
Lennart Poettering
211d0f3dcb
client: limit block size for zero-copy operations to mempool block size
2009-07-24 20:21:30 +02:00
Lennart Poettering
e7ca058427
client: make volume struct const
2009-07-24 20:20:34 +02:00
Lennart Poettering
5efb07281d
alsa: throw timing data away after device resume
2009-07-24 20:13:52 +02:00
Lennart Poettering
f6763917ee
autospawn: refuse autospawning if process disabled waitpid()
2009-07-24 18:22:13 +02:00
Lennart Poettering
5e24b6dff5
memblock: try to hit an assert earlier when ref counting doesn't work
2009-07-24 15:49:22 +02:00
Lennart Poettering
2bbdf631f8
udev: explain what happened when inotify_add_watch() returned ENOSPC, rhbz #513571
2009-07-24 13:58:22 +02:00
Lennart Poettering
18433c19b6
alsa: handle correctly if alsa returns us 0 or EAGAIN on snd_pcm_mmap_begin if we didn't call snd_pcm_avail immediately before
2009-07-24 13:45:59 +02:00