platform/upstream/pulseaudio.git
17 years agoMerge r1504 from trunk: Solaris hides inet_ntop in nsl
Lennart Poettering [Sun, 28 Oct 2007 16:53:47 +0000 (16:53 +0000)]
Merge r1504 from trunk: Solaris hides inet_ntop in nsl

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

17 years agoMerge r1505 from trunk: Make sure we link to the core to get all symbols.
Lennart Poettering [Sun, 28 Oct 2007 16:50:25 +0000 (16:50 +0000)]
Merge r1505 from trunk: Make sure we link to the core to get all symbols.

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

17 years agoMerge r1503 from trunk: Make -no-undefined actually work (and fix up error found...
Lennart Poettering [Sun, 28 Oct 2007 16:49:25 +0000 (16:49 +0000)]
Merge r1503 from trunk: Make -no-undefined actually work (and fix up error found by it).

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

17 years agoMerge r1473 from trunk (mixer ioctls on /dev/dsp)
Lennart Poettering [Sun, 28 Oct 2007 16:45:59 +0000 (16:45 +0000)]
Merge r1473 from trunk (mixer ioctls on /dev/dsp)

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

17 years agofix error handling
Lennart Poettering [Sun, 28 Oct 2007 16:35:09 +0000 (16:35 +0000)]
fix error handling

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

17 years agodon't use errno on EOF
Lennart Poettering [Sun, 28 Oct 2007 16:13:25 +0000 (16:13 +0000)]
don't use errno on EOF

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

17 years agoport module-esound-sink to new core
Lennart Poettering [Sat, 27 Oct 2007 22:07:21 +0000 (22:07 +0000)]
port module-esound-sink to new core

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

17 years agodon't use SIGRTMAX, for compatibility with valgrind which apparently uses this signal
Lennart Poettering [Sat, 27 Oct 2007 22:06:20 +0000 (22:06 +0000)]
don't use SIGRTMAX, for compatibility with valgrind which apparently uses this signal

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

17 years agominor cleanup
Lennart Poettering [Sat, 27 Oct 2007 22:05:20 +0000 (22:05 +0000)]
minor cleanup

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

17 years agominor fix to make gcc shut up
Lennart Poettering [Sat, 27 Oct 2007 16:16:01 +0000 (16:16 +0000)]
minor fix to make gcc shut up

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

17 years agominor fixups, to make the test more deterministic
Lennart Poettering [Sat, 27 Oct 2007 15:48:23 +0000 (15:48 +0000)]
minor fixups, to make the test more deterministic

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

17 years agoadd ability to "pause" the input time temporarily. don't accidently overwrite variabl...
Lennart Poettering [Sat, 27 Oct 2007 15:48:01 +0000 (15:48 +0000)]
add ability to "pause" the input time temporarily. don't accidently overwrite variables we still need.

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

17 years agomodernize pa_iochannel a bit, add pa_iochannel_get_send_fd()
Lennart Poettering [Sat, 27 Oct 2007 12:59:59 +0000 (12:59 +0000)]
modernize pa_iochannel a bit, add pa_iochannel_get_send_fd()

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

17 years agoadd missing pa_smoother destructor
Lennart Poettering [Sat, 27 Oct 2007 12:58:54 +0000 (12:58 +0000)]
add missing pa_smoother destructor

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

17 years agoadd pa_rtclock_usec() API
Lennart Poettering [Sat, 27 Oct 2007 12:58:24 +0000 (12:58 +0000)]
add pa_rtclock_usec() API

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

17 years agoadd pa_timeval_load() API
Lennart Poettering [Sat, 27 Oct 2007 12:57:57 +0000 (12:57 +0000)]
add pa_timeval_load() API

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

17 years agohide smoother test
Lennart Poettering [Fri, 26 Oct 2007 14:47:51 +0000 (14:47 +0000)]
hide smoother test

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

17 years agoAdd "support" for plugins that have control output ports, i.e. don't crash on them...
Tanu Kaskinen [Thu, 25 Oct 2007 05:49:11 +0000 (05:49 +0000)]
Add "support" for plugins that have control output ports, i.e. don't crash on them anymore (the plugins correctly assume that every port is connected to a buffer, so we connect them to a dummy buffer that isn't used anywhere).

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

17 years agoA couple of comment typo fixes.
Tanu Kaskinen [Thu, 25 Oct 2007 05:36:02 +0000 (05:36 +0000)]
A couple of comment typo fixes.

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

17 years agofix alsa mmap initialization bogosity, discovered by Jyri Sarha
Lennart Poettering [Wed, 24 Oct 2007 13:30:47 +0000 (13:30 +0000)]
fix alsa mmap initialization bogosity, discovered by Jyri Sarha

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

17 years agoadd better time interpolator: use linear regression to determine gradient from
Lennart Poettering [Tue, 23 Oct 2007 22:55:56 +0000 (22:55 +0000)]
add better time interpolator: use linear regression to determine gradient from
measurements, predict a short distance ahead, and smoothen estimation function
with 3rd degree spline interpolation.

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

17 years agoadd definition of PA_USEC_PER_MSEC
Lennart Poettering [Tue, 23 Oct 2007 22:50:39 +0000 (22:50 +0000)]
add definition of PA_USEC_PER_MSEC

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

17 years agoproperly copy error string
Lennart Poettering [Tue, 23 Oct 2007 00:07:52 +0000 (00:07 +0000)]
properly copy error string

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

17 years agoalso port over JACK source to new core
Lennart Poettering [Mon, 22 Oct 2007 22:39:51 +0000 (22:39 +0000)]
also port over JACK source to new core

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

17 years agoenable jack sink in Makefile
Lennart Poettering [Mon, 22 Oct 2007 21:49:14 +0000 (21:49 +0000)]
enable jack sink in Makefile

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

17 years agoPort JACK sink module over from old core
Lennart Poettering [Mon, 22 Oct 2007 21:48:55 +0000 (21:48 +0000)]
Port JACK sink module over from old core

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

17 years agominor fixup
Lennart Poettering [Mon, 22 Oct 2007 21:48:34 +0000 (21:48 +0000)]
minor fixup

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

17 years agoadd interleaving/deinterleaving APIs
Lennart Poettering [Mon, 22 Oct 2007 21:48:16 +0000 (21:48 +0000)]
add interleaving/deinterleaving APIs

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

17 years agoProperly handle if ALSA sends us an POLLERR event, this should allow us to survive...
Lennart Poettering [Wed, 17 Oct 2007 16:54:46 +0000 (16:54 +0000)]
Properly handle if ALSA sends us an POLLERR event, this should allow us to survive a system suspend cycle better

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

17 years agofix url
Lennart Poettering [Mon, 15 Oct 2007 14:38:16 +0000 (14:38 +0000)]
fix url

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

17 years agoadd missing poll.h inclusion
Lennart Poettering [Sun, 7 Oct 2007 13:57:35 +0000 (13:57 +0000)]
add missing poll.h inclusion

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

17 years agoadd missing poll.h inclusion
Lennart Poettering [Sun, 7 Oct 2007 13:57:20 +0000 (13:57 +0000)]
add missing poll.h inclusion

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

17 years agoadd missing poll.h inclusion
Lennart Poettering [Sun, 7 Oct 2007 13:56:50 +0000 (13:56 +0000)]
add missing poll.h inclusion

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

17 years agos/timespec/timeval
Lennart Poettering [Sun, 7 Oct 2007 13:56:07 +0000 (13:56 +0000)]
s/timespec/timeval

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

17 years agofix build
Lennart Poettering [Sun, 7 Oct 2007 13:55:37 +0000 (13:55 +0000)]
fix build

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

17 years agoadd new API function pa_timeval_store()
Lennart Poettering [Sun, 7 Oct 2007 13:54:49 +0000 (13:54 +0000)]
add new API function pa_timeval_store()

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

17 years agoFix build; change return value of pa_rtclock_hrtimer() to pa_bool
Lennart Poettering [Sun, 7 Oct 2007 13:54:15 +0000 (13:54 +0000)]
Fix build; change return value of pa_rtclock_hrtimer() to pa_bool

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

17 years agofix poll.h check, bad boy ossman broke
Lennart Poettering [Thu, 4 Oct 2007 22:41:33 +0000 (22:41 +0000)]
fix poll.h check, bad boy ossman broke

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

17 years agoDon't call pa_rtsig_configure() when we lack the necessary defines.
Pierre Ossman [Wed, 3 Oct 2007 15:00:36 +0000 (15:00 +0000)]
Don't call pa_rtsig_configure() when we lack the necessary defines.

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

17 years agomodule_ladspa used libltdl so make sure it links against it.
Pierre Ossman [Wed, 3 Oct 2007 15:00:13 +0000 (15:00 +0000)]
module_ladspa used libltdl so make sure it links against it.

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

17 years agoPlatform dependent semaphore implementation for Windows.
Pierre Ossman [Wed, 3 Oct 2007 14:48:40 +0000 (14:48 +0000)]
Platform dependent semaphore implementation for Windows.

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

17 years agoAssorted minor Windows compatibility fixes for recent code updates.
Pierre Ossman [Wed, 3 Oct 2007 14:47:26 +0000 (14:47 +0000)]
Assorted minor Windows compatibility fixes for recent code updates.

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

17 years agoAdd stubs when RT signals aren't available.
Pierre Ossman [Wed, 3 Oct 2007 14:46:36 +0000 (14:46 +0000)]
Add stubs when RT signals aren't available.

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

17 years agoAdapt rtpoll and friends to Windows by replacing timespec with timeval and
Pierre Ossman [Wed, 3 Oct 2007 14:43:56 +0000 (14:43 +0000)]
Adapt rtpoll and friends to Windows by replacing timespec with timeval and
add a fallback when clock_gettime() isn't available.

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

17 years agoReplace all references to sys/poll.h with poll.h as that's what POSIX defines.
Pierre Ossman [Wed, 3 Oct 2007 14:41:21 +0000 (14:41 +0000)]
Replace all references to sys/poll.h with poll.h as that's what POSIX defines.

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

17 years agoupdate native protocol to make use of pa_memblockq_pop_missing
Lennart Poettering [Mon, 1 Oct 2007 16:42:59 +0000 (16:42 +0000)]
update native protocol to make use of pa_memblockq_pop_missing

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

17 years agoMove request size handling into pa_memblockq, function pa_memblockq_pop_missing()
Lennart Poettering [Mon, 1 Oct 2007 16:41:50 +0000 (16:41 +0000)]
Move request size handling into pa_memblockq, function pa_memblockq_pop_missing()

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

17 years agoFix race condition between IO thread creation and pa_sink_put(). Move activation...
Lennart Poettering [Mon, 1 Oct 2007 16:39:04 +0000 (16:39 +0000)]
Fix race condition between IO thread creation and pa_sink_put(). Move activation of rtpoll fds when we change the state INIT->IDLE.

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

17 years agofix trivial typo
Lennart Poettering [Mon, 1 Oct 2007 00:44:29 +0000 (00:44 +0000)]
fix trivial typo

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

17 years agofix silence initializer for alaw and ulaw
Lennart Poettering [Mon, 1 Oct 2007 00:16:24 +0000 (00:16 +0000)]
fix silence initializer for alaw and ulaw

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

17 years agoFixed PA_GCC_CONST definition.
Tanu Kaskinen [Sun, 30 Sep 2007 13:19:26 +0000 (13:19 +0000)]
Fixed PA_GCC_CONST definition.

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

17 years agoUpdate module-solaris to new structure.
Pierre Ossman [Fri, 28 Sep 2007 14:01:25 +0000 (14:01 +0000)]
Update module-solaris to new structure.

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

17 years agotreat timer_enabled like a real, grown-up boolean variable
Lennart Poettering [Fri, 28 Sep 2007 13:15:11 +0000 (13:15 +0000)]
treat timer_enabled like a real, grown-up boolean variable

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

17 years agorework module-combine once again. We now run the data generation always in a seperate...
Lennart Poettering [Fri, 28 Sep 2007 13:02:28 +0000 (13:02 +0000)]
rework module-combine once again. We now run the data generation always in a seperate thread. This should help use to avoid all the awful race conditions we had in previously

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

17 years agoMove the poll() call outside the #ifdef checking for ppoll, since we want the poll...
Lennart Poettering [Fri, 28 Sep 2007 13:00:35 +0000 (13:00 +0000)]
Move the poll() call outside the #ifdef checking for ppoll, since we want the poll in all cases. Prior to this change the check for negative return values of poll/ppoll was never actually executed when ppoll() was available

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

17 years agouse the full range of RTSIGS for our stuff
Lennart Poettering [Fri, 28 Sep 2007 12:53:17 +0000 (12:53 +0000)]
use the full range of RTSIGS for our stuff

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

17 years agoAllocate rtsigs from back to front, to avoid clashes with other libraries makeing...
Lennart Poettering [Fri, 28 Sep 2007 12:52:47 +0000 (12:52 +0000)]
Allocate rtsigs from back to front, to avoid clashes with other libraries makeing use of rtsigs

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

17 years agoonly do IO if we are RUNNING or IDLE, but not when we are in INIT
Lennart Poettering [Fri, 28 Sep 2007 12:22:56 +0000 (12:22 +0000)]
only do IO if we are RUNNING or IDLE, but not when we are in INIT

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

17 years agoIncorrectly used str2sig() instead of sig2str().
Pierre Ossman [Fri, 28 Sep 2007 09:23:05 +0000 (09:23 +0000)]
Incorrectly used str2sig() instead of sig2str().

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

17 years agodon't free silence memblocks that don't exist
Lennart Poettering [Fri, 28 Sep 2007 00:30:48 +0000 (00:30 +0000)]
don't free silence memblocks that don't exist

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

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