Commit graph

1002 commits

Author SHA1 Message Date
Lennart Poettering
dfe27f6237 shm: don't complain about missing SHM segments
If two clients try to cleanup the SHM directory at the same time, they
might want to open and then delete the same segment at the same time, in
which case one client might win, the other one lose. In this case, don't
warn about ENOENT.
2010-02-19 03:29:36 +01:00
Lennart Poettering
5e2af2d3f3 fdsem: be more verbose when reading from eventfd fails.
Apperently reading from an eventfd can fail, which results in an assert
to be hit. I am not sure about the reason for the failure, but in
attempt to track down the issue the next time is hit this prints a more
useful log message.

https://bugzilla.redhat.com/attachment.cgi?id=386380
2010-02-16 03:36:44 +01:00
Lennart Poettering
96592c2115 dbus: first restart timer, then dispatch it
This makes sure that we don't access the timer after it might have been
destroyed already from the dbus timeout callback.

https://bugzilla.redhat.com/attachment.cgi?id=389952
2010-02-16 02:49:44 +01:00
Colin Guthrie
a631beeafb core: Fix macro typo - PA_SINK_IS_LINKED -> PA_SINK_INPUT_IS_LINKED 2010-02-09 22:01:08 +00:00
Lennart Poettering
84782f24c5 native: rework handling of seeks that depend on variables the client does not know anything about
All seeks/flushes that depend on the playback buffer read pointer cannot
be accounted for properly in the client since it does not know the
actual read pointer. Due to that the clients do not account for it at
all. We need do the same on the server side. And we did, but a little
bit too extreme. While we properly have not applied the changes to the
"request" counter we still do have to apply it to the "missing" counter.
This patch fixes that.
2010-01-18 01:33:04 +01:00
Daniel T Chen
fd5c802ecb Fix the following warnings (which now cause buildd failures in Ubuntu 10.04):
pulsecore/cpu-arm.c: In function 'get_cpuinfo':
pulsecore/cpu-arm.c:70: warning: implicit declaration of function 'pa_read' [-Wimplicit-function-declaration]
pulsecore/cpu-arm.c:72: warning: implicit declaration of function 'pa_close' [-Wimplicit-function-declaration]
pulsecore/cpu-arm.c: In function 'pa_cpu_init_arm':
pulsecore/cpu-arm.c:110: warning: implicit declaration of function 'pa_split_spaces' [-Wimplicit-function-declaration]
pulsecore/cpu-arm.c:110: warning: assignment makes pointer from integer without a cast
Function `pa_split_spaces' implicitly converted to pointer at pulsecore/cpu-arm.c:110

Signed-off-by: Daniel T Chen <crimsun@ubuntu.com>
2010-01-15 01:35:54 +01:00
Daniel T Chen
09c416e11f More src/pulsecore/cpu-arm.c FTBFS fixes
Fix missing argument to pa_read(), and be consistent with declaration of
state variable in pa_cpu_init_arm().

Signed-off-by: Daniel T Chen <crimsun@ubuntu.com>
2010-01-15 01:35:35 +01:00
Lennart Poettering
170812755e cpu: check for CMOV flag before using this intsruction in assembly
http://pulseaudio.org/ticket/776
2010-01-13 20:31:17 +01:00
Lennart Poettering
21b484e056 log: add an easy way to disable log rate limiting
Should help with debuggin bugs like:

https://bugzilla.redhat.com/show_bug.cgi?id=554405
2010-01-13 17:35:04 +01:00
Lennart Poettering
73ae1fce00 once: make once related variables volatile 2010-01-12 23:03:04 +01:00
Lennart Poettering
3eed219a50 core: make sure we always return a valid memblock in sink_input_pop() callbacks
https://bugzilla.redhat.com/show_bug.cgi?id=553607
2010-01-08 21:51:30 +01:00
Lennart Poettering
8d356659e6 native: fix request counter miscalculations
Do not subtract bytes the client sends us beyond what we requested from
our missing bytes counter.

This was mostly a thinko that caused servers asking for too little data
when the client initially sent more data than requested, because that
data sent too much was accounted for twice.

This commit fixes this miscalculation.

http://bugzilla.redhat.com/show_bug.cgi?id=534130
2010-01-08 20:07:34 +01:00
Lennart Poettering
2c12df9001 core: make cpuid code compile cleanly with 32bit PIC 2009-11-11 05:27:19 +01:00
Lennart Poettering
ed5af775b1 core: adjust volume only when there is actually a memory block
Fixes an assert that is hit in somne niche cases:

https://bugzilla.redhat.com/show_bug.cgi?id=533482
2009-11-11 05:27:10 +01:00
Wim Taymans
9ad567167e protocol: use the right sample rate for sources
Use the correct sample rate for reporting about the timing.
2009-11-11 05:27:04 +01:00
Lennart Poettering
1460374c06 core-util: add call to detect if we are called from within a VM 2009-11-11 05:26:16 +01:00
Wim Taymans
973a4ebdba sink: simplify silence checks 2009-11-11 05:14:56 +01:00
Lennart Poettering
732b468d66 protocol-native: if a client set volume/mute/device store it since it is user input 2009-11-11 05:14:04 +01:00
Lennart Poettering
0c31723a8b protocol-native: declare that user configured volumes are always absolute 2009-11-11 05:13:28 +01:00
Diego Elio 'Flameeyes' Pettenò
8d612d5142 Fix build when using -fweb, accept both register and memory constraints.
This was reported as Gentoo bug #287391 by Torsten Kaiser, and the fix was
suggested by Mike Frysinger.
2009-11-11 05:12:28 +01:00
Wim Taymans
cc1e90f94b svolume: fix MMX error
We need to sign extend the lower part of the multiplication before adding it to
the higher part. Makes -1 * 0xffff work again.
2009-10-30 09:07:00 +00:00
Wim Taymans
5eecd8ea7d svolume: tweak constraints for 32 bits
Tweak the constraints a little so that register starved 32bit systems
can select a stack variable for the channel paramter instead of reusing one of
the registers we're using in the code.
2009-09-23 17:18:20 +02:00
Lennart Poettering
e7686a607d core: dump proplist when creating stream similar to how we already to it for sinks/sources 2009-09-20 03:18:03 +02:00
Lennart Poettering
996051ebc1 memtrap: properly add items to linked list 2009-09-19 00:21:34 +02:00
Lennart Poettering
8ad8e393f1 namereg: choose default sink/source as soon as one becomes available 2009-09-18 22:42:37 +02:00
Lennart Poettering
9697c5dc18 memblock: don't try to reuse PA_MEMBLOCK_APPENDED memblocks since they usually are much bigger than we want them 2009-09-18 22:16:26 +02:00
Lennart Poettering
cd5d6e7b42 socket-client: modernizations 2009-09-18 22:16:25 +02:00
Lennart Poettering
c010172c66 memblock: modernizations 2009-09-18 22:16:25 +02:00
Lennart Poettering
c024aeaae9 timeval: make timeval conversion routines handle PA_USEC_INVALID special 2009-09-18 04:14:39 +02:00
Lennart Poettering
fdec460661 core-rtclock: introduce pa_timespec_store() akin pa_timeval_store() 2009-09-18 04:14:37 +02:00
Lennart Poettering
56f217f3f8 macro: introduce PA_INT_TYPE_MIN, PA_INT_TYPE_MAX, PA_INT_TYPE_SIGNED macros 2009-09-18 04:14:37 +02:00
Lennart Poettering
7b76ea3784 core-util: unify how we determine the temporary directory 2009-09-17 21:06:54 +02:00
Lennart Poettering
2d9168ceb3 Improve TMPDIR handling
Patch from 'jnelson',

http://pulseaudio.org/ticket/653
2009-09-17 20:58:36 +02:00
Lennart Poettering
231c17be03 svolume_mmx: disable test accidentaly left on 2009-09-17 01:34:02 +02:00
Lennart Poettering
4e6dce593f Merge remote branch 'wtay/optimize' 2009-09-17 01:32:03 +02:00
Lennart Poettering
e2899f8bf3 memblock: make it easy to disable mempool usage with $PULSE_MEMPOOL_DISABLE 2009-09-17 01:21:56 +02:00
Wim Taymans
3d5a572694 svolume_mmx: optimize some more
We can reorder the algortihm a bit like we do for sse so that we
don't need the contants and masking instructions. Saves 2 instructions
for the mmx code.
2009-09-16 17:14:12 +02:00
Wim Taymans
d397a82e14 svolume_sse: fix comment 2009-09-16 17:14:11 +02:00
Lennart Poettering
a015d56fac core: add an additional volume factor that is applied after resampling took place 2009-09-11 03:26:25 +02:00
Lennart Poettering
807f2a9923 native: send PA_COMMAND_PLAYBACK_BUFFER_ATTR_CHANGED messages only to clients that understand it 2009-09-10 02:15:12 +02:00
Lennart Poettering
71e066c873 simd: be more precise which SIMD optimizations we activate 2009-09-09 04:28:22 +02:00
Lennart Poettering
1f0904b800 sample-util: add pa_convert_size() call for converting sizes between two sample specs 2009-09-09 04:27:16 +02:00
Lennart Poettering
12df6860ad ratelimit: allow non-static ratelimit structs 2009-09-09 02:41:34 +02:00
Lennart Poettering
31d1d9088e protocol-native: log explicitly when someone asks us to quit 2009-09-08 23:53:28 +02:00
Lennart Poettering
31ae7deefa core-util: properly fill in exception array for pa_reset_sigs() (llvm-clang-analyzer) 2009-09-08 23:52:58 +02:00
Lennart Poettering
1516b7c047 conf-parser: properly initialize variable we free() later (llvm-clang-analyzer) 2009-09-08 23:51:39 +02:00
Lennart Poettering
3c9a09bc45 cli-command: don't necessarily ovveride failure code of files (llvm-clang-analyzer) 2009-09-08 23:51:00 +02:00
Lennart Poettering
5fd751fc2e cli-command: modernizations 2009-09-08 23:50:14 +02:00
Lennart Poettering
f5046759cd llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixes 2009-09-08 23:46:23 +02:00
Lennart Poettering
508c462841 Merge remote branch 'wtay/optimize' 2009-09-07 22:44:16 +02:00