Lennart Poettering [Mon, 26 Jan 2009 23:53:31 +0000 (00:53 +0100)]
remove redundant cast
Lennart Poettering [Mon, 26 Jan 2009 23:52:28 +0000 (00:52 +0100)]
store requested resampling method in a seperate field and use it when create a new resampler after a move
Lennart Poettering [Mon, 26 Jan 2009 23:49:58 +0000 (00:49 +0100)]
make a few comments appear in doxygen
Lennart Poettering [Mon, 26 Jan 2009 23:48:53 +0000 (00:48 +0100)]
check for availability of RLIMIT_NOFILE and RLIMIT_AS before we make use of it
Lennart Poettering [Mon, 26 Jan 2009 23:47:07 +0000 (00:47 +0100)]
implement pa_cvolume_scale()
Lennart Poettering [Mon, 26 Jan 2009 23:46:39 +0000 (00:46 +0100)]
implement new API functions pa_channel_map_can_balance(), pa_channel_map_to_name() and pa_channel_map_to_pretty_name()
Lennart Poettering [Mon, 26 Jan 2009 23:44:45 +0000 (00:44 +0100)]
add a bitset implementation
Lennart Poettering [Sat, 24 Jan 2009 00:36:43 +0000 (01:36 +0100)]
rate limit a warning
Lennart Poettering [Sat, 24 Jan 2009 00:25:11 +0000 (01:25 +0100)]
include a few HAL properties in our card/sink/source properties for ALSA devices
Lennart Poettering [Fri, 23 Jan 2009 23:12:12 +0000 (00:12 +0100)]
use pa_log_ratelimit() at a few places
Lennart Poettering [Fri, 23 Jan 2009 22:58:57 +0000 (23:58 +0100)]
add pa_log_rate_limit()
Lennart Poettering [Fri, 23 Jan 2009 22:58:36 +0000 (23:58 +0100)]
add generic rate limiting implementation
Lennart Poettering [Fri, 23 Jan 2009 22:57:47 +0000 (23:57 +0100)]
add support for static mutexes
Lennart Poettering [Fri, 23 Jan 2009 21:40:32 +0000 (22:40 +0100)]
make module-alsa-card move streams between the old and new sink/source, allowing 'hot' switching between profiles
Lennart Poettering [Fri, 23 Jan 2009 21:40:02 +0000 (22:40 +0100)]
add functions to move all inputs of a sink away/similar for source outputs
Lennart Poettering [Fri, 23 Jan 2009 21:38:30 +0000 (22:38 +0100)]
move sink input/source output move functions into two parts so that we can start the move, delete the original sink, create a new sink, finish the move; similar for source outputs
Lennart Poettering [Fri, 23 Jan 2009 21:35:19 +0000 (22:35 +0100)]
in most cases we can use i->core instead of i->sink->core and o->coure instead of o->source->core
Lennart Poettering [Fri, 23 Jan 2009 21:30:31 +0000 (22:30 +0100)]
include list of sinks/source in card dump
Lennart Poettering [Fri, 23 Jan 2009 21:30:02 +0000 (22:30 +0100)]
teach module-rescue-streams and module-always-sink to not do anything if we are shutting down anyway
Lennart Poettering [Fri, 23 Jan 2009 21:29:02 +0000 (22:29 +0100)]
maintain a pa_core state variable
Lennart Poettering [Fri, 23 Jan 2009 21:28:11 +0000 (22:28 +0100)]
allow sample spec/channel map to be queried for pa_resampler objects
Lennart Poettering [Fri, 23 Jan 2009 18:50:47 +0000 (19:50 +0100)]
drop --ltdl from the libtoolize invocation, since we don't ship ltdl anymore
Lennart Poettering [Fri, 23 Jan 2009 18:46:52 +0000 (19:46 +0100)]
Merge commit 'flameeyes/flameeyes'
Lennart Poettering [Fri, 23 Jan 2009 18:45:11 +0000 (19:45 +0100)]
add a simple abstraction for SIMD operations
Lennart Poettering [Fri, 23 Jan 2009 18:40:01 +0000 (19:40 +0100)]
don't overflow when we do digital amplification of 16 bit samples
Diego E. 'Flameeyes' Pettenò [Thu, 22 Jan 2009 22:38:07 +0000 (23:38 +0100)]
Use #ifdef to avoid warning about undefined macro.
Lennart Poettering [Thu, 22 Jan 2009 21:50:03 +0000 (22:50 +0100)]
use pthread_setaffinity_np() only when it is available
Diego E. 'Flameeyes' Pettenò [Thu, 22 Jan 2009 19:02:42 +0000 (20:02 +0100)]
Improve the ltdl discovery code by checking for libtool 2.x functions.
The lt_dladvise_* interfaces are implemented only in the 2.x series and are
not implemented in 1.4, so we can rely on their presence to know that the
version is good enough.
Diego E. 'Flameeyes' Pettenò [Thu, 22 Jan 2009 15:52:41 +0000 (16:52 +0100)]
Move the safety check about pkg-config in bootstrap.sh.
Don't check twice for pkg-config during configure, since the undefined
macro would be possibly caused on a different system.
Diego E. 'Flameeyes' Pettenò [Thu, 22 Jan 2009 15:41:45 +0000 (16:41 +0100)]
Fix logic thinko.
Diego E. 'Flameeyes' Pettenò [Thu, 22 Jan 2009 15:37:40 +0000 (16:37 +0100)]
Remove support for internal distributing and bundling of libltdl.
Standing to what the libtool documentation says, the LTDL_INIT macro and
the related configure options are only useful when intending to distribute
libltdl, and is superfluous if the system copy were always to be used.
Which makes it very easy to just drop the internal copy and use the system
library, just do it like any other library lacking pkg-config files to
identify its presence.
If this tries to build against an older libtool version it might fail at
link time, so for now this is not an user-proof solution. But it at least
should provide a working environment for packagers.
Jared D. McNeill [Thu, 22 Jan 2009 01:24:04 +0000 (02:24 +0100)]
NetBSD sometimes doesn't know SNDCTL_DSP_GETODELAY
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Lennart Poettering [Thu, 22 Jan 2009 01:20:00 +0000 (02:20 +0100)]
make rtstutter use pa_ncpus()
Lennart Poettering [Thu, 22 Jan 2009 01:16:53 +0000 (02:16 +0100)]
add API pa_ncpus()
Jared D. McNeill [Thu, 22 Jan 2009 01:15:50 +0000 (02:15 +0100)]
NetBSD doesn't know getgrnam_r()/getpwnam_r()
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Jared D. McNeill [Thu, 22 Jan 2009 00:57:52 +0000 (01:57 +0100)]
NetBSD doesn't know ENOLINK
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Jared D. McNeill [Thu, 22 Jan 2009 00:55:21 +0000 (01:55 +0100)]
It is more portable to assume that SO_RCVBUF/SO_SNDBUF takes and int instead of a size_t
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Jared D. McNeill [Thu, 22 Jan 2009 00:52:35 +0000 (01:52 +0100)]
NetBSD specific atomic operation implementation
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Jared D. McNeill [Thu, 22 Jan 2009 00:39:54 +0000 (01:39 +0100)]
NetBSD doesn't know RLIMIT_AS
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Jared D. McNeill [Thu, 22 Jan 2009 00:37:19 +0000 (01:37 +0100)]
NetBSD needs to include sys/uio.h for some socket functions
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Lennart Poettering [Thu, 22 Jan 2009 00:15:49 +0000 (01:15 +0100)]
When resuming an OSS device ask for the very same fragment settings as we did the first time
In OSS it is only possible to request fragment sizes that are powers of
2. However actually selected fragment sizes may be arbitrary values.
This means that it is not always possible to request the same fragment
size after a suspend that was used before the suspend because we simply
cannot express it in the request. To work around that we should issue
the same request as we did the first time.
Lennart Poettering [Wed, 21 Jan 2009 23:26:16 +0000 (00:26 +0100)]
rework module-hal-detect and make it use module-alsa-card instead of module-alsa-sink/-source
Lennart Poettering [Wed, 21 Jan 2009 23:25:36 +0000 (00:25 +0100)]
include PA_SINK_INVALID_STATE in all switch/case statements to make gcc shut up
Lennart Poettering [Wed, 21 Jan 2009 23:24:28 +0000 (00:24 +0100)]
fix minor memleak in prober
Lennart Poettering [Wed, 21 Jan 2009 23:24:13 +0000 (00:24 +0100)]
rework logic how alsa sinks/sources/cards are named
Lennart Poettering [Wed, 21 Jan 2009 23:22:46 +0000 (00:22 +0100)]
make gcc shut up
Lennart Poettering [Wed, 21 Jan 2009 23:22:29 +0000 (00:22 +0100)]
fix segfault when in record-only mode
Lennart Poettering [Wed, 21 Jan 2009 23:20:15 +0000 (00:20 +0100)]
only reread volume if we actually have a good mixer. Closes #466
Lennart Poettering [Wed, 21 Jan 2009 23:19:04 +0000 (00:19 +0100)]
make gcc shut up a bit more
Lennart Poettering [Wed, 21 Jan 2009 23:17:55 +0000 (00:17 +0100)]
fix copy'n'paste error
Lennart Poettering [Wed, 21 Jan 2009 23:17:31 +0000 (00:17 +0100)]
add new function pa_strna
Lennart Poettering [Wed, 21 Jan 2009 23:17:11 +0000 (00:17 +0100)]
add new function pa_card_suspend()
Lennart Poettering [Wed, 21 Jan 2009 23:16:28 +0000 (00:16 +0100)]
mark a few more ALSA dB values as 'valid' for valgrind
Lennart Poettering [Wed, 21 Jan 2009 23:15:19 +0000 (00:15 +0100)]
don't include full path in driver name.
Lennart Poettering [Wed, 21 Jan 2009 23:11:58 +0000 (00:11 +0100)]
require autoconf 2.63
Lennart Poettering [Wed, 21 Jan 2009 02:04:19 +0000 (03:04 +0100)]
implement pactl set-card-profile
Lennart Poettering [Wed, 21 Jan 2009 02:04:04 +0000 (03:04 +0100)]
implement PA_COMMAND_SET_CARD_PROFILE
Lennart Poettering [Wed, 21 Jan 2009 01:50:29 +0000 (02:50 +0100)]
enable module-card-restore by default
Lennart Poettering [Wed, 21 Jan 2009 01:49:42 +0000 (02:49 +0100)]
add a card profile restore module
Lennart Poettering [Wed, 21 Jan 2009 01:47:49 +0000 (02:47 +0100)]
minor cleanups
Lennart Poettering [Wed, 21 Jan 2009 01:47:26 +0000 (02:47 +0100)]
don't restore mute/volume when already set
Lennart Poettering [Wed, 21 Jan 2009 01:46:36 +0000 (02:46 +0100)]
make pa_card_new_data::active_profile a string
Lennart Poettering [Wed, 21 Jan 2009 01:02:30 +0000 (02:02 +0100)]
make implementation of module-alsa-card complete
Lennart Poettering [Wed, 21 Jan 2009 01:01:44 +0000 (02:01 +0100)]
fill in dev_id properly
Lennart Poettering [Wed, 21 Jan 2009 00:59:59 +0000 (01:59 +0100)]
remove leftover define
Lennart Poettering [Wed, 21 Jan 2009 00:59:15 +0000 (01:59 +0100)]
when changing profiles do the actual assignment in the generic implementation
Lennart Poettering [Wed, 21 Jan 2009 00:55:26 +0000 (01:55 +0100)]
remove bogus pa_core_check_idle() call
Lennart Poettering [Wed, 21 Jan 2009 00:54:14 +0000 (01:54 +0100)]
add set-card-profile CLI command
Lennart Poettering [Wed, 21 Jan 2009 00:53:09 +0000 (01:53 +0100)]
allow cards be referenced by their index
Lennart Poettering [Wed, 21 Jan 2009 00:52:10 +0000 (01:52 +0100)]
fix copy/paste error
Lennart Poettering [Tue, 20 Jan 2009 23:23:18 +0000 (00:23 +0100)]
add an API to create arbitrary alsa sinks/sources dynamically without having to load/unload modules
Lennart Poettering [Tue, 20 Jan 2009 20:36:57 +0000 (21:36 +0100)]
add new call pa_alsa_open_by_device_id_profile()
Lennart Poettering [Tue, 20 Jan 2009 20:00:35 +0000 (21:00 +0100)]
export pa_channel_map_superset()
Lennart Poettering [Tue, 20 Jan 2009 19:35:18 +0000 (20:35 +0100)]
add priority logic to find best default profile
Lennart Poettering [Tue, 20 Jan 2009 19:34:46 +0000 (20:34 +0100)]
always add 'disabled' profile
Lennart Poettering [Tue, 20 Jan 2009 19:33:47 +0000 (20:33 +0100)]
remove unused variable
Lennart Poettering [Tue, 20 Jan 2009 19:33:28 +0000 (20:33 +0100)]
show active profile
Lennart Poettering [Tue, 20 Jan 2009 02:25:29 +0000 (03:25 +0100)]
add client API for querying card information
Lennart Poettering [Tue, 20 Jan 2009 02:24:59 +0000 (03:24 +0100)]
dump active profile
Lennart Poettering [Tue, 20 Jan 2009 02:24:40 +0000 (03:24 +0100)]
fix destruction when no profiles are defined
Lennart Poettering [Tue, 20 Jan 2009 02:24:11 +0000 (03:24 +0100)]
don't divide by zero if no left resp. no right channels are defined
Lennart Poettering [Tue, 20 Jan 2009 02:23:32 +0000 (03:23 +0100)]
fix profile names to include input/output specifier
Lennart Poettering [Tue, 20 Jan 2009 01:15:43 +0000 (02:15 +0100)]
add missing eof checks
Lennart Poettering [Mon, 19 Jan 2009 23:55:36 +0000 (00:55 +0100)]
Merge commit 'flameeyes/buildfixes-2'
Diego E. 'Flameeyes' Pettenò [Mon, 19 Jan 2009 23:55:42 +0000 (00:55 +0100)]
Include the alsa/ subdirectory for modules in the search path.
Without this, out of tree builds fails.
Diego E. 'Flameeyes' Pettenò [Mon, 19 Jan 2009 23:55:39 +0000 (00:55 +0100)]
Allow to opt-out from building tests.
Since the tests are only useful either if you're hacking at pulseaudio as
a developer, or when running "make check", allow users to opt-out from
their build.
This for instance allows for Gentoo users not to build the tests when
installing the ebuild with tests disabled, and also allow for skipping over
eventually broken tests when trying to get the basic build going on a port.
Lennart Poettering [Mon, 19 Jan 2009 23:49:45 +0000 (00:49 +0100)]
document that I am a retard
Lennart Poettering [Mon, 19 Jan 2009 23:14:50 +0000 (00:14 +0100)]
remove misplaced whitespace
Lennart Poettering [Mon, 19 Jan 2009 22:55:22 +0000 (23:55 +0100)]
include sink/source state in pactl output
Lennart Poettering [Mon, 19 Jan 2009 22:54:44 +0000 (23:54 +0100)]
Document explicitly that the internal sink/source states are not considered part of the ABI/API
Marc-André Lureau [Fri, 16 Jan 2009 13:53:27 +0000 (15:53 +0200)]
pulse: share private enum values with client side
Marc-André Lureau [Thu, 15 Jan 2009 18:58:04 +0000 (20:58 +0200)]
cli: fix broken array access with signed state enums
I wish I could have merge sink_to_string and source_to_string, but the
enum values are equal, and we cannot assume they will always be.
Marc-André Lureau [Thu, 15 Jan 2009 15:28:33 +0000 (17:28 +0200)]
sink: trigger subscribe event on sink state change
Marc-André Lureau [Thu, 15 Jan 2009 15:16:31 +0000 (17:16 +0200)]
pulse: introspect sink state
Lennart Poettering [Mon, 19 Jan 2009 22:12:23 +0000 (23:12 +0100)]
Merge commit 'vudentz/master'
Lennart Poettering [Mon, 19 Jan 2009 22:09:58 +0000 (23:09 +0100)]
Lennart Poettering [Mon, 19 Jan 2009 22:07:34 +0000 (23:07 +0100)]
Beef pactl output up a bit
Lennart Poettering [Mon, 19 Jan 2009 22:07:13 +0000 (23:07 +0100)]
show dB and balance for cached samples
Lennart Poettering [Mon, 19 Jan 2009 22:06:37 +0000 (23:06 +0100)]
fix up balance format string a bit
Lennart Poettering [Mon, 19 Jan 2009 22:03:22 +0000 (23:03 +0100)]
fix doxygen version references