profile/ivi/pulseaudio.git
17 years agoadd a new module module-default-device-restore which automatically saves and restores...
Lennart Poettering [Mon, 3 Sep 2007 20:53:07 +0000 (20:53 +0000)]
add a new module module-default-device-restore which automatically saves and restores the selected default device. Enable it by default.

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

17 years agoheader file cleanup
Lennart Poettering [Mon, 3 Sep 2007 20:51:17 +0000 (20:51 +0000)]
header file cleanup

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

17 years agoonly list supported resampling methods when --dump-resample-methods is executed
Lennart Poettering [Mon, 3 Sep 2007 20:50:55 +0000 (20:50 +0000)]
only list supported resampling methods when --dump-resample-methods is executed

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

17 years agoadd new API function pa_resample_method_supported() which tests whether a resampling...
Lennart Poettering [Mon, 3 Sep 2007 20:50:03 +0000 (20:50 +0000)]
add new API function pa_resample_method_supported() which tests whether a resampling method is supported. Fix building with libsamplerate enabled

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

17 years agoactually define HAVE_LIBSAMPLERATE with AC_DEFINE
Lennart Poettering [Mon, 3 Sep 2007 20:39:55 +0000 (20:39 +0000)]
actually define HAVE_LIBSAMPLERATE with AC_DEFINE

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

17 years agomake libpulse-core a noinst lib, because it does not have yet a stable API and won...
Lennart Poettering [Sun, 2 Sep 2007 22:08:30 +0000 (22:08 +0000)]
make libpulse-core a noinst lib, because it does not have yet a stable API and won't get one anytime. Also, don't install its header files

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

17 years agoadd missing configure.ac part of the libsamplerate patch from r1753, re #125
Lennart Poettering [Sun, 2 Sep 2007 21:22:30 +0000 (21:22 +0000)]
add missing configure.ac part of the libsamplerate patch from r1753, re #125

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

17 years agoAllow compilation without libsamplerate; based on patch from Marc-Andre Lureau; re...
Lennart Poettering [Sun, 2 Sep 2007 21:20:57 +0000 (21:20 +0000)]
Allow compilation without libsamplerate; based on patch from Marc-Andre Lureau; re #125

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

17 years agofix dbus version check for dbus_watch_get_unix_fd()
Lennart Poettering [Sun, 2 Sep 2007 21:18:46 +0000 (21:18 +0000)]
fix dbus version check for dbus_watch_get_unix_fd()

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

17 years agomake argument to pa_memchunk_will_need() const
Lennart Poettering [Sun, 2 Sep 2007 21:13:17 +0000 (21:13 +0000)]
make argument to pa_memchunk_will_need() const

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

17 years agofix build for dbus < 1.1.1, re #126, patch from Marc-Andre Lureau
Lennart Poettering [Sun, 2 Sep 2007 20:51:25 +0000 (20:51 +0000)]
fix build for dbus < 1.1.1, re #126, patch from Marc-Andre Lureau

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

17 years agoDon't set RLIMIT_MEMBLOCK to 0 on startup. Retain 4 pages
Lennart Poettering [Sun, 2 Sep 2007 20:39:45 +0000 (20:39 +0000)]
Don't set RLIMIT_MEMBLOCK to 0 on startup. Retain 4 pages

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

17 years agomake use of pa_memchunk_will_need() before handing sample cache audio to the RT threads
Lennart Poettering [Sun, 2 Sep 2007 20:38:57 +0000 (20:38 +0000)]
make use of pa_memchunk_will_need() before handing sample cache audio to the RT threads

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

17 years agoadd new pa_memchunk_will_need() API, similar to pa_memblock_will_need()
Lennart Poettering [Sun, 2 Sep 2007 20:37:55 +0000 (20:37 +0000)]
add new pa_memchunk_will_need() API, similar to pa_memblock_will_need()

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

17 years agoadd new API pa_memblock_will_need() and make use of PA_PAGE_SIZE macro
Lennart Poettering [Sun, 2 Sep 2007 20:37:17 +0000 (20:37 +0000)]
add new API pa_memblock_will_need() and make use of PA_PAGE_SIZE macro

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

17 years agoadd new pa_will_need() API for paging in memory
Lennart Poettering [Sun, 2 Sep 2007 20:36:32 +0000 (20:36 +0000)]
add new pa_will_need() API for paging in memory

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

17 years agomake use of new PA_PAGE_SIZE macro
Lennart Poettering [Sun, 2 Sep 2007 20:36:00 +0000 (20:36 +0000)]
make use of new PA_PAGE_SIZE macro

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

17 years agomake use of new memory page alignment macros, reindent
Lennart Poettering [Sun, 2 Sep 2007 20:35:36 +0000 (20:35 +0000)]
make use of new memory page alignment macros, reindent

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

17 years agoadd a couple of macros for memory page alignment
Lennart Poettering [Sun, 2 Sep 2007 20:34:57 +0000 (20:34 +0000)]
add a couple of macros for memory page alignment

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

17 years agoadd pa_channel_position_to_pretty_string() to header
Lennart Poettering [Fri, 31 Aug 2007 10:45:49 +0000 (10:45 +0000)]
add pa_channel_position_to_pretty_string() to header

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

17 years agoadd pa_channel_position_to_pretty_string() for usage in pavucontrol/pavumeter
Lennart Poettering [Fri, 31 Aug 2007 10:45:16 +0000 (10:45 +0000)]
add pa_channel_position_to_pretty_string() for usage in pavucontrol/pavumeter

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

17 years agomake sure that we make include paths absolute before calling chdir()
Lennart Poettering [Fri, 31 Aug 2007 00:52:42 +0000 (00:52 +0000)]
make sure that we make include paths absolute before calling chdir()

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

17 years agominor reformatting
Lennart Poettering [Fri, 31 Aug 2007 00:51:26 +0000 (00:51 +0000)]
minor reformatting

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

17 years agoadd two new functions pa_make_path_absolute()/pa_getcwd()
Lennart Poettering [Fri, 31 Aug 2007 00:51:01 +0000 (00:51 +0000)]
add two new functions pa_make_path_absolute()/pa_getcwd()

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

17 years agoreplace a pa_assert() by an pa_assert_se()
Lennart Poettering [Fri, 31 Aug 2007 00:22:58 +0000 (00:22 +0000)]
replace a pa_assert() by an pa_assert_se()

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

17 years ago- fix suspend handling
Lennart Poettering [Fri, 31 Aug 2007 00:22:31 +0000 (00:22 +0000)]
- fix suspend handling
- set sink description properly
- honour resample_method setting

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

17 years agoport module-combine to new core
Lennart Poettering [Thu, 30 Aug 2007 22:58:12 +0000 (22:58 +0000)]
port module-combine to new core

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

17 years agoLots of assorted minor cleanups and fixes:
Lennart Poettering [Thu, 30 Aug 2007 22:57:53 +0000 (22:57 +0000)]
Lots of assorted minor cleanups and fixes:
* s/disconnect/unlink/ at many places where it makes sense
* make "start_corked" a normal pa_sink_input/pa_source_output flag instead of a seperate boolean variable
* add generic process() function to pa_sink_input/pa_source_output vtable that can be used by streams to do some arbitrary processing in each rt loop iteration even the sink/source is suspended
* add detach()/attach() functions to pa_sink_input/pa_source_output vtable that are called when ever the rtpoll object of the event thread changes
* add suspend() functions to pa_sink_input/pa_source_output vtable which are called whenever the sink/source they are attached to suspends/resumes
* add PA_SINK_INIT/PA_SOURCE_INIT/PA_SINK_INPUT_INIT/PA_SINK_OUTPUT_INIT states to state machines which is active between _new() and _put()
* seperate _put() from _new() for pa_sink/pa_source
* add PA_SOURCE_OUTPUT_DONT_MOVE/PA_SINK_INPUT_DONT_MOVE flags
* make the pa_rtpoll object a property of pa_sink/pa_source to allow streams attached to them make use of it
* fix skipping over move_silence
* update module-pipe-source to make use of pa_rtpoll
* add pa_sink_skip() as optimization in cases where the actualy data returned by pa_sink_render() doesn't matter

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

17 years agoreorder initialization of pa_core variables
Lennart Poettering [Thu, 30 Aug 2007 22:44:19 +0000 (22:44 +0000)]
reorder initialization of pa_core variables

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

17 years agomodernize and make use of a static flist for allocating idxset entries
Lennart Poettering [Thu, 30 Aug 2007 22:43:35 +0000 (22:43 +0000)]
modernize and make use of a static flist for allocating idxset entries

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

17 years agomove queue processing code into pa_thread_mq
Lennart Poettering [Thu, 30 Aug 2007 22:42:47 +0000 (22:42 +0000)]
move queue processing code into pa_thread_mq

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

17 years agoadd new function pa_memblock_ref_is_one()
Lennart Poettering [Thu, 30 Aug 2007 22:42:02 +0000 (22:42 +0000)]
add new function pa_memblock_ref_is_one()

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

17 years agofix pa_memchunk_make_writable(), make memchunk functions return the memchunk they...
Lennart Poettering [Thu, 30 Aug 2007 22:41:33 +0000 (22:41 +0000)]
fix pa_memchunk_make_writable(), make memchunk functions return the memchunk they modify

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

17 years agoadd an assert()
Lennart Poettering [Thu, 30 Aug 2007 22:40:11 +0000 (22:40 +0000)]
add an assert()

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

17 years agoadd pa_timespec_reset()
Lennart Poettering [Thu, 30 Aug 2007 22:39:47 +0000 (22:39 +0000)]
add pa_timespec_reset()

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

17 years agomake passing a code pointer to pa_asyncmsgq_get() optional
Lennart Poettering [Thu, 30 Aug 2007 22:39:24 +0000 (22:39 +0000)]
make passing a code pointer to pa_asyncmsgq_get() optional

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

17 years agoadd new PA_SINK_CAN_SUSPEND/PA_SOURCE_CAN_SUSPEND flag
Lennart Poettering [Thu, 30 Aug 2007 22:38:57 +0000 (22:38 +0000)]
add new PA_SINK_CAN_SUSPEND/PA_SOURCE_CAN_SUSPEND flag

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

17 years agodrop check for gid < 500, since this isn't really a security improvement, re: #111
Lennart Poettering [Sun, 26 Aug 2007 01:10:55 +0000 (01:10 +0000)]
drop check for gid < 500, since this isn't really a security improvement, re: #111

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

17 years agoAdd option --dump-resample-methods to list available resampler implementations
Lennart Poettering [Sat, 25 Aug 2007 23:49:11 +0000 (23:49 +0000)]
Add option --dump-resample-methods to list available resampler implementations

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

17 years agomake floating point speex resampler the default
Lennart Poettering [Sat, 25 Aug 2007 23:40:16 +0000 (23:40 +0000)]
make floating point speex resampler the default

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

17 years agoenable -ffast-math for gcc
Lennart Poettering [Sat, 25 Aug 2007 23:32:37 +0000 (23:32 +0000)]
enable -ffast-math for gcc

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

17 years agolower suspend timeout to 1s
Lennart Poettering [Sat, 25 Aug 2007 22:27:51 +0000 (22:27 +0000)]
lower suspend timeout to 1s

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

17 years agoinclude ffmpeg resampler in build
Lennart Poettering [Sat, 25 Aug 2007 22:27:24 +0000 (22:27 +0000)]
include ffmpeg resampler in build

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

17 years agomake ffmpeg resampler actually work
Lennart Poettering [Sat, 25 Aug 2007 22:26:59 +0000 (22:26 +0000)]
make ffmpeg resampler actually work

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

17 years agoadd makefiles to speex/ and ffmpeg/ to easy compilation from emacs
Lennart Poettering [Fri, 24 Aug 2007 00:23:48 +0000 (00:23 +0000)]
add makefiles to speex/ and ffmpeg/ to easy compilation from emacs

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

17 years agoCopy resampler from ffmpeg into our sources
Lennart Poettering [Fri, 24 Aug 2007 00:23:22 +0000 (00:23 +0000)]
Copy resampler from ffmpeg into our sources

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

17 years agomake speex resampler the default
Lennart Poettering [Thu, 23 Aug 2007 22:35:58 +0000 (22:35 +0000)]
make speex resampler the default

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

17 years agobig resampler rework: support integer-only resampling, support speex resampler
Lennart Poettering [Thu, 23 Aug 2007 22:35:40 +0000 (22:35 +0000)]
big resampler rework: support integer-only resampling, support speex resampler

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

17 years agofix a bad memory access when destructing pa_memimports
Lennart Poettering [Thu, 23 Aug 2007 22:34:49 +0000 (22:34 +0000)]
fix a bad memory access when destructing pa_memimports

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

17 years agoa couple of modernizations; parse RE sample types properly
Lennart Poettering [Thu, 23 Aug 2007 22:34:10 +0000 (22:34 +0000)]
a couple of modernizations; parse RE sample types properly

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

17 years agoadd a small speex wrapper so that we can include both the fp and the fixed-point...
Lennart Poettering [Thu, 23 Aug 2007 22:32:58 +0000 (22:32 +0000)]
add a small speex wrapper so that we can include both the fp and the fixed-point resampler in the same binary

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

17 years agobuild speex resampler tiwce, once for fixed point, one for floating point
Lennart Poettering [Thu, 23 Aug 2007 22:31:51 +0000 (22:31 +0000)]
build speex resampler tiwce, once for fixed point, one for floating point

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

17 years agoadd a copy of the speex resampler to our sources
Lennart Poettering [Thu, 23 Aug 2007 22:31:01 +0000 (22:31 +0000)]
add a copy of the speex resampler to our sources

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

17 years agofix minor typo
Lennart Poettering [Wed, 22 Aug 2007 22:36:39 +0000 (22:36 +0000)]
fix minor typo

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

17 years agoport remaining sinks to pa_rtpoll
Lennart Poettering [Wed, 22 Aug 2007 22:27:53 +0000 (22:27 +0000)]
port remaining sinks to pa_rtpoll

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

17 years agominor cleanups
Lennart Poettering [Wed, 22 Aug 2007 22:27:07 +0000 (22:27 +0000)]
minor cleanups

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

17 years agosupport absolute, relative and periodic timers in pa_rtpoll
Lennart Poettering [Wed, 22 Aug 2007 22:26:30 +0000 (22:26 +0000)]
support absolute, relative and periodic timers in pa_rtpoll

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

17 years agoport alsa driver to make use of new pa_rtpoll object
Lennart Poettering [Wed, 22 Aug 2007 17:13:07 +0000 (17:13 +0000)]
port alsa driver to make use of new pa_rtpoll object

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

17 years agoreverse hrtimer check, add missing #include
Lennart Poettering [Wed, 22 Aug 2007 17:11:54 +0000 (17:11 +0000)]
reverse hrtimer check, add missing #include

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

17 years agoadd convenience functions to hook up pa_fdsem and pa_asyncmsgq to an pa_rtpoll; add...
Lennart Poettering [Wed, 22 Aug 2007 17:11:26 +0000 (17:11 +0000)]
add convenience functions to hook up pa_fdsem and pa_asyncmsgq to an pa_rtpoll; add pa_rtpoll_item_get_userdata(), on EINTR/EAGAIN, reset revents; automatically destory left over items

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

17 years agoadd missing include
Lennart Poettering [Wed, 22 Aug 2007 17:06:04 +0000 (17:06 +0000)]
add missing include

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

17 years agomake pa_make_power_of_two() and pa_is_power_of_two() inline functions
Lennart Poettering [Wed, 22 Aug 2007 17:05:41 +0000 (17:05 +0000)]
make pa_make_power_of_two() and pa_is_power_of_two() inline functions

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

17 years agoadd missing #include
Lennart Poettering [Wed, 22 Aug 2007 17:05:07 +0000 (17:05 +0000)]
add missing #include

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

17 years agoadd message about hrtimers, and initialize pa_core::high_priority
Lennart Poettering [Wed, 22 Aug 2007 00:29:15 +0000 (00:29 +0000)]
add message about hrtimers, and initialize pa_core::high_priority

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

17 years agohide rtpoll-test from svn
Lennart Poettering [Wed, 22 Aug 2007 00:28:04 +0000 (00:28 +0000)]
hide rtpoll-test from svn

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

17 years agocheck pa_core::high_priority before becoming rt thread
Lennart Poettering [Wed, 22 Aug 2007 00:27:25 +0000 (00:27 +0000)]
check pa_core::high_priority before becoming rt thread

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

17 years agoadd new option to pa_core stating whether we are running as high prio process
Lennart Poettering [Wed, 22 Aug 2007 00:26:43 +0000 (00:26 +0000)]
add new option to pa_core stating whether we are running as high prio process

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

17 years agoadd check for ppoll()
Lennart Poettering [Wed, 22 Aug 2007 00:25:29 +0000 (00:25 +0000)]
add check for ppoll()

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

17 years agoadd rtpoll, rtclock, rtsig to Makefile
Lennart Poettering [Wed, 22 Aug 2007 00:25:03 +0000 (00:25 +0000)]
add rtpoll, rtclock, rtsig to Makefile

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

17 years agoadd test program for pa_rtpoll
Lennart Poettering [Wed, 22 Aug 2007 00:24:31 +0000 (00:24 +0000)]
add test program for pa_rtpoll

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

17 years agoadd new realtime event loop abstraction which precise time keeping by using hrtimers...
Lennart Poettering [Wed, 22 Aug 2007 00:24:12 +0000 (00:24 +0000)]
add new realtime event loop abstraction which precise time keeping by using hrtimers on Linux, if they are available

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

17 years agoadd facility for managing realtime signals
Lennart Poettering [Wed, 22 Aug 2007 00:23:33 +0000 (00:23 +0000)]
add facility for managing realtime signals

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

17 years agoadd monotonic clock abstraction pa_rtclock
Lennart Poettering [Wed, 22 Aug 2007 00:22:51 +0000 (00:22 +0000)]
add monotonic clock abstraction pa_rtclock

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

17 years agorename a few things in a macro to make name collisions less likely
Lennart Poettering [Wed, 22 Aug 2007 00:21:28 +0000 (00:21 +0000)]
rename a few things in a macro to make name collisions less likely

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

17 years agomake use of new public function pa_is_power_of_two()
Lennart Poettering [Wed, 22 Aug 2007 00:21:00 +0000 (00:21 +0000)]
make use of new public function pa_is_power_of_two()

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

17 years agoadd pa_is_power_of_two() and pa_make_power_of_two() functions
Lennart Poettering [Wed, 22 Aug 2007 00:20:13 +0000 (00:20 +0000)]
add pa_is_power_of_two() and pa_make_power_of_two() functions

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

17 years agoadd macro for creating static TLS objects
Lennart Poettering [Wed, 22 Aug 2007 00:19:33 +0000 (00:19 +0000)]
add macro for creating static TLS objects

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

17 years agoadd more PA_PTR_TO_XXX macros
Lennart Poettering [Wed, 22 Aug 2007 00:18:58 +0000 (00:18 +0000)]
add more PA_PTR_TO_XXX macros

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

17 years agomodernizations
Lennart Poettering [Wed, 22 Aug 2007 00:18:04 +0000 (00:18 +0000)]
modernizations

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

17 years agouse realtime scheduling for ALSA and OSS driver threads
Lennart Poettering [Thu, 16 Aug 2007 19:50:11 +0000 (19:50 +0000)]
use realtime scheduling for ALSA and OSS driver threads

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

17 years agonever stay root after startup, even if we don't have capabilites
Lennart Poettering [Thu, 16 Aug 2007 19:48:49 +0000 (19:48 +0000)]
never stay root after startup, even if we don't have capabilites

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

17 years agoseperately get high nice level and acquire realtime sched
Lennart Poettering [Thu, 16 Aug 2007 19:46:11 +0000 (19:46 +0000)]
seperately get high nice level and acquire realtime sched

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

17 years agoKeep CAP_SYS_NICE not only in PERMITTED but also in EFFECTIVE capset
Lennart Poettering [Thu, 16 Aug 2007 19:44:51 +0000 (19:44 +0000)]
Keep CAP_SYS_NICE not only in PERMITTED but also in EFFECTIVE capset

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

17 years agoonly suspend device when server is local
Lennart Poettering [Thu, 16 Aug 2007 18:26:35 +0000 (18:26 +0000)]
only suspend device when server is local

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

17 years agotruncate service names if necessary, include user name in service string
Lennart Poettering [Thu, 16 Aug 2007 13:47:18 +0000 (13:47 +0000)]
truncate service names if necessary, include user name in service string

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

17 years agoadd pa_truncate_utf8() function for truncating a string and guaranteeing it stays...
Lennart Poettering [Thu, 16 Aug 2007 13:46:32 +0000 (13:46 +0000)]
add pa_truncate_utf8() function for truncating a string and guaranteeing it stays valid UTF8 afterwards

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

17 years agoadd fedora-snapshot target
Lennart Poettering [Wed, 15 Aug 2007 23:13:53 +0000 (23:13 +0000)]
add fedora-snapshot target

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

17 years agofix an awful race condition when handling data requests
Lennart Poettering [Wed, 15 Aug 2007 22:47:59 +0000 (22:47 +0000)]
fix an awful race condition when handling data requests

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

17 years agodon't fail if no pa is srunning
Lennart Poettering [Wed, 15 Aug 2007 21:03:53 +0000 (21:03 +0000)]
don't fail if no pa is srunning

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

17 years agoadd new tool pasuspender which temporarily suspends all sinks and resumes them later...
Lennart Poettering [Wed, 15 Aug 2007 20:50:15 +0000 (20:50 +0000)]
add new tool pasuspender which temporarily suspends all sinks and resumes them later again

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

17 years agoset CLOEXEC on more fds
Lennart Poettering [Wed, 15 Aug 2007 20:47:53 +0000 (20:47 +0000)]
set CLOEXEC on more fds

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

17 years agoadd new commands suspend-source, suspend-sink
Lennart Poettering [Wed, 15 Aug 2007 19:57:12 +0000 (19:57 +0000)]
add new commands suspend-source, suspend-sink

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

17 years agoadd protocol support for muting sink inputs and suspending sinks/sources
Lennart Poettering [Wed, 15 Aug 2007 19:30:04 +0000 (19:30 +0000)]
add protocol support for muting sink inputs and suspending sinks/sources

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

17 years agobump protocol revision and soname of libpulse
Lennart Poettering [Wed, 15 Aug 2007 19:27:52 +0000 (19:27 +0000)]
bump protocol revision and soname of libpulse

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

17 years agouse pa_source_suspend_all/pa_sink_suspend_all for suspending all sinks/sources
Lennart Poettering [Wed, 15 Aug 2007 19:27:12 +0000 (19:27 +0000)]
use pa_source_suspend_all/pa_sink_suspend_all for suspending all sinks/sources

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

17 years agofix muting for sink inputs
Lennart Poettering [Wed, 15 Aug 2007 19:26:38 +0000 (19:26 +0000)]
fix muting for sink inputs

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

17 years agoactually mute sinks when asked for i, add new function pa_sink_suspend_all
Lennart Poettering [Wed, 15 Aug 2007 19:25:56 +0000 (19:25 +0000)]
actually mute sinks when asked for i, add new function pa_sink_suspend_all

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

17 years agoactually mute sinks when asked for i, add new function pa_sink_suspend_all
Lennart Poettering [Wed, 15 Aug 2007 19:25:42 +0000 (19:25 +0000)]
actually mute sinks when asked for i, add new function pa_sink_suspend_all

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

17 years agoload module-x11-xsmp from a /etc/xdg/autostart file, to make sure it is loaded when...
Lennart Poettering [Mon, 13 Aug 2007 23:49:26 +0000 (23:49 +0000)]
load module-x11-xsmp from a /etc/xdg/autostart file, to make sure it is loaded when we have XSMP

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

17 years agoadd load-module and unload-module commands to pactl
Lennart Poettering [Mon, 13 Aug 2007 23:34:46 +0000 (23:34 +0000)]
add load-module and unload-module commands to pactl

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