summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
Commit message (Collapse)AuthorAgeFilesLines
* SSE/MMX: Fix problem with highpitched noise on i386David Henningsson2011-06-222-4/+20
| | | | | | | | The "rm" basm constraint doesn't work with my version of gcc (4.5.2), not even in a simple example. Since we usually only have 5 registers available on i386, force it to be memory on that architecture. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* pulsecore: Add a couple pa_asserts() on pa_tagstruct* calls.Colin Guthrie2011-06-061-0/+2
|
* streams: Fix the actual resampler method shown in debug messages.Colin Guthrie2011-06-052-0/+2
|
* rtkit: use private bus connection in order to avoid threading issues when ↵Lennart Poettering2011-05-111-1/+2
| | | | invoking pa_make_realtime()
* x11: More XCB fixes.Arnaud Fontaine2011-05-071-13/+25
| | | | | | | | | | Commit 65ef80b fixed building with xcb-util >= 0.3.8, but the reply is never checked (possible SIGSEGV if the reply is NULL) nor freed (memory leak at each call of the functions). Also, remove include and dependencies on xcb-atom, as it was only meaningful for xcb_atom_get() and STRING, and depend instead on xcb >= 1.6 for XCB_ATOM_STRING.
* x11: Fix build errors with newest xcb-util.Maciej Grela2011-05-071-9/+17
| | | | | | The xcb_atom_get functions were removed from xcb-util. Changed these to xcb_intern_atom/xcb_intern_atom_reply. Also, STRING is now XCB_ATOM_STRING.
* http: support HTTP HEADMatthijs Kooijman2011-04-151-3/+44
| | | | http://pulseaudio.org/ticket/781
* memblockq: implement new call pa_memblockq_peek_fixed_size()Lennart Poettering2011-03-282-1/+75
|
* Fighting rewinds: Reduce calls to handle_seekDavid Henningsson2011-01-311-30/+26
| | | | | | | | | If many small blocks are in queue, handle_seek is being called for every one of them, sometimes causing a rewind. Delay the call until all blocks are handled, then call handle_seek only once. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* Fighting rewinds: Seek and write data in the same messageDavid Henningsson2011-01-311-8/+12
| | | | | | | | Allow a message in the queue to perform both a seek and a post data. For clients that do not use PA_SEEK_RELATIVE (e g gstreamer), this cuts the message count - and sometimes even the rewinds - in half. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* Core: Fix incorrect check of return valueScott Reeves2011-01-231-2/+2
|
* ratelimit: fix log levels of log suppression messagesLennart Poettering2011-01-228-10/+11
| | | | | When logging a suppression message do so on the same log level as the suppressed messages.
* Fix typosZhang Wanming2010-12-202-2/+2
|
* Fix return value of pa_sndfile_format_from_stringVincent Becker2010-12-181-3/+3
| | | | This prevented to use pacat --file-format option correctly
* core: Fix variable "has_whined" value bugYang Xichuan2010-12-181-1/+1
| | | | | | | | | In the file src/pulsecore/random.c I found that the log information "Failed to get proper entropy. Falling back to seeding with current time." would never be printed. This change corrects the issue.
* build-sys: Replace dummy Makefiles with proper Makefile.am'sColin Guthrie2010-12-044-14/+40
| | | | | | | | | | | | | | | | | | | | | | | | This is needed to better support out of tree builds (including distcheck) and to ensure the necessary folders are created in the build tree on configure and also works around an intl-tools bug (https://bugs.launchpad.net/intltool/+bug/605826) The Makefile.am's used are minimal (and in some cases completely blank). At present they do not include anything interesting with the majority of the real work still done by the monolitic src/Makefile.am It may make sense to start splitting out src/Makefile.am into smaller chunks but this commit makes the minimum changes to address the issues that result from using make distcheck and other out of tree builds. Note: This 'breaks' the ability to type make in e.g. the src/modules folder and have all of PA rebuilt accordingly (this is because the static Makefiles previously present just did a "make -C ..") which was purportedly for use in emacs. But I'm sure there will be a better and more robust way to configure emacs to do your builds properly if this behaviour is still desirable.
* volume: Add explicit checks for ARMv6 instructionsArun Raghavan2010-11-281-4/+4
| | | | | | | This ensures that the build does not fail if the ssat and pkhbt instructions are not available (armv5te and below). Fixes: http://www.pulseaudio.org/ticket/790
* sink-input: Fix commentColin Guthrie2010-11-171-1/+1
|
* intended-roles: Mark devices with a form factor of 'headset' as being ↵Colin Guthrie2010-10-311-1/+2
| | | | | | | appropriate for 'phone' streams This was a result a report by Patrick Ben Koetter relating to his Logitech Wireless Headset.
* SSE/MMX/ARM: Fix high frequency noise with unusual number of channelsDavid Henningsson2010-10-133-13/+25
| | | | | | | | In the assembly optimized versions of SSE, a noise could occur when the number of channels were 3,5,6 or 7. For MMX and ARM, this could occur when the number of channels were 3. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* suspend: Do not assert when checking for device suspended status and a ↵Colin Guthrie2010-10-052-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | stream is not linked. When looping through the streams on a given device checking to see if the stream is 'active' there should be no assert if the stream is not linked, it should simply be ignored. This assert can be hit if a sink and a sink input are both created and setup but the final put calls are left to the end as is done in module-ladspa-sink. While the order of the calls in module-ladspa-sink could be altered, we should deal gracefully with the way it is now and not complain about ending up in this state. A trigger case was trivial: 1. Load a ladspa-sink. 2. Play a stream and move it to it. 3. Unload the module, then reload it. 4. Due to module-stream-restore and module-suspend-on-idle, the hook callbacks will ultimately hit this assert. Thanks to Kim Therkelsen for highlighting this issue.
* x11: Use the default screen for X11 properties.Colin Guthrie2010-09-182-20/+39
| | | | | This commit restores the functionality originally included in 65e807 by Leszek Koltunski.
* xcb: xcb_get_setup() can return 0, so make sure we check it before usingColin Guthrie2010-09-181-20/+48
|
* smoother: avoid losing precisionWim Taymans2010-09-141-3/+1
| | | | | Avoid losing precision by subtracting uint64 values before converting them to doubles.
* x11: Partially convert to XCB.Colin Guthrie2010-08-154-25/+47
| | | | | | This commit mostly converts the X11 handling to XCB. There are still some uses of XLib to deal with the X11 session handling modules, however all client-side code should now be free of XLib and thus this should fix Bug #799
* thread: name all threads so that the names appear in /proc/$PID/task/$TID/commLennart Poettering2010-05-033-4/+51
|
* socket-client: properly handle asyncns failuresJez Austin2010-03-221-1/+2
| | | | | | | | | We fail to detect when people disable IPv6 in there kernels. This patch makes sure we don't ignore this error condition. http://pulseaudio.org/ticket/752 https://bugzilla.mozilla.org/show_bug.cgi?id=533470 http://bugs.freedesktop.org/show_bug.cgi?id=25742
* core-util: ensure that we chmod only the dir we ourselves createdKees Cook2010-03-041-5/+34
|
* core: rework how stream volumes affect sink volumesLennart Poettering2010-02-231-1/+41
|
* esd,simple: use pa_memblockq_pop_missing()Lennart Poettering2010-02-232-2/+2
| | | | | | | | | | We need to use pa_memblockq_pop_missing() for all request handling, including the initial request, because otherwise the counters will be stay off during the entire runtime. This should fix: https://bugzilla.redhat.com/show_bug.cgi?id=559467
* core-util: introduce generic function pa_strip()Lennart Poettering2010-02-222-4/+25
|
* native: improve logging for buffer_attrsLennart Poettering2010-02-221-0/+18
|
* scache: when playing a sample from the cache make sure not queue them up ↵Lennart Poettering2010-02-215-19/+31
| | | | | | | when the sink is suspended libcanberra already sets the appropriate flags for uncached sample streams, we now need to make sure to set them for cached samples too.
* sample-cache: use the sample name as unmodified fallback in the properties ↵Lennart Poettering2010-02-211-1/+2
| | | | when playing a sample from the cache
* shm: don't complain about missing SHM segmentsLennart Poettering2010-02-191-1/+1
| | | | | | | 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.
* fdsem: be more verbose when reading from eventfd fails.Lennart Poettering2010-02-161-6/+35
| | | | | | | | | 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
* dbus: first restart timer, then dispatch itLennart Poettering2010-02-161-13/+16
| | | | | | | 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
* core: Fix macro typo - PA_SINK_IS_LINKED -> PA_SINK_INPUT_IS_LINKEDColin Guthrie2010-02-091-1/+1
|
* native: rework handling of seeks that depend on variables the client does ↵Lennart Poettering2010-01-184-5/+11
| | | | | | | | | | | | 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.
* Fix the following warnings (which now cause buildd failures in Ubuntu 10.04):Daniel T Chen2010-01-151-0/+1
| | | | | | | | | | | | 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>
* More src/pulsecore/cpu-arm.c FTBFS fixesDaniel T Chen2010-01-151-2/+3
| | | | | | | 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>
* cpu: check for CMOV flag before using this intsruction in assemblyLennart Poettering2010-01-133-5/+9
| | | | http://pulseaudio.org/ticket/776
* log: add an easy way to disable log rate limitingLennart Poettering2010-01-131-38/+50
| | | | | | Should help with debuggin bugs like: https://bugzilla.redhat.com/show_bug.cgi?id=554405
* once: make once related variables volatileLennart Poettering2010-01-124-10/+5
|
* core: make sure we always return a valid memblock in sink_input_pop() callbacksLennart Poettering2010-01-084-4/+18
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=553607
* native: fix request counter miscalculationsLennart Poettering2010-01-082-57/+51
| | | | | | | | | | | | | 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
* core: make cpuid code compile cleanly with 32bit PIC0.9.19-stableLennart Poettering2009-11-111-2/+6
|
* core: adjust volume only when there is actually a memory blockLennart Poettering2009-11-111-5/+6
| | | | | | Fixes an assert that is hit in somne niche cases: https://bugzilla.redhat.com/show_bug.cgi?id=533482
* protocol: use the right sample rate for sourcesWim Taymans2009-11-111-1/+1
| | | | Use the correct sample rate for reporting about the timing.
* core-util: add call to detect if we are called from within a VMLennart Poettering2009-11-112-0/+90
|