Lennart Poettering [Mon, 12 Jan 2009 22:35:28 +0000 (23:35 +0100)]
bump version/soname
Lennart Poettering [Mon, 12 Jan 2009 18:44:21 +0000 (19:44 +0100)]
Fix suspending of all sinks/sources
pasuspender issues a SUSPEND_ALL requests for suspending all
sinks/sources at once. This has been broken due to an ill-placed sanity
checked.
Lennart Poettering [Mon, 12 Jan 2009 18:34:12 +0000 (19:34 +0100)]
for record streams fill in the latency as the fragsize
Lennart Poettering [Sat, 10 Jan 2009 02:33:27 +0000 (03:33 +0100)]
Make sure we don't drop any data on the client side
Lennart Poettering [Sat, 10 Jan 2009 01:55:57 +0000 (02:55 +0100)]
show maximum usable slot size
Lennart Poettering [Thu, 8 Jan 2009 22:30:51 +0000 (23:30 +0100)]
add a few missing parens
Sean McNamara [Wed, 7 Jan 2009 22:29:16 +0000 (23:29 +0100)]
--check: Updated manpage slightly and pulseaudio --help slightly.
It's good for new users - I didn't know about the convention for
daemon checks to only bump the exit code until, say, a year after I
first installed Linux. Of course, we could also put an entire guide to
using Linux in our manpage, or tell users how to check the exit code
with $?, or how to get to the terminal, or an example script, ... (you
can see how this would quickly get out of control). So just a little
bit more hint should be good for now. John? Does this work for you?
Sean
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Luiz Augusto von Dentz [Tue, 6 Jan 2009 14:02:16 +0000 (11:02 -0300)]
Fix sending wrong codec capability length.
Luiz Augusto von Dentz [Tue, 6 Jan 2009 14:00:44 +0000 (11:00 -0300)]
Fix send and recv message sizes.
Luiz Augusto von Dentz [Mon, 5 Jan 2009 22:12:43 +0000 (19:12 -0300)]
Send packets with proper size.
chocolateboy [Thu, 27 Nov 2008 22:48:23 +0000 (22:48 +0000)]
Fix typo in log message: s/Recevied/Received/
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Tom Bamford [Sat, 20 Dec 2008 21:44:09 +0000 (23:44 +0200)]
Multicast SDP packets sent with same IP TTL as RTP packets
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Luiz Augusto von Dentz [Wed, 17 Dec 2008 20:19:22 +0000 (17:19 -0300)]
Update module-bluetooth-device to the new ipc.
Lennart Poettering [Thu, 8 Jan 2009 20:13:18 +0000 (21:13 +0100)]
A few minor cleanups and updates
Lennart Poettering [Tue, 23 Dec 2008 23:58:34 +0000 (00:58 +0100)]
Rework handling of the PA_SINK_LATENCY/PA_SOURCE_LATENCY flags
Lennart Poettering [Tue, 23 Dec 2008 14:15:21 +0000 (15:15 +0100)]
fix a gcc warning
Lennart Poettering [Tue, 23 Dec 2008 14:14:28 +0000 (15:14 +0100)]
If we cannot open an ALSA device with SND_PCM_NO_AUTO_FORMAT retry without
This should fix compatibility with some sound cards which only support
24 bit packed samples.
Lennart Poettering [Sun, 21 Dec 2008 16:55:29 +0000 (17:55 +0100)]
make sure we don't hit an assert when we issue two rewind requests in a
single iteration
Closes rhbz 472757.
Lennart Poettering [Sun, 21 Dec 2008 12:34:56 +0000 (13:34 +0100)]
Implement PA_SOURCE_MESSAGE_GET_LATENCY
The pipe source needs to implement PA_SOURCE_MESSAGE_GET_LATENCY since
we'll otherwise hit an assert.
Closes #424.
Lennart Poettering [Sun, 21 Dec 2008 12:33:32 +0000 (13:33 +0100)]
Use FIONREAD instead of TIOCINQ
On Linux the two ioctls FIONREAD and TIOCINQ share the same number.
However TIOCINQ is used for terminals while FIONREAD is used (among
others) for sockets and pipes. Hence use FIONREAD here since it seems
more appropriate.
Lennart Poettering [Thu, 18 Dec 2008 14:24:02 +0000 (15:24 +0100)]
Allow access("/dev/dsp", W_OK) succeed
Some stupid apps (such as X-lite Softphone) check for W_OK on /dev/dsp.
This is of course crazy but easy for us to support.
Closes rhbz #474313
Lennart Poettering [Thu, 18 Dec 2008 00:25:54 +0000 (01:25 +0100)]
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.
Lennart Poettering [Wed, 17 Dec 2008 21:58:17 +0000 (22:58 +0100)]
downgrade a few warnings
Lennart Poettering [Wed, 17 Dec 2008 20:32:40 +0000 (21:32 +0100)]
it's better to always use the index of a module instead of the pa_module*
Lennart Poettering [Wed, 17 Dec 2008 20:27:07 +0000 (21:27 +0100)]
unload tunnel modules from a new stack frame
Lennart Poettering [Wed, 17 Dec 2008 20:20:51 +0000 (21:20 +0100)]
actually unload the modules from a new stack frame
Lennart Poettering [Wed, 17 Dec 2008 20:19:53 +0000 (21:19 +0100)]
Don't store pointer to pa_module
pa_module pointers might become invalid at any time, so we use the
stable uin32_t index of the module for identifying or modules instead.
Lennart Poettering [Wed, 17 Dec 2008 20:19:34 +0000 (21:19 +0100)]
introduce new function pa_module_unload_request_by_index
Luiz Augusto von Dentz [Fri, 5 Dec 2008 18:47:37 +0000 (15:47 -0300)]
Fix bug walking on module list.
Lennart Poettering [Wed, 17 Dec 2008 19:30:01 +0000 (20:30 +0100)]
Load module-volume-restore and module-device-restore before all other modules
Since m-v-r and m-d-r become active in the FIXATE hooks for
stream/device creation we need to make sure the modules are loaded
before the first devices/streams are created.
Lennart Poettering [Wed, 17 Dec 2008 19:22:42 +0000 (20:22 +0100)]
Pass GDBM_NOLOCK to gdbm
gdbm still uses BSD lockf for locking which is incompatible with NFS.
Since we don't need the locking here since the db files in question
should never be accessed by more than one process since they are
per-home-dir and per-machine we can disable locking without any ill
results.
This should fix rhbz #471279.
Lennart Poettering [Wed, 17 Dec 2008 18:53:58 +0000 (19:53 +0100)]
Don't mix front-center into rear channels
If there's a center channel on input that is not available on output
make sure we mix front-center only into front-left/right and rear-center
into rear-left/right.
Closes #400
Lennart Poettering [Tue, 16 Dec 2008 17:17:21 +0000 (18:17 +0100)]
Fix return value of --dump-resample-methods
We should return 0 when --dump-resample-methods is called.
Problem identified by "hchen59".
Closes bug #407.
Lennart Poettering [Tue, 16 Dec 2008 13:03:40 +0000 (14:03 +0100)]
Check if environ is actually set before we use it
Some applications seem to set **environ to NULL for various reasons.
Before we iterate through it we thus need to make sure it is actually
set to make sure we don't segfault.
Closes rhbz #473080
Lennart Poettering [Sat, 1 Nov 2008 20:11:48 +0000 (21:11 +0100)]
Make sure libpulse never gets unloaded
When an .so is unloaded during runtime all TLS keys it has registered
need to be freed because the destructor callbacks of the TLS key might
otherwise point to invalid code. Hence it would appear sensible to
destruct the TLS keys from a function marked as __attribute__
((destructor)). However functions marked like that are also called when
an application terminates, on exit(). If a thread continues to run until
the very exit it might still want to access that TLS data. The
destructor functions are called while all other threads are still
running. If __attribute ((destructor)) is used to destruct TLS keys for
such threads this might hence cause a crash when the application shuts
down.
To circumvent this problem we'll now compile libpulse with -z nodelete,
to make it unnecessary to delete the TLS data ever and thus avoiding the
problem. It's suboptimal, but for now I see no better solution.
Lennart Poettering [Sat, 1 Nov 2008 20:41:07 +0000 (21:41 +0100)]
make shm marker architecture independant, patch from michich, closes #401
Lennart Poettering [Fri, 24 Oct 2008 02:34:10 +0000 (04:34 +0200)]
make sure to use 64bit rounding even on 32bit machines when converting to pa_usec_t
Lennart Poettering [Thu, 23 Oct 2008 21:23:39 +0000 (23:23 +0200)]
fix build
Lennart Poettering [Wed, 22 Oct 2008 21:55:52 +0000 (23:55 +0200)]
warn if ALSA wakes us up and there is actually nothing to do
Lennart Poettering [Wed, 22 Oct 2008 20:48:53 +0000 (22:48 +0200)]
don't set the volume of pacat unless it is explicitly set
Lennart Poettering [Tue, 21 Oct 2008 20:04:22 +0000 (22:04 +0200)]
make the debug trap macro a proper macro in macro.h
Lennart Poettering [Tue, 21 Oct 2008 18:00:36 +0000 (20:00 +0200)]
Try to catch certain driver errors
... by verifying return values of snd_pcm_avail_update() and
snd_pcm_begin_mmap() for their sanenness.
Lennart Poettering [Tue, 21 Oct 2008 16:40:01 +0000 (18:40 +0200)]
include log.h near the end so that macro.h can be included in log.h and defines pa_bool_t properly
Lennart Poettering [Tue, 21 Oct 2008 16:27:25 +0000 (18:27 +0200)]
convert argument to boolean int in PA_UNLIKELY, too
Lennart Poettering [Tue, 21 Oct 2008 16:22:28 +0000 (18:22 +0200)]
fix invalid validity check
Lennart Poettering [Mon, 20 Oct 2008 18:33:28 +0000 (20:33 +0200)]
Make missing git-changelog.perl non-fatal
Lennart Poettering [Sun, 19 Oct 2008 20:25:58 +0000 (22:25 +0200)]
Fix spelling of privilige
Lennart Poettering [Sun, 19 Oct 2008 20:24:18 +0000 (22:24 +0200)]
always check for libtool prefix binary name to avoid confusion when using both installed and run-from-build-tree versions of PA in parallel
Luiz Augusto von Dentz [Thu, 9 Oct 2008 22:31:43 +0000 (19:31 -0300)]
Fix possible invalid read while attempting to load module-bluetooth-device.
Lennart Poettering [Mon, 13 Oct 2008 17:52:02 +0000 (19:52 +0200)]
properly remove dbus matches an filters when unloading m-b-d
Colin Guthrie [Sat, 11 Oct 2008 17:20:06 +0000 (18:20 +0100)]
Fix two typos that broke tunnels
Colin Guthrie [Wed, 8 Oct 2008 20:56:12 +0000 (22:56 +0200)]
Fix a potential C++/C99 ism, add a log message on error condition
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Lennart Poettering [Wed, 8 Oct 2008 02:02:10 +0000 (04:02 +0200)]
define 0dB in PA as maximum amplification
Lennart Poettering [Tue, 7 Oct 2008 20:46:18 +0000 (22:46 +0200)]
if the channel map was modified due to PA_SINK_INPUT_FIX_CHANNELS, remap the specified volume properly
Lennart Poettering [Tue, 7 Oct 2008 20:45:37 +0000 (22:45 +0200)]
use pa_channel_map_init_extend() instead of pa_channel_map_init_auto() as channel map for sink inputs/source outputs in case no map is specified
Lennart Poettering [Tue, 7 Oct 2008 20:42:13 +0000 (22:42 +0200)]
instead of resetting virtual_volume unconditionally on initialization, do so only when no volume was set before
Luiz Augusto von Dentz [Mon, 6 Oct 2008 17:59:15 +0000 (14:59 -0300)]
Unload module-bluetooth-device if the remote device disconnects.
Lennart Poettering [Tue, 7 Oct 2008 00:00:07 +0000 (02:00 +0200)]
Initialize exit_idle_time to -1 instead of 0 when in system mode.
Spotted by Rafał Mużyło.
Lennart Poettering [Mon, 6 Oct 2008 01:35:46 +0000 (03:35 +0200)]
make distcheck pass
Lennart Poettering [Mon, 6 Oct 2008 00:39:36 +0000 (02:39 +0200)]
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
Lennart Poettering [Mon, 6 Oct 2008 00:39:24 +0000 (02:39 +0200)]
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
Lennart Poettering [Mon, 6 Oct 2008 00:37:59 +0000 (02:37 +0200)]
bump version and sonames
Lennart Poettering [Mon, 6 Oct 2008 00:28:17 +0000 (02:28 +0200)]
Merge commit 'vudentz/master'
Lennart Poettering [Mon, 6 Oct 2008 00:26:08 +0000 (02:26 +0200)]
make sure we send a started messages when we are uncorking
Lennart Poettering [Sun, 5 Oct 2008 21:02:25 +0000 (23:02 +0200)]
update module-tunnel for recent protocol changes
Lennart Poettering [Sun, 5 Oct 2008 20:51:25 +0000 (22:51 +0200)]
disable valgrind macro usage for now since valgrind generates a lot of spurious warnings as it seems
Lennart Poettering [Sun, 5 Oct 2008 13:38:56 +0000 (15:38 +0200)]
add missing include
Lennart Poettering [Sat, 4 Oct 2008 00:13:39 +0000 (02:13 +0200)]
substract the unused record buffer size from the overall size before calculating the space still left for recording
Lennart Poettering [Fri, 3 Oct 2008 23:48:13 +0000 (01:48 +0200)]
get rid of pa_alsa_volume_divide() since we have pa_sw_volume_divide() now
Lennart Poettering [Fri, 3 Oct 2008 23:40:41 +0000 (01:40 +0200)]
implement pa_sw_volume_divide() and pa_sw_cvolume_divide()
Lennart Poettering [Fri, 3 Oct 2008 23:07:38 +0000 (01:07 +0200)]
increase suspend timeout to 5s so that it is always longer then the default tsched buffer size of 2s
Lennart Poettering [Fri, 3 Oct 2008 23:07:08 +0000 (01:07 +0200)]
don't call snd_pcm_drain() when we suspend because that might take awfully long with our long buffer sizes these days
Lennart Poettering [Fri, 3 Oct 2008 23:06:35 +0000 (01:06 +0200)]
add missing inclusion
Lennart Poettering [Fri, 3 Oct 2008 22:14:02 +0000 (00:14 +0200)]
do not cleanup staticly allocated memory unless we are in valgrind mode
Lennart Poettering [Fri, 3 Oct 2008 22:13:29 +0000 (00:13 +0200)]
show valgrind status on startup
Lennart Poettering [Fri, 3 Oct 2008 22:13:05 +0000 (00:13 +0200)]
instead of checking for directly use new function pa_in_valgrind()
Lennart Poettering [Fri, 3 Oct 2008 22:10:43 +0000 (00:10 +0200)]
add new API function pa_in_valgrind() to check for
Luiz Augusto von Dentz [Fri, 3 Oct 2008 21:04:53 +0000 (18:04 -0300)]
Fix loading module-bluetooth-device with an invalid parameter.
Luiz Augusto von Dentz [Fri, 3 Oct 2008 15:15:26 +0000 (12:15 -0300)]
Replace handlers of deprecated Connected signals with new PropertyChanged.
Luiz Augusto von Dentz [Wed, 1 Oct 2008 23:15:09 +0000 (20:15 -0300)]
Cleanup module-bluetooth-discover.
Luiz Augusto von Dentz [Wed, 1 Oct 2008 15:16:16 +0000 (12:16 -0300)]
Fix Connected signal handler.
Luiz Augusto von Dentz [Wed, 1 Oct 2008 15:04:55 +0000 (12:04 -0300)]
Fix match rule problems.
Luiz Augusto von Dentz [Wed, 1 Oct 2008 14:37:00 +0000 (11:37 -0300)]
Remove PropertyChanged signal handler.
Luiz Augusto von Dentz [Wed, 1 Oct 2008 14:35:51 +0000 (11:35 -0300)]
Add signal handlers for Connected signals.
Luiz Augusto von Dentz [Wed, 1 Oct 2008 14:29:50 +0000 (11:29 -0300)]
Add match rules for org.bluez.Headset and org.bluez.AudioSink.
Lennart Poettering [Fri, 3 Oct 2008 20:21:27 +0000 (22:21 +0200)]
rename pa_cvolume_snprint_dB to pa_sw_cvolume_snprint_dB since it is
useful only for software volumes
Lennart Poettering [Fri, 3 Oct 2008 17:49:15 +0000 (19:49 +0200)]
allow - in sample names
Lennart Poettering [Fri, 3 Oct 2008 15:45:55 +0000 (17:45 +0200)]
increase PA_CVOLUME_SNPRINT_MAX to a proper value and document that it is not considered part of the ABI
Lennart Poettering [Fri, 3 Oct 2008 15:45:04 +0000 (17:45 +0200)]
when checking the validity of a cvolume check whether all values are not -1
Lennart Poettering [Fri, 3 Oct 2008 15:44:17 +0000 (17:44 +0200)]
add missing calls to map file
Lennart Poettering [Fri, 3 Oct 2008 15:43:40 +0000 (17:43 +0200)]
add new API call pa_cvolume_compatible()
Lennart Poettering [Fri, 3 Oct 2008 15:42:38 +0000 (17:42 +0200)]
add new API call pa_cvolume_snprint_dB()
Lennart Poettering [Fri, 3 Oct 2008 15:16:55 +0000 (17:16 +0200)]
add new API call pa_cvolume_init()
Lennart Poettering [Fri, 3 Oct 2008 15:15:43 +0000 (17:15 +0200)]
extend documentation for pa_channel_map_init()
Lennart Poettering [Fri, 3 Oct 2008 15:14:58 +0000 (17:14 +0200)]
make a few casts explicit to remove compiler warnings
Lennart Poettering [Fri, 3 Oct 2008 15:14:35 +0000 (17:14 +0200)]
a bit of late pa_bool_t'ization
Lennart Poettering [Fri, 3 Oct 2008 15:14:02 +0000 (17:14 +0200)]
treat a channel map only then as compatible with a sample spec if it is valid
Lennart Poettering [Fri, 3 Oct 2008 15:13:17 +0000 (17:13 +0200)]
add new API function pa_sample_spec_init()
Lennart Poettering [Fri, 3 Oct 2008 13:16:26 +0000 (15:16 +0200)]
if a volume or channel map is invalid show so when printing it
Lennart Poettering [Fri, 3 Oct 2008 00:34:59 +0000 (02:34 +0200)]
user lrint() and friends in inner loops instead of normal C casts to speed up a few things