platform/upstream/pulseaudio.git
15 years agonative: make sure clients cannot trigger an assert by sending us invalid volume info
Lennart Poettering [Sat, 29 Aug 2009 04:11:02 +0000 (06:11 +0200)]
native: make sure clients cannot trigger an assert by sending us invalid volume info

15 years agocore: initialize sink/source priorities automatically based on their proplists
Lennart Poettering [Sat, 29 Aug 2009 02:31:33 +0000 (04:31 +0200)]
core: initialize sink/source priorities automatically based on their proplists

15 years agonamereg: select default sink by priority
Lennart Poettering [Sat, 29 Aug 2009 01:58:57 +0000 (03:58 +0200)]
namereg: select default sink by priority

15 years agoprotocol-native: replace use of pa_namereg_is_valid_name() by pa_namereg_is_valid_nam...
Lennart Poettering [Sat, 29 Aug 2009 01:57:53 +0000 (03:57 +0200)]
protocol-native: replace use of pa_namereg_is_valid_name() by pa_namereg_is_valid_name_or_wildcard() where applicable to allow use of @@ wildcards

15 years agonamereg: add new pa_namereg_is_valid_name_or_wildcard() call
Lennart Poettering [Sat, 29 Aug 2009 01:56:03 +0000 (03:56 +0200)]
namereg: add new pa_namereg_is_valid_name_or_wildcard() call

15 years agocore: add priority field to pa_sink/pa_source
Lennart Poettering [Fri, 28 Aug 2009 21:30:41 +0000 (23:30 +0200)]
core: add priority field to pa_sink/pa_source

15 years agosconv: quieten gcc a bit
Lennart Poettering [Fri, 28 Aug 2009 21:30:15 +0000 (23:30 +0200)]
sconv: quieten gcc a bit

15 years agosuspend-on-idle: don't resume devices for corked streams
Lennart Poettering [Fri, 28 Aug 2009 21:24:37 +0000 (23:24 +0200)]
suspend-on-idle: don't resume devices for corked streams

15 years agocore: move 'flags' field into 'pa_sink_input_new_data' structure so that hooks can...
Lennart Poettering [Fri, 28 Aug 2009 21:24:09 +0000 (23:24 +0200)]
core: move 'flags' field into 'pa_sink_input_new_data' structure so that hooks can access it

15 years agoFix checking for NULL after usage
Andy Shevchenko [Fri, 28 Aug 2009 12:16:54 +0000 (15:16 +0300)]
Fix checking for NULL after usage

The pa_xmalloc calls oom() in case of NULL pointer returned by malloc() on one
hand and dereferencing of pointer is happen early than actual check on other
hand. Thus, just remove useless checks.

15 years agocore-util: Fix logic of pa_make_path_absolute()
Andy Shevchenko [Fri, 28 Aug 2009 12:16:53 +0000 (15:16 +0300)]
core-util: Fix logic of pa_make_path_absolute()

Make it works as described in commentary (when fn is NULL, pa_assert(fn) could
break logic).

15 years agoraop: Fix memory leak
Andy Shevchenko [Fri, 28 Aug 2009 12:16:52 +0000 (15:16 +0300)]
raop: Fix memory leak

The return memory of the pa_strbuf_tostring_free() should be freed.
pa_headerlist_puts() saves its own copy.

15 years agobuild-sys: make proximity helper properly suid
Lennart Poettering [Fri, 28 Aug 2009 15:10:17 +0000 (17:10 +0200)]
build-sys: make proximity helper properly suid

15 years agobluetooth: remove left-over debug line
Lennart Poettering [Fri, 28 Aug 2009 15:07:08 +0000 (17:07 +0200)]
bluetooth: remove left-over debug line

15 years agoMerge commit 'vudentz/master'
Lennart Poettering [Thu, 27 Aug 2009 15:08:15 +0000 (17:08 +0200)]
Merge commit 'vudentz/master'

15 years agoHandle DisconnectRequested in bluetooth module.
Luiz Augusto von Dentz [Thu, 27 Aug 2009 14:29:49 +0000 (11:29 -0300)]
Handle DisconnectRequested in bluetooth module.

15 years agoconvert: add sse/sse2 s16 to float32ne conversions
Wim Taymans [Wed, 26 Aug 2009 17:30:37 +0000 (19:30 +0200)]
convert: add sse/sse2 s16 to float32ne conversions

15 years agomacro: add macro to align variables
Wim Taymans [Wed, 26 Aug 2009 17:29:56 +0000 (19:29 +0200)]
macro: add macro to align variables

15 years agoremap: cleanup assembler a little
Wim Taymans [Wed, 26 Aug 2009 17:29:21 +0000 (19:29 +0200)]
remap: cleanup assembler a little

15 years agosample-util: avoid stack overrun
Wim Taymans [Tue, 25 Aug 2009 15:40:44 +0000 (17:40 +0200)]
sample-util: avoid stack overrun

The linear volume array needs enough padding when preparing the volumes for
mixing.

15 years agoremap: add sse optimized mono to stereo
Wim Taymans [Tue, 25 Aug 2009 10:27:32 +0000 (12:27 +0200)]
remap: add sse optimized mono to stereo

15 years agosconv: fix indentation
Wim Taymans [Mon, 24 Aug 2009 15:00:23 +0000 (17:00 +0200)]
sconv: fix indentation

15 years agoproplist: allow setting of zero-length data properties
Lennart Poettering [Thu, 27 Aug 2009 03:33:45 +0000 (05:33 +0200)]
proplist: allow setting of zero-length data properties

15 years agosink-input: extend comments on rewinding logic a bit
Lennart Poettering [Wed, 26 Aug 2009 22:07:15 +0000 (00:07 +0200)]
sink-input: extend comments on rewinding logic a bit

15 years agoprotocol-native: print more volume change debug messages to easy tracking down of...
Lennart Poettering [Wed, 26 Aug 2009 22:05:54 +0000 (00:05 +0200)]
protocol-native: print more volume change debug messages to easy tracking down of feedback loops

15 years agoprotocol-native: compare uint64_t variable with (uint64_t) -1 instead of (size_t...
Lennart Poettering [Wed, 26 Aug 2009 22:04:33 +0000 (00:04 +0200)]
protocol-native: compare uint64_t variable with (uint64_t) -1 instead of (size_t) -1 for compat with 32bit archs

15 years agopdispatch: various modernizations
Lennart Poettering [Wed, 26 Aug 2009 18:07:04 +0000 (20:07 +0200)]
pdispatch: various modernizations

15 years agopdispatch: add missing commands to command table
Lennart Poettering [Wed, 26 Aug 2009 18:06:24 +0000 (20:06 +0200)]
pdispatch: add missing commands to command table

15 years agollist: add PA_LLIST_FOREACH_SAFE macro for iteration that allows deleting
Lennart Poettering [Wed, 26 Aug 2009 18:05:48 +0000 (20:05 +0200)]
llist: add PA_LLIST_FOREACH_SAFE macro for iteration that allows deleting

15 years agoloopback: quieten gcc on 32bit
Lennart Poettering [Wed, 26 Aug 2009 18:05:19 +0000 (20:05 +0200)]
loopback: quieten gcc on 32bit

15 years agoloopback: update description and icons when moving loopback streams
Lennart Poettering [Wed, 26 Aug 2009 00:17:37 +0000 (02:17 +0200)]
loopback: update description and icons when moving loopback streams

15 years agoloopback: make sure a monitor can't be looped back to its sink
Lennart Poettering [Tue, 25 Aug 2009 23:52:02 +0000 (01:52 +0200)]
loopback: make sure a monitor can't be looped back to its sink

15 years agocombine: store adjust time in usec
Lennart Poettering [Tue, 25 Aug 2009 23:51:29 +0000 (01:51 +0200)]
combine: store adjust time in usec

15 years agoloopback: add loopback module for direct connections of sinks and sources
Lennart Poettering [Tue, 25 Aug 2009 23:42:17 +0000 (01:42 +0200)]
loopback: add loopback module for direct connections of sinks and sources

15 years agomacro: add PA_CLIP_SUB() for saturated subtraction
Lennart Poettering [Tue, 25 Aug 2009 23:41:34 +0000 (01:41 +0200)]
macro: add PA_CLIP_SUB() for saturated subtraction

15 years agoSolaris: debug my latest enbugging, take 2
Finn Thain [Mon, 24 Aug 2009 17:47:59 +0000 (03:47 +1000)]
Solaris: debug my latest enbugging, take 2

Prevent partially played memchunks from getting lost.
If the sink has a memblock, don't leak it when rewinding.

15 years agoMerge commit 'jprvita2/master'
Lennart Poettering [Mon, 24 Aug 2009 21:31:35 +0000 (23:31 +0200)]
Merge commit 'jprvita2/master'

15 years agoremap: fix build for non-x86 builds v0.9.16-test6
Lennart Poettering [Mon, 24 Aug 2009 15:01:44 +0000 (17:01 +0200)]
remap: fix build for non-x86 builds

15 years agodetect: recommend module-udev-detect instead of module-hal-detect
Lennart Poettering [Mon, 24 Aug 2009 14:35:19 +0000 (16:35 +0200)]
detect: recommend module-udev-detect instead of module-hal-detect

15 years agobuild-sys: add missing header files to tarball
Lennart Poettering [Mon, 24 Aug 2009 02:02:08 +0000 (04:02 +0200)]
build-sys: add missing header files to tarball

15 years agobluetooth: add discover of bluetooth sources
João Paulo Rechi Vita [Sat, 25 Jul 2009 00:44:36 +0000 (21:44 -0300)]
bluetooth: add discover of bluetooth sources

15 years agobluetooth: handle bluetooth source
João Paulo Rechi Vita [Thu, 30 Jul 2009 06:18:15 +0000 (03:18 -0300)]
bluetooth: handle bluetooth source

15 years agoi18n: run make update-po
Lennart Poettering [Mon, 24 Aug 2009 01:32:48 +0000 (03:32 +0200)]
i18n: run make update-po

15 years agoMerge commit 'origin/master-tx'
Lennart Poettering [Mon, 24 Aug 2009 01:31:03 +0000 (03:31 +0200)]
Merge commit 'origin/master-tx'

15 years agoalsa: automatically decrease watermark after a time of stability
Lennart Poettering [Mon, 24 Aug 2009 01:26:56 +0000 (03:26 +0200)]
alsa: automatically decrease watermark after a time of stability

15 years agoalsa: increase interval between smoother updates exponentially for alsa sources,...
Lennart Poettering [Sun, 23 Aug 2009 20:34:42 +0000 (22:34 +0200)]
alsa: increase interval between smoother updates exponentially for alsa sources, following the scheme for sinks

15 years agoport a few things over to use xmalloc and friends instead of low-level libc malloc...
Lennart Poettering [Sun, 23 Aug 2009 19:49:37 +0000 (21:49 +0200)]
port a few things over to use xmalloc and friends instead of low-level libc malloc/free directly

15 years agoSending translation for Spanish
beckerde [Sun, 23 Aug 2009 13:44:24 +0000 (13:44 +0000)]
Sending translation for Spanish

15 years agoMerge commit 'wtay/optimize'
Lennart Poettering [Sat, 22 Aug 2009 22:06:35 +0000 (00:06 +0200)]
Merge commit 'wtay/optimize'

15 years agoudev: check busy status of alsa cards before loading alsa modules and hence initiatin...
Lennart Poettering [Sat, 22 Aug 2009 21:10:45 +0000 (23:10 +0200)]
udev: check busy status of alsa cards before loading alsa modules and hence initiating profile probing

15 years agoudev: process all inotify events queued up, not just the first one in the queue
Lennart Poettering [Sat, 22 Aug 2009 19:59:17 +0000 (21:59 +0200)]
udev: process all inotify events queued up, not just the first one in the queue

15 years agoSending translation for Polish
raven [Sat, 22 Aug 2009 10:13:32 +0000 (10:13 +0000)]
Sending translation for Polish

15 years agocore: relex validity checks when destructing half-set up source outputs/sink inputs
Lennart Poettering [Sat, 22 Aug 2009 02:04:23 +0000 (04:04 +0200)]
core: relex validity checks when destructing half-set up source outputs/sink inputs

15 years agoladspa/remap: handle failing stream moves properly
Lennart Poettering [Sat, 22 Aug 2009 02:03:31 +0000 (04:03 +0200)]
ladspa/remap: handle failing stream moves properly

15 years agoadd usergroup-test to .gitignore
Lennart Poettering [Sat, 22 Aug 2009 01:17:24 +0000 (03:17 +0200)]
add usergroup-test to .gitignore

15 years agodaemon: don't free script_commands twice
Lennart Poettering [Sat, 22 Aug 2009 01:16:47 +0000 (03:16 +0200)]
daemon: don't free script_commands twice

15 years agocore: Remove wrong doc on how to free returned data
Ted Percival [Fri, 21 Aug 2009 23:05:41 +0000 (17:05 -0600)]
core: Remove wrong doc on how to free returned data

15 years agoSolaris: fixed latency (resent)
Finn Thain [Fri, 21 Aug 2009 03:18:40 +0000 (13:18 +1000)]
Solaris: fixed latency (resent)

Set a fixed latency based on the given buffer size, which is constrained to
the 128 KB limit on buffered writes. Also fix an error path.

15 years agoSolaris: use smoother (resent)
Finn Thain [Fri, 21 Aug 2009 03:17:03 +0000 (13:17 +1000)]
Solaris: use smoother (resent)

Make use of the smoother, just in case.

15 years agoSolaris: build fixes (resent)
Finn Thain [Fri, 21 Aug 2009 03:15:38 +0000 (13:15 +1000)]
Solaris: build fixes (resent)

Fix bit rot due to recent flat volume changes.

15 years agoSolaris: bootstrap portability
Finn Thain [Fri, 21 Aug 2009 08:13:11 +0000 (18:13 +1000)]
Solaris: bootstrap portability

On Fri, 21 Aug 2009, Colin Guthrie wrote:

>
> Just put an echo statement in there too. Should cover the bases for everyone.

Something like this?

15 years agocore: Add thread-safe group info functions with dynamic buffers
Ted Percival [Fri, 21 Aug 2009 22:02:57 +0000 (16:02 -0600)]
core: Add thread-safe group info functions with dynamic buffers

Provides getgrgid, getgrnam, getpwuid & getpwnam replacements that are
thread safe (a la getgrgid_r() and friends) that internally
handle allocating big-enough buffers to avoid ERANGE errors
on large users or groups.

15 years agoi18n: run make update-po
Lennart Poettering [Fri, 21 Aug 2009 22:09:14 +0000 (00:09 +0200)]
i18n: run make update-po

15 years agoMerge commit 'origin/master-tx'
Lennart Poettering [Fri, 21 Aug 2009 22:08:33 +0000 (00:08 +0200)]
Merge commit 'origin/master-tx'

15 years agodaemon: fix leak of script_commands
Scott Reeves [Fri, 21 Aug 2009 21:59:39 +0000 (23:59 +0200)]
daemon: fix leak of script_commands

15 years agoudev: tell inotify to actually inform us about ACL changes
Lennart Poettering [Fri, 21 Aug 2009 21:24:40 +0000 (23:24 +0200)]
udev: tell inotify to actually inform us about ACL changes

15 years agoudev: watch for both ACL changes and processes closing devices
Lennart Poettering [Fri, 21 Aug 2009 20:49:23 +0000 (22:49 +0200)]
udev: watch for both ACL changes and processes closing devices

15 years agoudev: don't access string after free()
Lennart Poettering [Fri, 21 Aug 2009 20:11:38 +0000 (22:11 +0200)]
udev: don't access string after free()

15 years agoudev: always verify access before loading modules
Lennart Poettering [Fri, 21 Aug 2009 20:06:23 +0000 (22:06 +0200)]
udev: always verify access before loading modules

15 years agogconf: use correct path for gconf-helper tool when running from build tree
Lennart Poettering [Fri, 21 Aug 2009 20:05:27 +0000 (22:05 +0200)]
gconf: use correct path for gconf-helper tool when running from build tree

15 years agoobject: speed up type verification by not relying on strcmp()
Lennart Poettering [Fri, 21 Aug 2009 19:27:44 +0000 (21:27 +0200)]
object: speed up type verification by not relying on strcmp()

Instead of using string contents for type identification use the address
of a constant string array. This should speed up type verifications a
little sind we only need to compare one machine word instead of a full
string. Also, this saves a few strings.

To make clear that types must be compared via address and not string
contents 'type_name' is now called 'type_id'.

This also simplifies the macros for declaring and defining public and
private subclasses.

15 years agoSending translation for Brazilian Portuguese
igor [Fri, 21 Aug 2009 14:27:24 +0000 (14:27 +0000)]
Sending translation for Brazilian Portuguese

15 years agoudev: when a device appears that we cannot access right-away try again later on inotify
Lennart Poettering [Fri, 21 Aug 2009 12:55:05 +0000 (14:55 +0200)]
udev: when a device appears that we cannot access right-away try again later on inotify

15 years agoalsa: leave headphone jack enabled in normal mixer paths
Lennart Poettering [Fri, 21 Aug 2009 01:45:58 +0000 (03:45 +0200)]
alsa: leave headphone jack enabled in normal mixer paths

15 years agocombine: quieten gcc a bit
Lennart Poettering [Fri, 21 Aug 2009 01:45:17 +0000 (03:45 +0200)]
combine: quieten gcc a bit

15 years agoadjust various data/library paths automatically if we are run from a build tree
Lennart Poettering [Fri, 21 Aug 2009 01:43:53 +0000 (03:43 +0200)]
adjust various data/library paths automatically if we are run from a build tree

15 years agoladspa: forward volume changes from ladspa sink to stream and hence via flat volume...
Lennart Poettering [Fri, 21 Aug 2009 00:59:26 +0000 (02:59 +0200)]
ladspa: forward volume changes from ladspa sink to stream and hence via flat volume logic to master sink

15 years agosink-input: add callbacks that are called whenever the mute/volume changes
Lennart Poettering [Fri, 21 Aug 2009 00:56:17 +0000 (02:56 +0200)]
sink-input: add callbacks that are called whenever the mute/volume changes

15 years agoremap: make the MMX code pretier
Wim Taymans [Thu, 20 Aug 2009 18:00:50 +0000 (20:00 +0200)]
remap: make the MMX code pretier

15 years agoremap: add MMX mono to stereo
Wim Taymans [Thu, 20 Aug 2009 17:46:06 +0000 (19:46 +0200)]
remap: add MMX mono to stereo

15 years agoremap: init the do_remap function to NULL
Wim Taymans [Thu, 20 Aug 2009 16:32:51 +0000 (18:32 +0200)]
remap: init the do_remap function to NULL

15 years agoremap: allow specialisations to install NULL
Wim Taymans [Thu, 20 Aug 2009 16:29:02 +0000 (18:29 +0200)]
remap: allow specialisations to install NULL

Fallback to the default C implementation when the remap init function did not
set a function.

15 years agoremap: move remapping code in separate file
Wim Taymans [Thu, 20 Aug 2009 16:23:42 +0000 (18:23 +0200)]
remap: move remapping code in separate file

Move the remapping code into a separate file. Have functions to install custom
init functions that can install optimized versions, when they want.

15 years agoresamples; refactor the channel remapping bits
Wim Taymans [Thu, 20 Aug 2009 15:54:45 +0000 (17:54 +0200)]
resamples; refactor the channel remapping bits

Move the channel remapping bits into a separate structure. We'll make this
structure global so that optimized versions can use it to perform the channel
remapping.

15 years agosconv: allow for setting custom functions
Wim Taymans [Thu, 20 Aug 2009 13:50:02 +0000 (15:50 +0200)]
sconv: allow for setting custom functions

Add methods to override the default conversion functions.

15 years agoalsa-sink: reduce the amount of smoother updates
Wim Taymans [Thu, 20 Aug 2009 11:40:27 +0000 (13:40 +0200)]
alsa-sink: reduce the amount of smoother updates

Exponentially increase the amount of time between smoother updates. We start
with a 2ms interval and increase up to 200ms intervals.
Smoother updates and the resulting linear regression take a fair amount of CPU
so we want to reduce the amount of updates.

15 years agosvolume: cleanups
Wim Taymans [Thu, 20 Aug 2009 10:30:48 +0000 (12:30 +0200)]
svolume: cleanups

Use PA_MAX
Use pa_rtclock_now() for benchmarks

15 years agowhitespace fixes
Wim Taymans [Thu, 20 Aug 2009 08:56:20 +0000 (10:56 +0200)]
whitespace fixes

15 years agoresampler: avoid some multiplies when we can
Wim Taymans [Wed, 19 Aug 2009 18:47:48 +0000 (20:47 +0200)]
resampler: avoid some multiplies when we can

15 years agosvolume: add comment
Wim Taymans [Wed, 19 Aug 2009 18:00:28 +0000 (20:00 +0200)]
svolume: add comment

15 years agoarm: implement ARM cpu detection
Wim Taymans [Wed, 19 Aug 2009 17:51:11 +0000 (19:51 +0200)]
arm: implement ARM cpu detection

15 years agox86: keep the cpu flags local
Wim Taymans [Wed, 19 Aug 2009 17:50:42 +0000 (19:50 +0200)]
x86: keep the cpu flags local

15 years agosvolume: fix compilation in 32bits
Wim Taymans [Wed, 19 Aug 2009 16:52:28 +0000 (18:52 +0200)]
svolume: fix compilation in 32bits

15 years agosample: manually inline table lookups
Wim Taymans [Wed, 19 Aug 2009 15:27:17 +0000 (17:27 +0200)]
sample: manually inline table lookups

Manually inline some table lookups to avoid excessive calls to
pa_sample_spec_valid().

15 years agoresampler: fix identity check
Wim Taymans [Wed, 19 Aug 2009 15:24:23 +0000 (17:24 +0200)]
resampler: fix identity check

Fix the identity matrix check for mono to stereo.
Help the compiler generate better code for the C implementation of the channel
remapping code.

15 years agoresample: fix counters
Wim Taymans [Wed, 19 Aug 2009 14:23:55 +0000 (16:23 +0200)]
resample: fix counters

15 years agoresample: refactor the channel remapping a little
Wim Taymans [Wed, 19 Aug 2009 14:15:18 +0000 (16:15 +0200)]
resample: refactor the channel remapping a little

Factor out the channel remap matrix code into a separate function.
Keep a pointer to the channel remapping function so we can install custom
functions.
Catch the common mono->stereo remapping case and install a custom, more
optimized function.

15 years agosvolume: add CPU guards around code
Wim Taymans [Wed, 19 Aug 2009 14:09:48 +0000 (16:09 +0200)]
svolume: add CPU guards around code

Mark code that should only be compiled on x86 CPUs with proper defines.

15 years agosvolume: add ARM optimized volume scaling
Wim Taymans [Wed, 19 Aug 2009 14:09:14 +0000 (16:09 +0200)]
svolume: add ARM optimized volume scaling

15 years agosvolume: remove unneeded compare
Wim Taymans [Wed, 19 Aug 2009 13:56:44 +0000 (15:56 +0200)]
svolume: remove unneeded compare

We don't need the compare because the sub operation already set the right flags
for us.