Commit graph

67 commits

Author SHA1 Message Date
Chen Rui
fb05059acf fix bug about get source-output status 2010-12-20 11:31:15 +00:00
Zhang Wanming
0c0c285e79 Fix typos 2010-12-20 11:07:30 +00:00
Arun Raghavan
9b8f20f617 volume: Fix incorrect usage of PA_VOLUME_IS_VALID
The commit that introduced this macro was incorrect in some places. This
patch fixes these. Thanks to Pierre-Louis Bossart for pointing this out.
2010-10-19 09:52:19 +01:00
Arun Raghavan
1d2ef7923d volume: Use a macro to check if a volume is valid
This adds a PA_VOLUME_IS_VALID() macro for checking if a given
pa_volume_t is valid. This makes changes to the volume ranges simpler
(just change PA_VOLUME_MAX, for example, without needing to modify any
other code).
2010-10-15 01:10:00 +05:30
Tanu Kaskinen
71ef5fe7e8 stream-restore: When changing restore entries with D-Bus, apply the changes immediately. 2010-05-10 14:33:54 +03:00
Tanu Kaskinen
c161115288 stream-restore: Fix segfaulting. The dbus entry callbacks expect a dbus_entry pointer instead of a userdata pointer. 2010-05-10 14:11:15 +03:00
Lennart Poettering
857ff2c160 stream-restore: be a little bit more verbose why we don't reastore a sink 2010-02-21 17:48:46 +01:00
Colin Guthrie
6fd2d08758 stream-restore: Clear the save_sink/save_source flags on apply_entry.
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.
2010-02-05 15:12:19 +00:00
Tanu Kaskinen
f42022a7d3 stream-restore: At startup, create dbus entries only for valid database entries. 2009-12-03 21:50:20 +00:00
Tanu Kaskinen
00debf4243 stream-restore: Add a missing pa_xnew0() call in handle_add_entry(). 2009-12-03 21:50:19 +00:00
Tanu Kaskinen
a6b7ac6826 stream-restore: Fix a few assertion misuses with the D-Bus code. 2009-12-03 21:50:19 +00:00
Diego Elio 'Flameeyes' Pettenò
d963998676 Rename all the signal parameters and variables to something more explicit.
Without this change, on FreeBSD you'll be bothered by tons of warnings
about overshadowing signal(2).
2009-11-21 00:46:46 +01:00
Lennart Poettering
d0b478e9a6 Merge remote branch 'coling/history' 2009-10-07 03:46:06 +02:00
Tanu Kaskinen
019331d25b Merge branch 'master' into dbus-work
Conflicts:
	src/daemon/daemon-conf.c
2009-10-02 17:24:44 +03:00
Colin Guthrie
42b30e1aa2 stream-restore: Preventative initialistion to NULL
There is not technically a bug here due to the early return and the knowledge that one of the if blocks
will definitely be run, but this makes sure we don't call free on uninitialised data or do
anything else suitibly daft. Also helps when you copy the code and change it slightly and don't realise
you've left things open...
2009-10-01 09:08:28 +01:00
Colin Guthrie
cc6932c4c8 stream-restore: Comment fix 2009-09-20 18:51:20 +01:00
Tanu Kaskinen
8a28e5de94 dbus: Change IsMuted property names to Mute. 2009-08-31 17:17:09 +03:00
Tanu Kaskinen
0ad2d55cbe Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-work
Conflicts:
	src/modules/module-stream-restore.c
2009-08-30 20:07:31 +03:00
Tanu Kaskinen
0e096632c5 dbus: Do message argument type checking early, centrally. 2009-08-30 19:52:22 +03:00
Lennart Poettering
c372b52a77 protocol-native: print more volume change debug messages to easy tracking down of feedback loops 2009-08-27 00:05:54 +02:00
Tanu Kaskinen
bcaba0b1b4 Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-work
Conflicts:
	src/Makefile.am
	src/daemon/daemon-conf.c
	src/daemon/daemon.conf.in
	src/modules/module-stream-restore.c
	src/pulse/client-conf.c
	src/pulsecore/namereg.c
2009-08-16 21:25:48 +03:00
Lennart Poettering
4c29ba9c33 modules: add various checks to avoid selecting objects that are not linked or in another unclear state 2009-08-16 00:45:23 +02:00
Lennart Poettering
7891f964e4 module-stream-restore: don't fiddle with sinks/sources/streams that are not fully set up yet 2009-08-14 23:55:32 +02:00
Tanu Kaskinen
06232e2965 dbus: Take advantage of the PA_HASHMAP_FOREACH macro. 2009-08-09 09:04:15 +03:00
Tanu Kaskinen
d9d166a691 stream-restore: Expose module to D-Bus. 2009-08-03 19:38:02 +03:00
Lennart Poettering
6fdd5846b2 stream-restore: mark volume changes from instant apply as saved ones 2009-07-01 21:11:19 +02:00
Lennart Poettering
ef85558abd modules: pass properly initialized userdata pointers to various hooks 2009-06-23 04:25:45 +02:00
Lennart Poettering
fc33f7ee97 Merge most of elmarco/rtclock2
Merge commit 'e4d914c945'
2009-06-22 23:09:46 +02:00
Lennart Poettering
60d36c7e74 module-stream-restore: recheck stream database on hotplug/unplug and potentially move streams 2009-06-22 22:35:55 +02:00
Lennart Poettering
c4d90ea986 restore: change 'save' flag behaviour to reflect whether an entry shall and/or is in the on-disk databases 2009-06-22 22:33:09 +02:00
Marc-André Lureau
0955e3d45b Base mainloop on pa_rtclock_now()
Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Lennart Poettering
4951e08031 card,stream-restore: minor cleanups 2009-06-18 00:59:33 +02:00
Lennart Poettering
d773638b20 stream-restore: e don't need to save stream data that came from the database 2009-06-18 00:56:46 +02:00
Lennart Poettering
b7e2223186 database: port restore modules to new database API 2009-05-14 01:24:26 +02:00
Lennart Poettering
fe8b10cc05 core: introduce new 'reference' volume for sinks
The reference volume is to be used as reference volume for stored stream
volumes. Previously if a new stream was created the relative volume was
taken relatively to the virtual device volume. Due to the flat volume
logic this could then be fed back to the virtual device volume.
Repeating the whole story over and over would result in a device volume
that would go lower, and lower and lower.

This patch introduces a 'reference' volume for each sink which stays
unmodified by stream volume changes even if flat volumes are used. It is
only modified if the sink volumes are modified directly by the user.

For further explanations see http://pulseaudio.org/wiki/InternalVolumes
2009-04-13 22:56:25 +02:00
Lennart Poettering
dfb3d2ec57 always remap relative volume properly 2009-03-20 13:51:08 +01:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Marc-André Lureau
0684b236f0 stream-resotre: don't leak a name 2009-02-19 04:57:51 +01:00
Lennart Poettering
44bca66c59 make PA_GCC_PACKED and PA_GCC_MALLOC actually work 2009-02-13 18:02:47 +01:00
Lennart Poettering
12c29e1832 store the identification key in the module-stream-restore.id property 2009-02-04 22:26:08 +01:00
Lennart Poettering
d802a76963 remove soft volume from pa_sink_input_new_info since it should be handled internally and automatically by the sink input 2009-02-04 18:34:08 +01:00
Lennart Poettering
786398dc63 fix a validity check 2009-02-04 18:32:15 +01:00
Lennart Poettering
1db64781bf version all entries in the database 2009-02-04 18:31:24 +01:00
Lennart Poettering
63157a6662 add missing usage strings 2009-01-28 00:19:47 +01:00
Lennart Poettering
0f664b7365 instead of making the volume relative our own, let' pa_sink_input_new() do it for us 2009-01-27 23:55:41 +01:00
Lennart Poettering
d1b754d998 only store volume/device information that has been flagged for saving, and store both relative and absolute volumes 2009-01-27 23:40:03 +01:00
Lennart Poettering
64b0543588 when changing volume, store whether it is worth remembering or no 2009-01-27 23:40:03 +01:00
Lennart Poettering
d5f46e824e move flat volume logic into the core. while doing so add n_volume_steps field to sinks/sources 2009-01-27 04:39:07 +01:00
Lennart Poettering
c512ebf4ab minor cleanups 2009-01-21 02:47:49 +01:00
Lennart Poettering
29c7a28817 kill autoload stuff as planned 2009-01-15 20:07:13 +01:00