Commit graph

3931 commits

Author SHA1 Message Date
Lennart Poettering
facae1f275 conf: invert all negative boolean configuration option 2009-08-12 20:15:28 +02:00
Lennart Poettering
8998cba683 conf: add pa_config_parse_not_bool() for parsing inverse boolean configuration options 2009-08-12 20:14:31 +02:00
Lennart Poettering
eb40da25d6 daemon: install D-Bus system policy file for PA system instances
Original patch from 'mgrela'.

http://pulseaudio.org/ticket/582
2009-08-12 01:50:24 +02:00
Lennart Poettering
e8340345f6 alsa: enable ext. amplifier by default 2009-08-12 00:56:10 +02:00
Lennart Poettering
462cdf44b7 alsa: adjust priority bonus of mappings that match the configured default channel map
We need to make sure that having both input and output weighs more for
selecting the default profile than a channel map that matches the
default channel map has.

https://bugzilla.redhat.com/show_bug.cgi?id=496320
2009-08-12 00:53:38 +02:00
Lennart Poettering
d27e26dca0 volume-restore: forward module load return value of stream-restore back to caller 2009-08-11 23:19:28 +02:00
Lennart Poettering
c117febbe4 hal: replace subdevs= parameter by subdevices= parameter
Abbreviating tsched like this was bad enough, so let's not add another
option here.
2009-08-11 23:18:01 +02:00
Lennart Poettering
c904f97e2d hal: add stub module that loads module-udev-detect instead of module-hal-detect
This adds module-hal-detect-compat.c which when enabled will be compiled
into a module module-hal-detect which simply loads module-udev-detect.

The purpose of this is to allow easy upgrading without breaking
default.pa. Distributions are recommended to enable this to easy
upgrades from HAL versions of PA to udev versions.
2009-08-11 23:04:35 +02:00
Maxim Levitsky
23a294c97e Correctly deal with events in the past in calc_next_timeout
pa_usec_t is unsigned, thus it will always be >= 0
This makes gstreamer pulse mixer work again

This fixes a gstreamer mixer regression, when it can't control the volume,
after few changes.
2009-08-10 21:23:26 +02:00
Tanu Kaskinen
31117fe99e dbus-protocol: Fix signal sending for the case when the client doesn't listen
for all signals.
2009-08-10 10:40:40 +03:00
Tanu Kaskinen
7cfda56af9 dbus-protocol: Add a note for _send_signal that by default the signal isn't
actually sent.
2009-08-10 10:38:01 +03:00
Tanu Kaskinen
8c8df77d2a dbusiface-card-profile: Implement the CardProfile D-Bus interface. 2009-08-09 10:36:20 +03:00
Tanu Kaskinen
acad506328 dbusiface-card: Implement the Card D-Bus interface. 2009-08-09 09:21:42 +03:00
Tanu Kaskinen
16dce8d7cb dbus-protocol: Take advantage of the helpers in dbus-util. 2009-08-09 09:19:33 +03:00
Tanu Kaskinen
7699cfd4c0 dbus-protocol: Split some overly long lines. 2009-08-09 09:18:03 +03:00
Tanu Kaskinen
76bd03bddb dbus-util: Trivial comment punctuation fix. 2009-08-09 09:14:27 +03:00
Tanu Kaskinen
3e9de1a36c dbus-util: Add helpers for proplist handling. 2009-08-09 09:12:31 +03:00
Tanu Kaskinen
5ece8e8833 dbusiface-core: Add functions for getting various object paths. 2009-08-09 09:10:05 +03:00
Tanu Kaskinen
0b6662023b dbusiface-core: Generate more informative error messages. 2009-08-09 09:06:21 +03:00
Tanu Kaskinen
06232e2965 dbus: Take advantage of the PA_HASHMAP_FOREACH macro. 2009-08-09 09:04:15 +03:00
Tanu Kaskinen
fcf68752e6 dbus: Three entangled changes:
* Make the dbus object constructors take a pa_dbusiface_core pointer
   as an argument. Remove the path_prefix argument.

 * Expose the core object path as a constant in protocol-dbus.h.

 * Move the core interface name constant from iface-core.h to
   protocol-dbus.h.
2009-08-09 08:37:33 +03:00
Tanu Kaskinen
1457df40ee proplist: New function: pa_proplist_equal() 2009-08-09 07:59:06 +03:00
Lennart Poettering
9bd3398f94 mix-test: fix test for s24-32 samples 2009-08-08 04:30:42 +02:00
Diego Elio 'Flameeyes' Pettenò
4c15115007 Split OSS support in output and wrapper.
Since Fedora does not enable OSS output support at all, but still uses
padsp, and in Gentoo we could also make use of padsp without OSS output
support, split the two things in two parameters, although they both check
for sys/soundcard.h once.
2009-08-08 01:53:15 +02:00
Lennart Poettering
7d4916379b ladspa/remap: make sure we process all requested rewinds unconditionally
In some situations a rewind request travelling downstream might be
optimized away on its way and an upstream rewind processing might never
come back. Hence, call _process_rewind() before each _render()just to
make sure we processed them all.
2009-08-07 23:58:45 +02:00
Lennart Poettering
51b3899348 core: save volume/mute changes coming from the hardware automatically
Volume changes coming from the lower layers are most likely changes
triggered by the user, so let's save them automatically.
2009-08-07 23:55:06 +02:00
zbt
897ef86b7f Add volume ramping feature - sink modification 2009-08-05 20:10:47 +02:00
zbt
5318eb35ef Add volume ramping feature - sink-input modification 2009-08-05 20:10:10 +02:00
zbt
8eaa40b6f4 Add volume ramping feature - envelop fix 2009-08-05 20:09:48 +02:00
Lennart Poettering
ff52588c7b smoother: readd #ifdef protection 2009-08-05 03:52:15 +02:00
Lennart Poettering
2cab6a256c simple: check for == RUNNING instead of != DONE when waiting for operations 2009-08-05 01:05:35 +02:00
Lennart Poettering
5bbeb516aa simple: split data/length validity checks into two 2009-08-05 01:05:08 +02:00
Lennart Poettering
53fcf3add0 simple: call pa_context_disconnect() just to be sure 2009-08-05 01:04:50 +02:00
Lennart Poettering
a73c615b74 simple: always loop around pa_threaded_mainloop_wait() to handle spurious wakeups properly 2009-08-05 01:04:36 +02:00
Lennart Poettering
b553e7283d simple: use pa_xnew0 instead of manual reset to 0 2009-08-05 01:04:08 +02:00
Lennart Poettering
a4bc41a7a5 simple: use PA_xxx_IS_GOOD for state checks 2009-08-05 01:03:49 +02:00
Tanu Kaskinen
44770c59e9 dbusiface-memstats: Implement the Memstats D-Bus interface. 2009-08-04 18:01:26 +03:00
Tanu Kaskinen
0fc055226c dbus-protocol: Remove erroneous protocol object unref. 2009-08-04 18:00:08 +03:00
Tanu Kaskinen
9eeb8eb272 dbus-protocol: Make debug logging saner. 2009-08-04 17:57:44 +03:00
Tanu Kaskinen
b1578e27b6 dbus-protocol, dbusiface-core: Take a reference when storing the core pointer. 2009-08-04 17:55:10 +03:00
Tanu Kaskinen
8966c61d33 dbusiface-core: Make the interface string a public constant. 2009-08-04 17:50:18 +03:00
Lennart Poettering
9b2534b6d0 alsa: properly treat ESTRPIPE as system suspend 2009-08-04 00:23:43 +02:00
Lennart Poettering
3e2ab9b22e client: extend documentation on pa_operation_cancel() a bit 2009-08-03 23:07:59 +02:00
Lubomir Rintel
34f31f666e Recover stream when it's suspended upon rewind
Error from snd_pcm_rewind() might mean we just woke up from suspend and
didn't have a chance to try to recover the stream since we didn't write
to it in between. Call try_recover() in such cases.

Note that for this to work kernel must return ESTRPIPE instead of EBADF
for rewind/forward attempts on suspended streams, so that
snd_pcm_recover() can recognize it should snd_pcm_resume() the stream.
This is not the case yet (2.6.31-rc5), patch is available.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
2009-08-03 22:47:15 +02:00
Tanu Kaskinen
d9d166a691 stream-restore: Expose module to D-Bus. 2009-08-03 19:38:02 +03:00
Tanu Kaskinen
805af5e801 dbus-util: Fix broken proplist reading logic. 2009-08-03 19:36:19 +03:00
Tanu Kaskinen
8c840572c7 dbus-protocol: Add debugging output (temporary change). 2009-08-02 11:12:21 +03:00
Tanu Kaskinen
a1ba80bc4e dbusiface-core: Don't die if we get a default sink/source change event before the new default device is actually created. 2009-08-01 08:26:51 +03:00
Lennart Poettering
277822053c autospawn: if creating the lock file fails, pass error code cleanly back to main process
This makes sure PA clients don't hang if $HOME is for some reason
unsuitable for autospawn lockfiles.

Closes #539
2009-08-01 03:10:19 +02:00
Lennart Poettering
49fd8ee72e core-util: replace remaining fixed size destination string functions by _malloc() versions
This helps portability to GNU/Hurd.

Patch originally from Samuel Thibault but modified.

Closes ticket #546
2009-08-01 02:03:22 +02:00