profile/ivi/pulseaudio.git
16 years agoreindent comments a bit
Lennart Poettering [Wed, 3 Sep 2008 16:51:46 +0000 (18:51 +0200)]
reindent comments a bit

16 years agoImplement "early requests" mode.
Lennart Poettering [Wed, 3 Sep 2008 16:31:46 +0000 (18:31 +0200)]
Implement "early requests" mode.

PA_STREAM_EARLY_REQUESTS is a new flag that will modify buffering metric
selection behaviour a bit. This code is good for broken ALSA/OSS clients that
ignore 'readability' on the fds in question and schedule audio via usleep()
instead.

16 years agoRework pa_machine_id() a bit
Lennart Poettering [Wed, 3 Sep 2008 16:30:27 +0000 (18:30 +0200)]
Rework pa_machine_id() a bit

Guarantee this function never fails, use POSIX gethostid as last resort. Add
comments.

16 years agofix misuse of return value
Lennart Poettering [Wed, 3 Sep 2008 16:29:49 +0000 (18:29 +0200)]
fix misuse of return value

16 years agouse gcc malloc attribute macros for internal functions, too
Lennart Poettering [Mon, 1 Sep 2008 19:44:00 +0000 (21:44 +0200)]
use gcc malloc attribute macros for internal functions, too

16 years agodrop -Winline from build cflags
Lennart Poettering [Mon, 1 Sep 2008 19:42:27 +0000 (21:42 +0200)]
drop -Winline from build cflags

16 years agodon't include leagacy definition PA_STREAM_NOT_MONOTONOUS in docs
Lennart Poettering [Mon, 1 Sep 2008 17:17:14 +0000 (19:17 +0200)]
don't include leagacy definition PA_STREAM_NOT_MONOTONOUS in docs

16 years agoprefix internally used inline function with _
Lennart Poettering [Mon, 1 Sep 2008 17:16:12 +0000 (19:16 +0200)]
prefix  internally used inline function with _

16 years agoadd gcc malloc related function attributes where appropriate
Lennart Poettering [Mon, 1 Sep 2008 17:15:07 +0000 (19:15 +0200)]
add gcc malloc related function attributes where appropriate

16 years agoadd malloc related gcc attribute macros
Lennart Poettering [Mon, 1 Sep 2008 17:13:37 +0000 (19:13 +0200)]
add malloc related gcc attribute macros

16 years agoavoid rounding errors on requested buffering metrics
Lennart Poettering [Mon, 1 Sep 2008 00:41:03 +0000 (02:41 +0200)]
avoid rounding errors on requested buffering metrics

16 years agooutput relative timestamps in addition to absolute timestamps when logging
Lennart Poettering [Mon, 1 Sep 2008 00:39:27 +0000 (02:39 +0200)]
output relative timestamps in addition to absolute timestamps when logging

16 years agoinclude more build info in debug output
Lennart Poettering [Mon, 1 Sep 2008 00:38:32 +0000 (02:38 +0200)]
include more build info in debug output

16 years agorework device opening code: work around broken SND_PCM_NO_AUTO_xxx support in ALSA...
Lennart Poettering [Sun, 31 Aug 2008 14:25:37 +0000 (16:25 +0200)]
rework device opening code: work around broken SND_PCM_NO_AUTO_xxx support in ALSA <= 1.0.17a

16 years agoremove a few more gcc warnings
Lennart Poettering [Fri, 29 Aug 2008 23:22:41 +0000 (01:22 +0200)]
remove a few more gcc warnings

16 years agofix a few compiler warnings on older gcc
Lennart Poettering [Fri, 29 Aug 2008 21:53:55 +0000 (23:53 +0200)]
fix a few compiler warnings on older gcc

16 years agoreword amd64 message
Lennart Poettering [Fri, 29 Aug 2008 19:46:12 +0000 (21:46 +0200)]
reword amd64 message

16 years agochange default log level for the library to PA_LOG_ERROR to avoid spamming to stderr...
Lennart Poettering [Fri, 29 Aug 2008 19:43:50 +0000 (21:43 +0200)]
change default log level for the library to PA_LOG_ERROR to avoid spamming to stderr more often

16 years agodowngrade a few messages
Lennart Poettering [Fri, 29 Aug 2008 19:43:10 +0000 (21:43 +0200)]
downgrade a few messages

16 years agothe native atomic ops implementation for amd64 seems to work fine
Lennart Poettering [Fri, 29 Aug 2008 19:42:09 +0000 (21:42 +0200)]
the native atomic ops implementation for amd64 seems to work fine

16 years agoChange return value of cmpxchg atomic op to pa_bool_t
Lennart Poettering [Fri, 29 Aug 2008 18:24:46 +0000 (20:24 +0200)]
Change return value of cmpxchg atomic op to pa_bool_t

16 years agoAdd CFLAGS information on start-up
Marc-André Lureau [Fri, 29 Aug 2008 18:08:55 +0000 (20:08 +0200)]
Add CFLAGS information on start-up

Signed-off-by: Lennart Poettering <lennart@poettering.net>
16 years agooptionally add timestampts to every line logged
Lennart Poettering [Fri, 29 Aug 2008 17:33:06 +0000 (19:33 +0200)]
optionally add timestampts to every line logged

16 years agoreduce needlessly large gdbm cache a bit
Lennart Poettering [Thu, 28 Aug 2008 23:48:31 +0000 (01:48 +0200)]
reduce needlessly large gdbm cache a bit

16 years agofix up latency before calling into stream code, to make sure we don't ask for too...
Lennart Poettering [Thu, 28 Aug 2008 23:20:25 +0000 (01:20 +0200)]
fix up latency before calling into stream code, to make sure we don't ask for too much data to early

16 years agoadd missing config.h inclusion
Lennart Poettering [Thu, 28 Aug 2008 23:15:58 +0000 (01:15 +0200)]
add missing config.h inclusion

16 years agorework pa_ulog2 and base it on __builtin_clz if available, make pa_make_power_of_two...
Lennart Poettering [Thu, 28 Aug 2008 23:13:50 +0000 (01:13 +0200)]
rework pa_ulog2 and base it on __builtin_clz if available, make pa_make_power_of_two based on it

16 years agoadd byte-to-usec and usec-to-byte converters that round up, not down
Lennart Poettering [Thu, 28 Aug 2008 15:53:01 +0000 (17:53 +0200)]
add byte-to-usec and usec-to-byte converters that round up, not down

16 years agodocument in which direction we round
Lennart Poettering [Thu, 28 Aug 2008 15:52:08 +0000 (17:52 +0200)]
document in which direction we round

16 years agoalsa_error_handler should note source of errors
Ed Catmur [Tue, 26 Aug 2008 21:19:43 +0000 (23:19 +0200)]
alsa_error_handler should note source of errors

When an error gets passed up from alsa-lib via alsa_error_handler, it's unclear
the source of the error. alsa_error_handler should note that the error came
from alsa-lib. (Closes #341)

16 years agoincrease pa_xmalloc() limit to 96 MB, closes #344
Lennart Poettering [Tue, 26 Aug 2008 13:46:26 +0000 (15:46 +0200)]
increase pa_xmalloc() limit to 96 MB, closes #344

16 years agofix typo
Lennart Poettering [Tue, 26 Aug 2008 13:45:37 +0000 (15:45 +0200)]
fix typo

16 years agoFix error code in pa_stream_get_timing_info()
Lennart Poettering [Tue, 26 Aug 2008 13:45:18 +0000 (15:45 +0200)]
Fix error code in pa_stream_get_timing_info()

16 years agocall close() in a loop to catch EINTR
Lennart Poettering [Tue, 26 Aug 2008 13:44:55 +0000 (15:44 +0200)]
call close() in a loop to catch EINTR

16 years agoFix more linking issues in x11-publish and stream-restore
Colin Guthrie [Fri, 22 Aug 2008 09:58:21 +0000 (10:58 +0100)]
Fix more linking issues in x11-publish and stream-restore

16 years agoMerge branch 'master' of git://git.0pointer.de/pulseaudio
Colin Guthrie [Fri, 22 Aug 2008 09:56:45 +0000 (10:56 +0100)]
Merge branch 'master' of git://git.0pointer.de/pulseaudio

16 years agoadd a few missing casts
Lennart Poettering [Wed, 20 Aug 2008 00:33:06 +0000 (03:33 +0300)]
add a few missing casts

16 years agoadd doxygen documentation for ext-stream-restore.h
Lennart Poettering [Tue, 19 Aug 2008 22:17:33 +0000 (00:17 +0200)]
add doxygen documentation for ext-stream-restore.h

16 years agouse final glibc eventfd() instead of our homegrown syscall invocations
Lennart Poettering [Tue, 19 Aug 2008 21:18:20 +0000 (23:18 +0200)]
use final glibc eventfd() instead of our homegrown syscall invocations

16 years agorework cpu limit logic to use monotonic instead of wall clock time
Lennart Poettering [Tue, 19 Aug 2008 21:03:37 +0000 (23:03 +0200)]
rework cpu limit logic to use monotonic instead of wall clock time

16 years agosimplify pa_start_child_for_read by using pa_close_all()/pa_reset_sigs()/pa_unblock_s...
Lennart Poettering [Tue, 19 Aug 2008 20:49:14 +0000 (22:49 +0200)]
simplify pa_start_child_for_read by using pa_close_all()/pa_reset_sigs()/pa_unblock_sigs()

16 years agoadd a few more gcc warning flags and fix quite a few problems found by doing so
Lennart Poettering [Tue, 19 Aug 2008 20:39:54 +0000 (22:39 +0200)]
add a few more gcc warning flags and fix quite a few problems found by doing so

16 years agorun autoupdate
Lennart Poettering [Mon, 18 Aug 2008 22:17:49 +0000 (00:17 +0200)]
run autoupdate

16 years agoupdate gitignore
Lennart Poettering [Mon, 18 Aug 2008 22:09:26 +0000 (00:09 +0200)]
update gitignore

16 years agorequire ac 2.62 in bootstrap.sh
Lennart Poettering [Mon, 18 Aug 2008 22:02:01 +0000 (00:02 +0200)]
require ac 2.62 in bootstrap.sh

16 years agoMerge commit 'flameeyes/autoconf-2.62'
Lennart Poettering [Mon, 18 Aug 2008 21:52:44 +0000 (23:52 +0200)]
Merge commit 'flameeyes/autoconf-2.62'

16 years agoa few modernizations
Lennart Poettering [Mon, 18 Aug 2008 18:07:57 +0000 (20:07 +0200)]
a few modernizations

16 years agodon't unref pa_native_options object twice
Lennart Poettering [Mon, 18 Aug 2008 18:07:32 +0000 (20:07 +0200)]
don't unref pa_native_options object twice

16 years agoadd some code to make invalid valgrind warnings go away
Lennart Poettering [Mon, 18 Aug 2008 17:55:55 +0000 (19:55 +0200)]
add some code to make invalid valgrind warnings go away

16 years agobump release
Lennart Poettering [Mon, 18 Aug 2008 15:57:44 +0000 (17:57 +0200)]
bump release

16 years agorestore volume/device for streams only when it wasn't set before
Lennart Poettering [Mon, 18 Aug 2008 15:49:47 +0000 (17:49 +0200)]
restore volume/device for streams only when it wasn't set before

16 years agoallow clients to not specify the volume for their streams
Lennart Poettering [Mon, 18 Aug 2008 15:49:18 +0000 (17:49 +0200)]
allow clients to not specify the volume for their streams

16 years agorework validity checking of sink/source/... names
Lennart Poettering [Mon, 18 Aug 2008 15:48:04 +0000 (17:48 +0200)]
rework validity checking of sink/source/... names

16 years agosave a bit of memory
Lennart Poettering [Mon, 18 Aug 2008 15:46:57 +0000 (17:46 +0200)]
save a bit of memory

16 years agofix type error
Lennart Poettering [Mon, 18 Aug 2008 15:36:59 +0000 (17:36 +0200)]
fix type error

16 years agoFix up overzealous HAVE_LT_DLMUTEX_REGISTER block
Russ Dill [Sun, 17 Aug 2008 19:53:43 +0000 (12:53 -0700)]
Fix up overzealous HAVE_LT_DLMUTEX_REGISTER block

This fixes a built problem on systems without the lt_dlmutex_register
function. The overzealousness causes libtool_set_error and libtool_get_error
to be undefined. This fixes a build problem on Ubuntu Intrepid.

Signed-off-by: Russ Dill <Russ.Dill@gmail.com>
Signed-off-by: Lennart Poettering <lennart@poettering.net>
16 years agoMake Multicast TTL for RTP configurable, patch from 'dfort'
Lennart Poettering [Fri, 15 Aug 2008 12:40:08 +0000 (14:40 +0200)]
Make Multicast TTL for RTP configurable, patch from 'dfort'

Signed-off-by: Lennart Poettering <lennart@poettering.net>
16 years agoapply newly configured rules properly
Lennart Poettering [Fri, 15 Aug 2008 12:38:18 +0000 (14:38 +0200)]
apply newly configured rules properly

16 years agoapply volumes properly more than once in a row
Lennart Poettering [Fri, 15 Aug 2008 12:37:54 +0000 (14:37 +0200)]
apply volumes properly more than once in a row

16 years agoapply the correct rules to sink inputs
Lennart Poettering [Fri, 15 Aug 2008 12:37:26 +0000 (14:37 +0200)]
apply the correct rules to sink inputs

16 years agodon't restore devices for direct-on-input streams
Lennart Poettering [Fri, 15 Aug 2008 12:33:18 +0000 (14:33 +0200)]
don't restore devices for direct-on-input streams

16 years agodisable hotplug sounds by default
Lennart Poettering [Fri, 15 Aug 2008 12:32:33 +0000 (14:32 +0200)]
disable hotplug sounds by default

16 years agopass force_refresh=FALSE to all volume/mute read invocations
Lennart Poettering [Wed, 13 Aug 2008 11:59:50 +0000 (13:59 +0200)]
pass force_refresh=FALSE to all volume/mute read invocations

16 years agodrop 0db reset functions since they are not necessary anymore
Lennart Poettering [Wed, 13 Aug 2008 11:59:29 +0000 (13:59 +0200)]
drop 0db reset functions since they are not necessary anymore

16 years agoextend hardware dB scale in software to full range if necessary, instead of reverting...
Lennart Poettering [Wed, 13 Aug 2008 11:59:06 +0000 (13:59 +0200)]
extend hardware dB scale in software to full range if necessary, instead of reverting back to software-only volume control

16 years agorework volume/mute APIs: split out pa_xx_set_soft_volume() and add force_refresh...
Lennart Poettering [Wed, 13 Aug 2008 11:55:58 +0000 (13:55 +0200)]
rework volume/mute APIs: split out pa_xx_set_soft_volume() and add force_refresh argument to read functions

16 years agoadd new function pa_alsa_volume_divide()
Lennart Poettering [Wed, 13 Aug 2008 11:54:17 +0000 (13:54 +0200)]
add new function pa_alsa_volume_divide()

16 years agoreword some log messages
Lennart Poettering [Wed, 13 Aug 2008 11:53:31 +0000 (13:53 +0200)]
reword some log messages

16 years agoadd new API function pa_cvolume_max()
Lennart Poettering [Wed, 13 Aug 2008 11:52:20 +0000 (13:52 +0200)]
add new API function pa_cvolume_max()

16 years agoreset lock_fd_mutex after destruction
Lennart Poettering [Wed, 13 Aug 2008 11:51:43 +0000 (13:51 +0200)]
reset lock_fd_mutex after destruction

16 years agofix protocol destruction
Lennart Poettering [Wed, 13 Aug 2008 11:51:13 +0000 (13:51 +0200)]
fix protocol destruction

16 years agoinitialize IP ACLs properly
Lennart Poettering [Mon, 11 Aug 2008 17:46:28 +0000 (19:46 +0200)]
initialize IP ACLs properly

16 years agofix two uninitialized memory accesses
Lennart Poettering [Mon, 11 Aug 2008 17:46:11 +0000 (19:46 +0200)]
fix two uninitialized memory accesses

16 years agootpimize mixing code a bit by moving a few checks out of the inner loops
Lennart Poettering [Mon, 11 Aug 2008 16:34:38 +0000 (18:34 +0200)]
otpimize mixing code a bit by moving a few checks out of the inner loops

16 years agooptimize volume changing a bit by only using a single counter for the inner loops...
Lennart Poettering [Mon, 11 Aug 2008 13:19:52 +0000 (15:19 +0200)]
optimize volume changing a bit by only using a single counter for the inner loops instead of two

16 years agoadhere to struct gcc aliasing rules
Lennart Poettering [Mon, 11 Aug 2008 13:17:30 +0000 (15:17 +0200)]
adhere to struct gcc aliasing rules

16 years agofix bad memory access
Lennart Poettering [Sat, 9 Aug 2008 15:04:41 +0000 (17:04 +0200)]
fix bad memory access

16 years agomake gcc shut up
Lennart Poettering [Sat, 9 Aug 2008 15:04:27 +0000 (17:04 +0200)]
make gcc shut up

16 years agoadhere to C strict aliasing rules
Lennart Poettering [Sat, 9 Aug 2008 15:03:43 +0000 (17:03 +0200)]
adhere to C strict aliasing rules

16 years agodon't use PA_GCC_UNUSED anymore
Lennart Poettering [Sat, 9 Aug 2008 14:20:29 +0000 (16:20 +0200)]
don't use PA_GCC_UNUSED anymore

16 years agofree regex_t after use
Lennart Poettering [Sat, 9 Aug 2008 14:12:50 +0000 (16:12 +0200)]
free regex_t after use

16 years agorework autospawning code to survive multiple pa_contexts in a single process
Lennart Poettering [Sat, 9 Aug 2008 01:49:42 +0000 (03:49 +0200)]
rework autospawning code to survive multiple pa_contexts in a single process

16 years agoprint reason when we fail to kill a running daemon
Lennart Poettering [Sat, 9 Aug 2008 01:47:59 +0000 (03:47 +0200)]
print reason when we fail to kill a running daemon

16 years agoset errno properly in all functions from pid.c
Lennart Poettering [Sat, 9 Aug 2008 01:47:18 +0000 (03:47 +0200)]
set errno properly in all functions from pid.c

16 years agoset errno properly in all functions from core-util.c
Lennart Poettering [Sat, 9 Aug 2008 01:46:46 +0000 (03:46 +0200)]
set errno properly in all functions from core-util.c

16 years agoadd locale support to pa_parse_boolean()
Lennart Poettering [Sat, 9 Aug 2008 01:46:23 +0000 (03:46 +0200)]
add locale support to pa_parse_boolean()

16 years agoset errno properly in all cases
Lennart Poettering [Sat, 9 Aug 2008 01:44:46 +0000 (03:44 +0200)]
set errno properly in all cases

16 years agomake sure we don't crash if pa_thread_join() is called more than once on the same...
Lennart Poettering [Fri, 8 Aug 2008 20:31:24 +0000 (22:31 +0200)]
make sure we don't crash if pa_thread_join() is called more than once on the same pa_thread object

16 years agoReduce rules for man pages generation to pattern rules.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 13:12:54 +0000 (15:12 +0200)]
Reduce rules for man pages generation to pattern rules.

Instead of having to duplicat ethe same code all over for all the man
pages, simplify it and reduce it to generic pattern rules.x

16 years agoReplace some manual build tests with AC_CACHE_CHECK and AC_COMPILE_IFELSE.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 12:43:37 +0000 (14:43 +0200)]
Replace some manual build tests with AC_CACHE_CHECK and AC_COMPILE_IFELSE.

Instead of compiling the build tests manually, use autoconf
facilities, so that the results are cached between runs. Also avoid
linking when a simple compile test is enough.

16 years agoCreate a new macro for checking compiler support for TLS.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 12:03:54 +0000 (14:03 +0200)]
Create a new macro for checking compiler support for TLS.

Create a new macro that can be shared between projects to check for
__thread support by the compiler. This macro might come useful for
xine-lib too so I want to keep it separate for easier importing it
over.

Name the defined macro SUPPORT_TLS___THREAD to follow the same style
as the checks from attributes.m4.

16 years agoReplace the CFLAGS-checking code with a common macro from xine-lib.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 11:29:53 +0000 (13:29 +0200)]
Replace the CFLAGS-checking code with a common macro from xine-lib.

Instead of writing custom code to check for cflags checking, import a
copy of attributes.m4 from xine-lib's repository and use the
CC_CHECK_CFLAGS macro.

The advantage lies not only in being able to reduce the custom code in
configure.ac, but also in the fact that the CC_CHECK_CFLAGS macro
caches the results, making ./configure -C quite faster on second run.

Check for the CFLAGS for any compiler and not just GCC, if the
compiler does support the flag it is better to u se it anyway,
otherwise it will be skipped.

16 years agoUse AC_PROG_CC_C99 to discover C99-compliant compiler.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 11:04:27 +0000 (13:04 +0200)]
Use AC_PROG_CC_C99 to discover C99-compliant compiler.

Instead of just checking if the compiler supports -std=c99 option,
make use of the autoconf macro for discovering C99. This way other
non-GCC compiler could be used in C99 mode too.

16 years agoCreate an m4 directory for common macros and use it.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 10:18:53 +0000 (12:18 +0200)]
Create an m4 directory for common macros and use it.

Split acinclude.m4 in multiple macro files.

Let it be known to autoconf and aclocal to use the m4 directory.
Ignore macro files copied or linked by libtool and intltool.

16 years agoRemove gettext macros from configure.ac, intltool is used.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 10:15:26 +0000 (12:15 +0200)]
Remove gettext macros from configure.ac, intltool is used.

When using intltool there is no need to _also_ use gettext, so remove
gettext macros so that autoreconf does not copy them over.

16 years agoBump autoconf requirement to 2.62 (latest released version).
Diego 'Flameeyes' Pettenò [Thu, 7 Aug 2008 17:09:23 +0000 (19:09 +0200)]
Bump autoconf requirement to 2.62 (latest released version).

16 years agoFix man pages generation when building out of tree.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 11:18:16 +0000 (13:18 +0200)]
Fix man pages generation when building out of tree.

When referring to the xmltoman script srcdir should be requested, or
the build will fail when doing out of tree builds (and the script is
thus not in the build directory).

16 years agoFix building again libtool/ltdl 2.2.4.
Diego 'Flameeyes' Pettenò [Fri, 8 Aug 2008 10:39:04 +0000 (12:39 +0200)]
Fix building again libtool/ltdl 2.2.4.

On changeset f1d2bf84089b1e5b5988a5e5d6d571a507a52337 support for
libtool 2.2 was broken as libtool_set_error was not defined anymore on
that version. Fix this by also putting under #ifdef the calls to that
function.

16 years agoadd compatibility with older PA socket paths
Lennart Poettering [Thu, 7 Aug 2008 00:39:58 +0000 (02:39 +0200)]
add compatibility with older PA socket paths

16 years agoremove some leftover debug string
Lennart Poettering [Thu, 7 Aug 2008 00:29:44 +0000 (02:29 +0200)]
remove some leftover debug string