summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* dbus: remove filter functions only if they were actually set beforeLennart Poettering2010-02-097-34/+34
| | | | | | | This fixes an assert when destructing modules that have not been fully initialized. https://bugzilla.redhat.com/show_bug.cgi?id=548525
* core: Fix macro typo - PA_SINK_IS_LINKED -> PA_SINK_INPUT_IS_LINKEDColin Guthrie2010-02-091-1/+1
|
* stream-restore: Clear the save_sink/save_source flags on apply_entry.Colin Guthrie2010-02-051-12/+36
| | | | | | | | | | | If the user specifically removes the device element from the stream restore rule, we have to clear the save_sink/save_source flag of the stream. This means that other stream routing systems (e.g. module-device-manager) can take over routing for this stream. In order to facilitate the reapplication of other routing rules, we fire a stream change event. Arguably the stream itself has not changed, but the rules governing its routing have, so I feel this is justified.
* osx: don't build the once-test binary on OS XDaniel Mack2010-02-021-1/+5
| | | | OS X lacks the barrier pthread APIs
* client.conf.in: Typo. s/a/are/Paul Menzel2010-02-021-1/+1
| | | | | | | | | This is the same typo as reported in [1] and fixed in [2] in `client.conf.in`. I did `git grep "values a commented"` and did not get anymore hits. [1] http://pulseaudio.org/ticket/783 [2] http://git.0pointer.de/?p=pulseaudio.git;a=commit;h=ea8927f1d47be101a1f64b2f87fd6e527ff76dbe
* shm: explicitly mark shm seg for MAP_NORESERVE to request overcommiting no ↵Lennart Poettering2010-02-021-1/+5
| | | | matter what
* Typo. s/a/are/Paul Menzel2010-01-211-1/+1
| | | | Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
* client: include dolby channel names in commentsLennart Poettering2010-01-141-10/+10
|
* start: we don't need to check for $PULSE_SERVER anymoreLennart Poettering2010-01-141-2/+0
| | | | | pulseaudio --start does that internally anyway, so we can get rid of this here.
* native: when run in system mode, do not look for fallback portLennart Poettering2010-01-141-1/+1
|
* native: fallback to another port if the default port is takenLennart Poettering2010-01-143-33/+61
| | | | | | | Unless the port number is explicitly configured we will now fallback to a kernel picked port if the one we'd like by default we cannot get. http://pulseaudio.org/ticket/773
* client: introduce auto-connect-display= following the scheme of ↵Lennart Poettering2010-01-134-7/+12
| | | | | | | auto-connect-localhost= Just connecting to a PA server just because X11's $DISPLAY is set might be a security hole.
* client: introduce auto-connect-localhost= option in client.confLennart Poettering2010-01-134-4/+10
| | | | | | | | | Partly fixes: http://pulseaudio.org/ticket/773 Also fixes a security hole since listening on the default port is not access controlled right now.
* Merge remote branch 'tanuk/fixes'Lennart Poettering2010-01-134-8/+38
|\
| * daemon: Don't autospawn if a server address is explicitly configured.Tanu Kaskinen2010-01-092-6/+36
| |
| * sink-input: Replace a tab indentation with spaces.Tanu Kaskinen2010-01-061-1/+1
| |
| * idxset: Fix _get_by_data() comment.Tanu Kaskinen2010-01-061-1/+1
| |
* | tests: add pa_once_xxx() testLennart Poettering2010-01-133-0/+110
|/
* core: volume ramping fixhuan zheng2010-01-061-1/+1
| | | | | | | | | | | | | | | Hi, I found that volume ramping is inside PA now. there's a minor fix here, it is a bug i found after the patch is submitted: line 1781 of sink-input.c : if ((i->thread_info.ramp_info.envelope_dying - nbytes) <= 0) { need to be changed to if ((i->thread_info.ramp_info.envelope_dying - (ssize_t) nbytes) <= 0) { otherwise this argument will never be negative since nbytes is of type size_t which is unsigned. Please change it when you have time, sorry if bring any inconvenience. :)
* Merge remote branch 'zonque/topic/osx'Lennart Poettering2010-01-0517-83/+1694
|\
| * fix a number of warningsDaniel Mack2009-12-164-12/+16
| | | | | | | | | | most of them were due to missing #ifdefs or wrong printf format type for [s]size_t.
| * osx: add native zeroconf implementation via BonjourDaniel Mack2009-12-162-0/+529
| | | | | | | | | | | | | | | | | | | | | | Avahi and dbus is too heavy for OSX just for the sake of publishing our services via mDNS/Zeroconf. Apple has its own Zeroconf implementation called Bonjour, and this patch adds a module that implements service announcement with that API. All data gathering is copied from module-zeroconf-publish.c, but unfortunately the code there is too specifically made for avahi, so I couldn't factor it out to reuse it.
| * CoreAudio: add audio device moduleDaniel Mack2009-12-162-1/+828
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for CoreAudio driven devices under Mac OS X. It is typically instanciated by the CoreAudio device detection module and handles all available streams on a specific device. Sinks are created according to the reported stream configuration. Float32 is used as default audio sample format at it is the only format CoreAudio speaks natively. Hardware volume control is not implemented yet.
| * CoreAudio: add device detection moduleDaniel Mack2009-12-162-0/+243
| | | | | | | | | | | | | | This adds a new module for CoreAudio device detection. It registers a callback to detect hotplugged devices and creates/destroys modules named 'module-coreaudio-device'. Devices are identified via a system-wide unique AudioDeviceID.
| * hack around another OS X bug: recv() with MSG_PEEK does not workDaniel Mack2009-12-161-0/+22
| | | | | | | | | | | | | | At least for pipes, recv() with MSG_PEEK does actually eat up data from file descriptors. Hence, this can't be used for PULLHUP emulation. Use another ioctl hack for that.
| * poll() is totally broken on Mac OS XDaniel Mack2009-12-1612-40/+34
| | | | | | | | | | | | Even on 10.5.8, poll() does not do the right thing. Haven't checked on newer versions. Hence, wrap all occurences of poll() to pa_poll and emulate that call with select() on OSX. This is totally embarassing.
| * src/Makefile.am: add specific OS_IS_DARWIN filesKim Lester2009-12-091-2/+11
| | | | | | | | | | Signed-off-by: Kim Lester <kim@dfusion.com.au> Signed-off-by: Daniel Mack <daniel@caiaq.de>
| * core-rtclock.c: tweak OS_IS_DARWIN constraintsDaniel Mack2009-12-091-41/+28
| | | | | | | | | | Move the code for OS_IS_DARWIN to the top as on Darwin, HAVE_CLOCK_GETTIME is also defined.
* | fix a number of warningsDaniel Mack2010-01-054-12/+16
| | | | | | | | | | most of them were due to missing #ifdefs or wrong printf format type for [s]size_t.
* | headers: Some trivial fixes for some documentation typosMads Kiilerich2010-01-059-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note also the willneed/will_need inconsistency. I guess it could be nice to ASAP choose one of them and introduce a backward compatibility hack for the other. The issues was mostly found with: for a in $(grep -r '^[ /]\*.*()' $( find -name '*.[ch]') | sed 's,^.* \([^ ]*\)().*$,\1,g' | sort | uniq | grep ^pa_) do grep -rq "^.[^*].*\<$a(" $(find * -name '*.h') || echo $a done
* | Subject: rtpoll: better support for DEBUG_TIMING logsPierre-Louis Bossart2010-01-051-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On all the platforms I tested, PulseAudio is frequently awaken and doesn't sleep for the duration specified for the poll timeout. Sometimes wake-ups occur within milliseconds of the poll call for no good reason; this seems to be related to ALSA issues (see my posts on the ALSA mailing list on null poll events). This patch enables a better log of requested sleep times v. actual sleep times. Enable DEBUG_TIMING to see actual messages. Please let me know if you see odd behaviors like the one below - Pierre E: rtpoll.c: rtpoll_run E: rtpoll.c: poll timeout: 188 ms E: rtpoll.c: Process time 0 ms; sleep time 48 ms E: rtpoll.c: rtpoll_run E: rtpoll.c: rtpoll finish E: rtpoll.c: rtpoll_run E: rtpoll.c: poll timeout: 139 ms E: rtpoll.c: Process time 0 ms; sleep time 49 ms E: rtpoll.c: rtpoll_run E: rtpoll.c: rtpoll finish E: rtpoll.c: rtpoll_run E: rtpoll.c: poll timeout: 189 ms E: rtpoll.c: Process time 0 ms; sleep time 0 ms E: rtpoll.c: rtpoll_run E: rtpoll.c: rtpoll finish E: rtpoll.c: rtpoll_run E: rtpoll.c: poll timeout: 189 ms E: rtpoll.c: Process time 0 ms; sleep time 49 ms
* | Fix typo in log message: s/may no be/may not be/chocolateboy2010-01-051-1/+1
| | | | | | | | | | | | | | | | | | Hi, Lennart. Spotted another typo. Patch attached. Best wishes, chocolateboy.
* | alsa: add profile set for M-Audio FastTrack Pro USBDavid Kågedal2010-01-052-0/+86
| |
* | udev: Use SOUND_CLASS instead of SOUND_FORM_FACTOR when checking for modemDaniel T Chen2010-01-051-1/+1
| | | | | | | | | | | | | | The fact whether an ALSA card is a modem is stored in the SOUND_CLASS, not the SOUND_FORM_FACTOR property. So read it from there. Patch from Whoopie.
* | threaded-mainloop: Properly initialise m->n_waiting_for_accept to prevent ↵Daniel T Chen2010-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | deadlock Compiler optimisations have been seen to initialise m->n_waiting_for_accept to a positive non-zero value, so the while() in pa_threaded_mainloop_signal() never proceeds. Fix this by properly initializing m->n_waiting_for_accept in pa_threaded_mainloop_new(). Patch from Iain Bucław. https://bugs.launchpad.net/bugs/502992
* | More src/pulsecore/cpu-arm.c FTBFS fixesDaniel T Chen2009-12-221-2/+3
| | | | | | | | | | | | | | Fix missing argument to pa_read(), and be consistent with declaration of state variable in pa_cpu_init_arm(). Signed-off-by: Daniel T Chen <crimsun@ubuntu.com>
* | Fix the following warnings (which now cause buildd failures in Ubuntu 10.04):Daniel T Chen2009-12-221-0/+1
|/ | | | | | | | | | | | pulsecore/cpu-arm.c: In function 'get_cpuinfo': pulsecore/cpu-arm.c:70: warning: implicit declaration of function 'pa_read' [-Wimplicit-function-declaration] pulsecore/cpu-arm.c:72: warning: implicit declaration of function 'pa_close' [-Wimplicit-function-declaration] pulsecore/cpu-arm.c: In function 'pa_cpu_init_arm': pulsecore/cpu-arm.c:110: warning: implicit declaration of function 'pa_split_spaces' [-Wimplicit-function-declaration] pulsecore/cpu-arm.c:110: warning: assignment makes pointer from integer without a cast Function `pa_split_spaces' implicitly converted to pointer at pulsecore/cpu-arm.c:110 Signed-off-by: Daniel T Chen <crimsun@ubuntu.com>
* Add a configure option to change 'udevrulesdir'Arun Raghavan2009-12-061-1/+0
| | | | | | | | | | | This patch serves two purposes: 1) Allows something other than the de-facto standard udev rules dir or /lib/udev/rules.d to be used (the udev build system allows you to customise this) 2) Allows a prefixed, non-root install (right now, the /lib/... path is hard-coded into the build system
* Mark shared variables as volatileArun Raghavan2009-12-061-1/+4
| | | | | | | | | 'n_waiting' and 'n_waiting_for_accept' may be accessed from mulitple threads, and thus need to be marked as volatile to suppres certain compiler optimisations. All uses are protected by a mutex, so we don't need to worry about cache issues (added documentation for this as well). This addresses bug #738.
* stream-restore: At startup, create dbus entries only for valid database entries.Tanu Kaskinen2009-12-031-2/+7
|
* stream-restore: Add a missing pa_xnew0() call in handle_add_entry().Tanu Kaskinen2009-12-031-0/+1
|
* stream-restore: Fix a few assertion misuses with the D-Bus code.Tanu Kaskinen2009-12-031-5/+5
|
* dbus: Add a missing break statement in handle_message_cb().Tanu Kaskinen2009-12-031-0/+1
|
* dbus: Handle the cases when a non-existing interface is detected in an ↵Tanu Kaskinen2009-12-032-0/+9
| | | | incoming message.
* libpulse: Store pa_stream pointers to hashmaps instead of dynarrays.Tanu Kaskinen2009-12-033-18/+17
| | | | | | | | | Since the stream identifiers (channels) are monotonically growing integer, it isn't a good idea to use them as index to a dynamic array, because the array will grow all the time. This is not a problem with client connections that don't create many streams, but, for example, long-running clients that use libcanberra for playing event sounds, this means that the client connection effectively leaks memory.
* Merge remote branch 'tanuk/master'Colin Guthrie2009-11-301-0/+2
|\
| * Merge branch 'master' of git://0pointer.de/pulseaudioTanu Kaskinen2009-10-136-13/+19
| |\
| * | dbusiface-client: Fix the destructor (stop leaking stuff).Tanu Kaskinen2009-10-091-0/+2
| | |
* | | Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudioLennart Poettering2009-11-232-12/+27
|\ \ \
| * \ \ Merge remote branch 'phish3/master'Lennart Poettering2009-11-232-12/+27
| |\ \ \