profile/ivi/pulseaudio.git
17 years agospeed up semaphore allocation with an flist
Lennart Poettering [Fri, 28 Sep 2007 00:29:51 +0000 (00:29 +0000)]
speed up semaphore allocation with an flist

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1909 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoUse Linux eventfd() if kernel supports it
Lennart Poettering [Wed, 26 Sep 2007 22:50:08 +0000 (22:50 +0000)]
Use Linux eventfd() if kernel supports it

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1908 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix build with compilers that lack __thread
Lennart Poettering [Wed, 26 Sep 2007 13:33:25 +0000 (13:33 +0000)]
fix build with compilers that lack __thread

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1907 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake sure when can shutdown PA cleanly without segfault
Lennart Poettering [Tue, 25 Sep 2007 01:58:16 +0000 (01:58 +0000)]
make sure when can shutdown PA cleanly without segfault

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1906 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agowork around newest open() magic in fedora glibc
Lennart Poettering [Tue, 25 Sep 2007 00:53:49 +0000 (00:53 +0000)]
work around newest open() magic in fedora glibc

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1905 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix make dist
Lennart Poettering [Tue, 25 Sep 2007 00:45:57 +0000 (00:45 +0000)]
fix make dist

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1904 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix suspending in module-combine.c
Lennart Poettering [Mon, 24 Sep 2007 23:53:58 +0000 (23:53 +0000)]
fix suspending in module-combine.c

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1903 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years ago* decouple suspending of monitor sources and their sinks
Lennart Poettering [Mon, 24 Sep 2007 23:32:52 +0000 (23:32 +0000)]
* decouple suspending of monitor sources and their sinks
* implement resume-on-uncork

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1902 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoonly post data into the monitor source when it is not suspended
Lennart Poettering [Mon, 24 Sep 2007 23:32:01 +0000 (23:32 +0000)]
only post data into the monitor source when it is not suspended

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1901 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years ago* add new state changed hook for streams
Lennart Poettering [Mon, 24 Sep 2007 23:31:22 +0000 (23:31 +0000)]
* add new state changed hook for streams
* update sink->n_corked properly when moving streams

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1900 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix IDLE vs. RUNNING state handling of sinks/sources when changing cork status for...
Lennart Poettering [Mon, 24 Sep 2007 22:41:00 +0000 (22:41 +0000)]
fix IDLE vs. RUNNING state handling of sinks/sources when changing cork status for streams

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1899 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agorework zeroconf service publishing, to use synchronous hooks instead of asynchronous...
Lennart Poettering [Mon, 24 Sep 2007 21:49:02 +0000 (21:49 +0000)]
rework zeroconf service publishing, to use synchronous hooks instead of asynchronous subscription events. Don't push autoload entries anymore.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1898 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd hooks for name/description changes of sinks/source and streams
Lennart Poettering [Mon, 24 Sep 2007 21:47:22 +0000 (21:47 +0000)]
add hooks for name/description changes of sinks/source and streams

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1897 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix stream corking: ignore pa_sink_input() when we are in corked state
Lennart Poettering [Mon, 24 Sep 2007 17:14:00 +0000 (17:14 +0000)]
fix stream corking: ignore pa_sink_input() when we are in corked state

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1896 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodon't count streams using the monitor source in pa_sink_used_by(), because this would...
Lennart Poettering [Mon, 24 Sep 2007 16:24:23 +0000 (16:24 +0000)]
don't count streams using the monitor source in pa_sink_used_by(), because this would disallow suspending a sink ehn an rtp stream is connected

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1895 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodrop the PA_SOURCE_CAN_SUSPEND and PA_SINK_CAN_SUSPEND flags, since they were a bad...
Lennart Poettering [Mon, 24 Sep 2007 16:10:43 +0000 (16:10 +0000)]
drop the PA_SOURCE_CAN_SUSPEND and PA_SINK_CAN_SUSPEND flags, since they were a bad idea in the first place. All sinks/sources are now *required* to handle suspending in one way or another. Luckily all current sink/source implementations handle it fine anyway.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1894 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoinstead of using the mixer ioctl()s on the dsp fd, open a seperate fd for the mixer...
Lennart Poettering [Sun, 23 Sep 2007 21:03:24 +0000 (21:03 +0000)]
instead of using the mixer ioctl()s on the dsp fd, open a seperate fd for the mixer. This allows us the keep the mixer fd open while closing the dsp device while suspending.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1893 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agouse O_NOFOLLOW when creating lock files, too
Lennart Poettering [Sun, 23 Sep 2007 19:30:56 +0000 (19:30 +0000)]
use O_NOFOLLOW when creating lock files, too

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1892 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agouse O_NOFOLLOW when creating PID file, to avoid symlink vulnerability
Lennart Poettering [Sun, 23 Sep 2007 19:23:44 +0000 (19:23 +0000)]
use O_NOFOLLOW when creating PID file, to avoid symlink vulnerability

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1891 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoAdded an assertion for the case when the sink programmer hasn't installed the thread_...
Tanu Kaskinen [Sun, 23 Sep 2007 14:51:07 +0000 (14:51 +0000)]
Added an assertion for the case when the sink programmer hasn't installed the thread_mq properly.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1890 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoComment typo fix.
Tanu Kaskinen [Sun, 23 Sep 2007 14:39:39 +0000 (14:39 +0000)]
Comment typo fix.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1889 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix the assignment of control values by using the right variable for indexing.
Tanu Kaskinen [Sat, 22 Sep 2007 08:39:07 +0000 (08:39 +0000)]
Fix the assignment of control values by using the right variable for indexing.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1888 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoCorrect the parameter positions with the pa_cvolume_set() call.
Tanu Kaskinen [Sat, 22 Sep 2007 07:31:29 +0000 (07:31 +0000)]
Correct the parameter positions with the pa_cvolume_set() call.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1887 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agominor optimization
Lennart Poettering [Sat, 22 Sep 2007 02:00:32 +0000 (02:00 +0000)]
minor optimization

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1886 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoinclude the name of the master sink in the name for piggy-backed virtual sinks
Lennart Poettering [Sat, 22 Sep 2007 01:35:32 +0000 (01:35 +0000)]
include the name of the master sink in the name for piggy-backed virtual sinks

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1885 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoprefix by order macros with PA_
Lennart Poettering [Sat, 22 Sep 2007 01:16:14 +0000 (01:16 +0000)]
prefix by order macros with PA_

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1884 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agorework a couple of sample type converters, to actually work
Lennart Poettering [Sat, 22 Sep 2007 00:26:18 +0000 (00:26 +0000)]
rework a couple of sample type converters, to actually work

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1883 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years ago- rework volume adjustment code to not require fp
Lennart Poettering [Sat, 22 Sep 2007 00:25:17 +0000 (00:25 +0000)]
- rework volume adjustment code to not require fp
- don't hit an assert when we cannot do a volume adjustment, instead, print a warning and go on

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1882 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix selection of working format
Lennart Poettering [Sat, 22 Sep 2007 00:22:36 +0000 (00:22 +0000)]
fix selection of working format

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1881 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake use of byte swap builtins of gcc if they are available
Lennart Poettering [Sat, 22 Sep 2007 00:21:08 +0000 (00:21 +0000)]
make use of byte swap builtins of gcc if they are available

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1880 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd test program for the resampler
Lennart Poettering [Sat, 22 Sep 2007 00:19:56 +0000 (00:19 +0000)]
add test program for the resampler

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1879 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoallow _unlink() functions to be called as many times as people want, even before...
Lennart Poettering [Fri, 21 Sep 2007 13:32:00 +0000 (13:32 +0000)]
allow _unlink() functions to be called as many times as people want, even before _put() was called

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1878 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoclamp sample data to -1 .. 1, before passing it to the plugin; if a control port...
Lennart Poettering [Fri, 21 Sep 2007 00:16:34 +0000 (00:16 +0000)]
clamp sample data to -1 .. 1, before passing it to the plugin; if a control port data specification is left empty, initialize with the default value of the plugin

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1877 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd CLAMP macro
Lennart Poettering [Fri, 21 Sep 2007 00:14:20 +0000 (00:14 +0000)]
add CLAMP macro

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1876 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodon't segfault when the master changes
Lennart Poettering [Thu, 20 Sep 2007 22:01:58 +0000 (22:01 +0000)]
don't segfault when the master changes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1875 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoproperly detach/attach when moving sink inputs
Lennart Poettering [Thu, 20 Sep 2007 22:01:07 +0000 (22:01 +0000)]
properly detach/attach when moving sink inputs

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1874 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agorework module-combine again
Lennart Poettering [Thu, 20 Sep 2007 20:33:34 +0000 (20:33 +0000)]
rework module-combine again

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1873 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomaintain the attach status in a boolean variable 'attach' accessible from the IO...
Lennart Poettering [Thu, 20 Sep 2007 20:30:03 +0000 (20:30 +0000)]
maintain the attach status in a boolean variable 'attach' accessible from the IO thread for sink_inputs/source_outputs

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1872 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agorender new data always in the master sink's thread, fixing missing locking
Lennart Poettering [Wed, 19 Sep 2007 22:21:55 +0000 (22:21 +0000)]
render new data always in the master sink's thread, fixing missing locking

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1871 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake sure we initialize thread private data before we move our ghost sink to the...
Lennart Poettering [Wed, 19 Sep 2007 21:20:15 +0000 (21:20 +0000)]
make sure we initialize thread private data before we move our ghost sink to the rt thread, not after

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1870 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix trivial typo
Lennart Poettering [Wed, 19 Sep 2007 19:06:25 +0000 (19:06 +0000)]
fix trivial typo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1869 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix check for lrintf, make resample2.c again identical to upstream ffmpeg
Lennart Poettering [Wed, 19 Sep 2007 19:03:38 +0000 (19:03 +0000)]
fix check for lrintf, make resample2.c again identical to upstream ffmpeg

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1868 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake O_CLOEXEC, O_NONBLOCK and socket low latency fd ops more uniform: always return...
Lennart Poettering [Wed, 19 Sep 2007 00:12:01 +0000 (00:12 +0000)]
make O_CLOEXEC, O_NONBLOCK and socket low latency fd ops more uniform: always return void, name them similarly, only pass a single fd

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1867 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agocopy free_cb into a temporary variable first, to avoid compiler warning
Lennart Poettering [Wed, 19 Sep 2007 00:08:40 +0000 (00:08 +0000)]
copy free_cb into a temporary variable first, to avoid compiler warning

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1866 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofall back to plughw:, if hw: doesn't work, in the alsa source, too
Lennart Poettering [Tue, 18 Sep 2007 23:35:05 +0000 (23:35 +0000)]
fall back to plughw:, if hw: doesn't work, in the alsa source, too

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1865 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoproperly release memblock always abd as soon as possible
Lennart Poettering [Tue, 18 Sep 2007 23:24:13 +0000 (23:24 +0000)]
properly release memblock always abd as soon as possible

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1864 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake use of pa_bool_t on a few places where applicable; really start work_cb
Lennart Poettering [Tue, 18 Sep 2007 23:21:06 +0000 (23:21 +0000)]
make use of pa_bool_t on a few places where applicable; really start work_cb

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1863 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agolower SO_PRIORITY priority to 6, since this is the best we get without being root
Lennart Poettering [Tue, 18 Sep 2007 22:29:24 +0000 (22:29 +0000)]
lower SO_PRIORITY priority to 6, since this is the best we get without being root

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1862 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake rtp send socket low delay
Lennart Poettering [Tue, 18 Sep 2007 22:25:18 +0000 (22:25 +0000)]
make rtp send socket low delay

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1861 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd new pa_socket_udp_low_delay() API
Lennart Poettering [Tue, 18 Sep 2007 22:24:45 +0000 (22:24 +0000)]
add new pa_socket_udp_low_delay() API

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1860 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd two missing header file inclusions
Lennart Poettering [Tue, 18 Sep 2007 21:31:21 +0000 (21:31 +0000)]
add two missing header file inclusions

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1859 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agobug fixes for module-rtp-recv
Lennart Poettering [Tue, 18 Sep 2007 19:52:45 +0000 (19:52 +0000)]
bug fixes for module-rtp-recv

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1858 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake sure we don't call pa_source_post() for a monitor source after it was unlinked
Lennart Poettering [Tue, 18 Sep 2007 19:52:20 +0000 (19:52 +0000)]
make sure we don't call pa_source_post() for a monitor source after it was unlinked

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1857 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoIf PTHREAD_PRIO_INHERIT mutexes are not available fall back to normal mutexes
Lennart Poettering [Tue, 18 Sep 2007 19:51:26 +0000 (19:51 +0000)]
If PTHREAD_PRIO_INHERIT mutexes are not available fall back to normal mutexes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1856 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoport module-rtp-send.c to lock-free core
Lennart Poettering [Tue, 18 Sep 2007 17:41:51 +0000 (17:41 +0000)]
port module-rtp-send.c to lock-free core

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1855 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoactually close the alsa device before we try to reopen it as plughw
Lennart Poettering [Tue, 18 Sep 2007 12:53:42 +0000 (12:53 +0000)]
actually close the alsa device before we try to reopen it as plughw

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1854 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agostrtof() is a rather recent addition to C. Fall back to strtod() if it isn't
Pierre Ossman [Tue, 18 Sep 2007 10:47:03 +0000 (10:47 +0000)]
strtof() is a rather recent addition to C. Fall back to strtod() if it isn't
available.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1853 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoNSIG seems to be more common than _NSIG.
Pierre Ossman [Tue, 18 Sep 2007 10:45:54 +0000 (10:45 +0000)]
NSIG seems to be more common than _NSIG.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1852 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoEmulate lrintf with simple truncation if it isn't available.
Pierre Ossman [Tue, 18 Sep 2007 10:38:07 +0000 (10:38 +0000)]
Emulate lrintf with simple truncation if it isn't available.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1851 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMake sure the header file is only included on linux (as this is a linux-only
Pierre Ossman [Tue, 18 Sep 2007 10:36:17 +0000 (10:36 +0000)]
Make sure the header file is only included on linux (as this is a linux-only
feature).

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1850 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoNSIG is not defined by neither C99 nor POSIX so we can't rely on it.
Pierre Ossman [Tue, 18 Sep 2007 08:57:54 +0000 (08:57 +0000)]
NSIG is not defined by neither C99 nor POSIX so we can't rely on it.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1849 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd LADSPA sink than can be piggy-backed ontop of another sink
Lennart Poettering [Mon, 17 Sep 2007 22:42:20 +0000 (22:42 +0000)]
add LADSPA sink than can be piggy-backed ontop of another sink

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1848 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoprint a message when we fall back on plughw
Lennart Poettering [Mon, 17 Sep 2007 22:40:42 +0000 (22:40 +0000)]
print a message when we fall back on plughw

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1847 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd a locale-independant pa_atof() implementation
Lennart Poettering [Mon, 17 Sep 2007 22:39:51 +0000 (22:39 +0000)]
add a locale-independant pa_atof() implementation

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1846 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agohide sig2str-test
Lennart Poettering [Mon, 17 Sep 2007 22:38:39 +0000 (22:38 +0000)]
hide sig2str-test

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1845 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofall back to plughw: if hw: doesn't work
Lennart Poettering [Mon, 17 Sep 2007 17:00:50 +0000 (17:00 +0000)]
fall back to plughw: if hw: doesn't work

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1844 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoRename pa_strsignal() to pa_sig2str(), since we return the symbolical signal name...
Lennart Poettering [Mon, 17 Sep 2007 15:26:18 +0000 (15:26 +0000)]
Rename pa_strsignal() to pa_sig2str(), since we return the symbolical signal name, not a human readable string. This follows the Solaris API of sig2str() a bit. Also, add all remaining signals to the list of signal names.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1843 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodrop a couple of WARNING prefixes in log messages, since we have pa_log_warn anyway...
Lennart Poettering [Mon, 17 Sep 2007 14:03:04 +0000 (14:03 +0000)]
drop a couple of WARNING prefixes in log messages, since we have pa_log_warn anyway for marking warnings especially

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1842 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoonce.c is no longer POSIX specific. Since it is now considerably more advanced than...
Lennart Poettering [Mon, 17 Sep 2007 13:50:13 +0000 (13:50 +0000)]
once.c is no longer POSIX specific. Since it is now considerably more advanced than it used to be, use it on windows, too

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1841 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoon Linu disable lazy binding altogether
Lennart Poettering [Mon, 17 Sep 2007 13:32:46 +0000 (13:32 +0000)]
on Linu disable lazy binding altogether

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1840 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd missing initialization
Lennart Poettering [Mon, 17 Sep 2007 13:01:04 +0000 (13:01 +0000)]
add missing initialization

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1839 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoAdd a special ltdl .so loader that avoids lazy frelocations during runtime
Lennart Poettering [Mon, 17 Sep 2007 12:31:06 +0000 (12:31 +0000)]
Add a special ltdl .so loader that avoids lazy frelocations during runtime

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1838 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agouse priority inheritance on mutexes where applicable
Lennart Poettering [Mon, 17 Sep 2007 00:32:51 +0000 (00:32 +0000)]
use priority inheritance on mutexes where applicable

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1837 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd proper boolean type pa_bool_t
Lennart Poettering [Sun, 16 Sep 2007 23:28:56 +0000 (23:28 +0000)]
add proper boolean type pa_bool_t

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1836 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agouse gcc const and pure function attributes wherever applicable
Lennart Poettering [Sun, 16 Sep 2007 22:42:03 +0000 (22:42 +0000)]
use gcc const and pure function attributes wherever applicable

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1835 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd a new module module-remap-sink which can be used to remap the channel maps of...
Lennart Poettering [Sun, 16 Sep 2007 22:03:19 +0000 (22:03 +0000)]
add a new module module-remap-sink which can be used to remap the channel maps of an already existant sink. one use case is to create a virtual sink that redirects stereo data to the rear speakers of a surround card.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1834 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd a "length" argument to the seek functions, as an optimization to request a certai...
Lennart Poettering [Sun, 16 Sep 2007 22:00:38 +0000 (22:00 +0000)]
add a "length" argument to the seek functions, as an optimization to request a certain block size if any data needs to be generated. this is merely a hint.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1833 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agosplit memblocks into multiples of the mempool tile size
Lennart Poettering [Sun, 16 Sep 2007 21:58:04 +0000 (21:58 +0000)]
split memblocks into multiples of the mempool tile size

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1832 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd new API pa_mempool_block_size_max() to query the maximum tile size
Lennart Poettering [Sun, 16 Sep 2007 21:57:15 +0000 (21:57 +0000)]
add new API pa_mempool_block_size_max() to query the maximum tile size

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1831 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years ago* add a new resampler "copy" which is does not change sample rates but copies data...
Lennart Poettering [Sun, 16 Sep 2007 21:56:38 +0000 (21:56 +0000)]
* add a new resampler "copy" which is does not change sample rates but copies data unmodified from input to output.
* add a new API pa_resampler_max_block_size() which can be used to determine the maximum input buffer size for the resampler so that the bounce buffers don't grow larger then the mempool tile size

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1830 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoproperly define MAX/MIN macros
Lennart Poettering [Sun, 16 Sep 2007 21:54:12 +0000 (21:54 +0000)]
properly define MAX/MIN macros

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1829 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd missing header file changes for frame alignment apis
Lennart Poettering [Sun, 16 Sep 2007 15:10:16 +0000 (15:10 +0000)]
add missing header file changes for frame alignment apis

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1828 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agobe a little bit more elaborate on the reason why we drop to software volume control...
Lennart Poettering [Sun, 16 Sep 2007 15:09:45 +0000 (15:09 +0000)]
be a little bit more elaborate on the reason why we drop to software volume control if hw is not featureful enough for us

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1827 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd frame alignment APIs; don't require memory to be writable when silencing it ...
Lennart Poettering [Sun, 16 Sep 2007 15:05:26 +0000 (15:05 +0000)]
add frame alignment APIs; don't require memory to be writable when silencing it (required of the mmap modes drivers where the hw data needs to be silenced, although it is not writable to others)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1826 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agotrivial typo
Lennart Poettering [Sat, 15 Sep 2007 14:57:18 +0000 (14:57 +0000)]
trivial typo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1825 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agocount corked streams per sink/source and make pa_sink_used_by() return only the numbe...
Lennart Poettering [Sat, 15 Sep 2007 14:21:05 +0000 (14:21 +0000)]
count corked streams per sink/source and make pa_sink_used_by() return only the number of streams that are not corked. Introduce pa_sink_linked_by() returning the number of streams connected at all. This will allow suspending of sinks/sources when all streams connected to a sink are corked.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1824 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMove attaching/detaching from a pa_rtpoll into pa_sink proper, remove it from module...
Lennart Poettering [Fri, 14 Sep 2007 23:26:17 +0000 (23:26 +0000)]
Move attaching/detaching from a pa_rtpoll into pa_sink proper, remove it from module-combine

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1823 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agosimplify rt loops a bit by moving more code into pa_rtpoll. It is now possible to...
Lennart Poettering [Fri, 14 Sep 2007 21:51:05 +0000 (21:51 +0000)]
simplify rt loops a bit by moving more code into pa_rtpoll. It is now possible to attach "work" functions to a pa_rtpoll_item, which will be called in each loop iteration. This allows us to hide the message processing in the RT loops and to drop the seperate sink_input->process hooks. Basically, only the driver-specific code remains in the RT loops.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1822 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoexplicitly destory TLS data before destroying TLS
Lennart Poettering [Fri, 14 Sep 2007 21:05:47 +0000 (21:05 +0000)]
explicitly destory TLS data before destroying TLS

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1821 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd two new macros PA_ONCE_BEGIN and PA_ONCE_END which allow usage of pa_once without...
Lennart Poettering [Fri, 14 Sep 2007 21:04:08 +0000 (21:04 +0000)]
add two new macros PA_ONCE_BEGIN and PA_ONCE_END which allow usage of pa_once without declaring a function to be called

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1820 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agocall dbus_shutdown() before exiting, to make valgrind output more useful
Lennart Poettering [Fri, 14 Sep 2007 21:02:18 +0000 (21:02 +0000)]
call dbus_shutdown() before exiting, to make valgrind output more useful

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1819 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix two typos in reference count handling
Lennart Poettering [Fri, 14 Sep 2007 21:01:00 +0000 (21:01 +0000)]
fix two typos in reference count handling

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1818 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake newer gcc shut up
Lennart Poettering [Fri, 14 Sep 2007 17:12:25 +0000 (17:12 +0000)]
make newer gcc shut up

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1817 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoextend rtpoll API to allow registration of arbitray functions to be executed in the...
Lennart Poettering [Wed, 12 Sep 2007 22:57:29 +0000 (22:57 +0000)]
extend rtpoll API to allow registration of arbitray functions to be executed in the event loop. Add priority system for specifying the order of these functions.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1816 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd missing config.h inclusion
Lennart Poettering [Wed, 12 Sep 2007 22:54:22 +0000 (22:54 +0000)]
add missing config.h inclusion

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1815 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoreindent, and s/assert/pa_assert/g
Lennart Poettering [Wed, 12 Sep 2007 22:50:44 +0000 (22:50 +0000)]
reindent, and s/assert/pa_assert/g

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1814 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agochange pa_modargs_get_channel_map() to take an extra argument for specifying the...
Lennart Poettering [Wed, 12 Sep 2007 20:12:13 +0000 (20:12 +0000)]
change pa_modargs_get_channel_map() to take an extra argument for specifying the name of the modargs attribute to parse

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1813 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd new pa_pipe_close() API to close two fds at the same time
Lennart Poettering [Wed, 12 Sep 2007 00:17:51 +0000 (00:17 +0000)]
add new pa_pipe_close() API to close two fds at the same time

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1812 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoconsolidate close() calls to pa_close(), and make sure on every occasion that we...
Lennart Poettering [Wed, 12 Sep 2007 00:04:21 +0000 (00:04 +0000)]
consolidate close() calls to pa_close(), and make sure on every occasion that we handle failures of close() sensibly

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1811 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoon systems where we know that POSIX shm is mapped to /dev/shm, add the ability to...
Lennart Poettering [Tue, 11 Sep 2007 23:12:24 +0000 (23:12 +0000)]
on systems where we know that POSIX shm is mapped to /dev/shm, add the ability to cleanup stale SHM segments. (Right now only Linux)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1810 fefdeb5f-60dc-0310-8127-8f9354f1896f