platform/upstream/pulseaudio.git
14 years agodevice-manager: Rough framework (slots etc.) for handling routing.
Colin Guthrie [Sun, 20 Sep 2009 16:29:38 +0000 (17:29 +0100)]
device-manager: Rough framework (slots etc.) for handling routing.

This is incomplete, it just adds the slots in question and assigns noops to them.
Some minor cleanup of types.

Due to the priority of the hooks, it seems we can actually coexist with module-stream restore so
the code to detect and unload it will be removed shortly.

14 years agodevice-manager: debug and comments
Colin Guthrie [Sun, 20 Sep 2009 13:43:53 +0000 (14:43 +0100)]
device-manager: debug and comments

14 years agodevice-manager: Fix the freeing of the datum on prefer/defer.
Colin Guthrie [Sun, 20 Sep 2009 13:39:41 +0000 (14:39 +0100)]
device-manager: Fix the freeing of the datum on prefer/defer.

Also fix a log typo

14 years agodevice-manager: When a new device is encountered, initialise the priority list to...
Colin Guthrie [Sun, 20 Sep 2009 13:36:20 +0000 (14:36 +0100)]
device-manager: When a new device is encountered, initialise the priority list to an appropriate value

14 years agodevice-manager: Let subscribed clients know when something changes.
Colin Guthrie [Sun, 20 Sep 2009 12:57:10 +0000 (13:57 +0100)]
device-manager: Let subscribed clients know when something changes.

14 years agodevice-manager: Change the write function to a rename function.
Colin Guthrie [Sun, 20 Sep 2009 11:44:02 +0000 (12:44 +0100)]
device-manager: Change the write function to a rename function.

The structure itself will contain various bits of info so exposing this fully to the client is a bad idea.
By keeping to a rename operation we keep what we do store abstracted from the clients.

Also fix some doxy comments.

14 years agodevice-manager: Provide a method for prefering/defering a device.
Colin Guthrie [Sat, 19 Sep 2009 16:48:10 +0000 (17:48 +0100)]
device-manager: Provide a method for prefering/defering a device.

This allows clients to edit the priroity order. What is not yet in place is the initialisation of that priority list
when new devices are detected or the cleaning (remove holes) when devices are removed.

In order to keep the storage transparent I will likely remove the write functionality and replace it with a
simple rename method.

I also still need to expose the priority itself when reading the data.

14 years agodevice-manager: Fix copy+paste code that looped over the tagstruct when not necessary
Colin Guthrie [Sat, 19 Sep 2009 15:46:18 +0000 (16:46 +0100)]
device-manager: Fix copy+paste code that looped over the tagstruct when not necessary

14 years agodevice-manager: Provide a way for clients to enable/disable role-based device-priorit...
Colin Guthrie [Sat, 19 Sep 2009 15:13:25 +0000 (16:13 +0100)]
device-manager: Provide a way for clients to enable/disable role-based device-priority routing.

The routing logic itself does not yet exist, but the command currently will unload/load module-stream-restore as approriate.
(module-stream-restore would conflict with the role-based priority-routing).

14 years agodevice-manager: Update docs version -> 0.9.19 (predicted)
Colin Guthrie [Sat, 19 Sep 2009 14:32:13 +0000 (15:32 +0100)]
device-manager: Update docs version -> 0.9.19 (predicted)

14 years agodevice-manager: Fix copy+paste leftover
Colin Guthrie [Sun, 5 Jul 2009 18:40:06 +0000 (19:40 +0100)]
device-manager: Fix copy+paste leftover

14 years agodevice-manager: Only store and save details for non-monitor sources
Colin Guthrie [Mon, 29 Jun 2009 19:10:04 +0000 (20:10 +0100)]
device-manager: Only store and save details for non-monitor sources

14 years agostream-restore: Preventative initialistion to NULL
Colin Guthrie [Mon, 29 Jun 2009 18:55:34 +0000 (19:55 +0100)]
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...

14 years agodevice-restore: Fix the application of an entry to allow changing the name of devices.
Colin Guthrie [Sun, 28 Jun 2009 14:33:38 +0000 (15:33 +0100)]
device-restore: Fix the application of an entry to allow changing the name of devices.

This fixes a few bugs in the copy+pasted implementation of apply_entry()/get_name().

14 years agodevice-manager: Fix tagstruct description extraction (copy+paste blunder)
Colin Guthrie [Sun, 28 Jun 2009 13:40:00 +0000 (14:40 +0100)]
device-manager: Fix tagstruct description extraction (copy+paste blunder)

14 years agodevice-manager: Link native protocol library.
Colin Guthrie [Sun, 28 Jun 2009 12:21:43 +0000 (13:21 +0100)]
device-manager: Link native protocol library.

14 years agodevice-manager: Export device-manager extension functions
Colin Guthrie [Sun, 28 Jun 2009 12:08:17 +0000 (13:08 +0100)]
device-manager: Export device-manager extension functions

14 years agodevice-manager: Fix indentation
Colin Guthrie [Sat, 27 Jun 2009 21:09:00 +0000 (22:09 +0100)]
device-manager: Fix indentation

14 years agodevice-manager: Add an untested protocol extension.
Colin Guthrie [Sat, 27 Jun 2009 21:08:07 +0000 (22:08 +0100)]
device-manager: Add an untested protocol extension.

This is effectively copied from the stream restore extension.

14 years agodevice-manager: Add a new module to keep track of the names and descriptions of vario...
Colin Guthrie [Sat, 27 Jun 2009 20:03:37 +0000 (21:03 +0100)]
device-manager: Add a new module to keep track of the names and descriptions of various sinks.

This will be used as the basis for a queryable system for past and present devices, initially for use in KDE.
Currently all this module does is save lists of sinks/sources and their descriptions, so it needs to
gain a protocol extension to make this queryable.

As things stand it will save the device descriptions of all sinks and restore them if they differ from whats on record.

14 years agobuild-sys: bump soname v0.9.19
Lennart Poettering [Wed, 30 Sep 2009 01:04:12 +0000 (03:04 +0200)]
build-sys: bump soname

14 years agoi18n: run make update-po
Lennart Poettering [Wed, 30 Sep 2009 00:43:55 +0000 (02:43 +0200)]
i18n: run make update-po

14 years agoi18n: ad more .c files to POTFILES.in
Lennart Poettering [Tue, 29 Sep 2009 21:48:37 +0000 (23:48 +0200)]
i18n: ad more .c files to POTFILES.in

14 years agopolkit: drop left-over polkit policy file from git tree
Lennart Poettering [Tue, 29 Sep 2009 21:47:49 +0000 (23:47 +0200)]
polkit: drop left-over polkit policy file from git tree

14 years agoDon't refuse to start on systems using GNU stow, graft, STORE et al
Nix [Sat, 26 Sep 2009 19:18:00 +0000 (20:18 +0100)]
Don't refuse to start on systems using GNU stow, graft, STORE et al

There are multiple package management systems out there which implement
packages using symlinks. The recent (otherwise useful) check to ensure that
a re-executed pulseaudio is actually reexecuting itself unfortunately breaks
in the presence of all these packaging systems, because PA_BINARY refers
to its installed location (e.g. /usr/local/bin/pulseaudio), which is a
symlink to the binary (e.g. /usr/local/stow/pulseaudio-0.9.18/bin/pulseaudio),
because /proc/self/exe always contains the canonical path of the executable,
with all symlinks resolved.

(At least one distribution uses a symlink-based packaging system, so
will be forced to apply this locally in any case.)

The fix is simple: canonicalize PA_BINARY before equality-testing. (This
should be completely safe, because the OS does just that when PA_BINARY
is executed.)

The patch is against 0.9.18, but applies without fuzz to current master.

14 years agoi18n: run make update-po
Lennart Poettering [Tue, 29 Sep 2009 17:27:02 +0000 (19:27 +0200)]
i18n: run make update-po

14 years agoMerge remote branch 'origin/master-tx'
Lennart Poettering [Tue, 29 Sep 2009 17:24:26 +0000 (19:24 +0200)]
Merge remote branch 'origin/master-tx'

14 years agoreserve: downgrade reserve logic messages, so that reusing pa in two sessions does...
Lennart Poettering [Tue, 29 Sep 2009 02:54:37 +0000 (19:54 -0700)]
reserve: downgrade reserve logic messages, so that reusing pa in two sessions does not create spew in syslog

14 years agoSending translation for German
jsimon [Mon, 28 Sep 2009 14:50:12 +0000 (14:50 +0000)]
Sending translation for German

14 years agoSending translation for German
jsimon [Mon, 28 Sep 2009 14:48:17 +0000 (14:48 +0000)]
Sending translation for German

14 years agoSending translation for Polish
raven [Sun, 27 Sep 2009 13:42:46 +0000 (13:42 +0000)]
Sending translation for Polish

14 years agosvolume: tweak constraints for 32 bits
Wim Taymans [Wed, 23 Sep 2009 15:16:04 +0000 (17:16 +0200)]
svolume: tweak constraints for 32 bits

Tweak the constraints a little so that register starved 32bit systems
can select a stack variable for the channel paramter instead of reusing one of
the registers we're using in the code.

14 years agoSending translation for Portuguese
ruigo [Tue, 22 Sep 2009 20:45:29 +0000 (20:45 +0000)]
Sending translation for Portuguese

14 years agolibpulse: Add *_NOFLAGS flags with value 0 for various enums
Colin Guthrie [Tue, 22 Sep 2009 17:43:03 +0000 (18:43 +0100)]
libpulse: Add *_NOFLAGS flags with value 0 for various enums

This avoids the need for ugly casting in client implementations.

14 years agoSending translation for Kannada
shanky [Tue, 22 Sep 2009 10:12:04 +0000 (10:12 +0000)]
Sending translation for Kannada

14 years agoSending translation for Malayalam
anipeter [Mon, 21 Sep 2009 15:24:57 +0000 (15:24 +0000)]
Sending translation for Malayalam

14 years agoSending translation for Marathi
sandeeps [Mon, 21 Sep 2009 12:49:41 +0000 (12:49 +0000)]
Sending translation for Marathi

14 years agoSending translation for Telugu
kkrothap [Mon, 21 Sep 2009 11:57:52 +0000 (11:57 +0000)]
Sending translation for Telugu

14 years agoSending translation for Hindi
rajesh [Mon, 21 Sep 2009 10:57:45 +0000 (10:57 +0000)]
Sending translation for Hindi

14 years agotunnel: fix parsing of source info from newer servers
Colin Guthrie [Sun, 20 Sep 2009 20:36:14 +0000 (21:36 +0100)]
tunnel: fix parsing of source info from newer servers

14 years agotunnel: fix parsing of sink info from newer servers
Emil Renner Berthing [Sun, 20 Sep 2009 19:28:23 +0000 (21:28 +0200)]
tunnel: fix parsing of sink info from newer servers

14 years agostream-restore: Comment fix
Colin Guthrie [Sun, 20 Sep 2009 17:07:23 +0000 (18:07 +0100)]
stream-restore: Comment fix

14 years agocore: dump proplist when creating stream similar to how we already to it for sinks...
Lennart Poettering [Sun, 20 Sep 2009 01:18:03 +0000 (03:18 +0200)]
core: dump proplist when creating stream similar to how we already to it for sinks/sources

14 years agoalsa: make build gcc clean on 32bit
Lennart Poettering [Sun, 20 Sep 2009 01:17:36 +0000 (03:17 +0200)]
alsa: make build gcc clean on 32bit

14 years agoMerge remote branch 'origin/master-tx'
Lennart Poettering [Sat, 19 Sep 2009 00:35:13 +0000 (02:35 +0200)]
Merge remote branch 'origin/master-tx'

14 years agobuild-sys: bump soname for release v0.9.18
Lennart Poettering [Fri, 18 Sep 2009 23:58:03 +0000 (01:58 +0200)]
build-sys: bump soname for release

14 years agovala: install .vapi file by default
Lennart Poettering [Fri, 18 Sep 2009 23:55:46 +0000 (01:55 +0200)]
vala: install .vapi file by default

14 years agovala: numerous updates
Lennart Poettering [Fri, 18 Sep 2009 23:49:36 +0000 (01:49 +0200)]
vala: numerous updates

14 years agoSending translation for Portuguese
ricardopinto [Fri, 18 Sep 2009 22:44:59 +0000 (22:44 +0000)]
Sending translation for Portuguese

14 years agomemtrap: properly add items to linked list
Lennart Poettering [Fri, 18 Sep 2009 22:21:34 +0000 (00:21 +0200)]
memtrap: properly add items to linked list

14 years agogconf: run the wrapper script when running gconf-helper from build tree
Lennart Poettering [Fri, 18 Sep 2009 21:31:54 +0000 (23:31 +0200)]
gconf: run the wrapper script when running gconf-helper from build tree

14 years agonamereg: choose default sink/source as soon as one becomes available
Lennart Poettering [Fri, 18 Sep 2009 20:42:37 +0000 (22:42 +0200)]
namereg: choose default sink/source as soon as one becomes available

14 years agoi18n: run make update-po
Lennart Poettering [Fri, 18 Sep 2009 20:21:08 +0000 (22:21 +0200)]
i18n: run make update-po

14 years agoMerge remote branch 'origin/master-tx'
Lennart Poettering [Fri, 18 Sep 2009 20:16:59 +0000 (22:16 +0200)]
Merge remote branch 'origin/master-tx'

14 years agomemblock: don't try to reuse PA_MEMBLOCK_APPENDED memblocks since they usually are...
Lennart Poettering [Fri, 18 Sep 2009 20:15:33 +0000 (22:15 +0200)]
memblock: don't try to reuse PA_MEMBLOCK_APPENDED memblocks since they usually are much bigger than we want them

14 years agomainloop: fix detection of rt clocks
Lennart Poettering [Fri, 18 Sep 2009 20:14:55 +0000 (22:14 +0200)]
mainloop: fix detection of rt clocks

14 years agosocket-client: modernizations
Lennart Poettering [Fri, 18 Sep 2009 19:24:58 +0000 (21:24 +0200)]
socket-client: modernizations

14 years agomemblock: modernizations
Lennart Poettering [Fri, 18 Sep 2009 19:24:26 +0000 (21:24 +0200)]
memblock: modernizations

14 years agoconf: Fix typo in daemon.conf: rlimit-rtttime - too many t's
Colin Guthrie [Fri, 18 Sep 2009 15:10:13 +0000 (16:10 +0100)]
conf: Fix typo in daemon.conf: rlimit-rtttime - too many t's

Spotted by peol on IRC

14 years agoSending translation for Tamil
ifelix [Fri, 18 Sep 2009 08:47:14 +0000 (08:47 +0000)]
Sending translation for Tamil

14 years agoalsa: Give all ports a human name to allow UI tools to present the choice to users.
Colin Guthrie [Fri, 18 Sep 2009 08:22:23 +0000 (09:22 +0100)]
alsa: Give all ports a human name to allow UI tools to present the choice to users.

14 years agortp: Remove 'fix me' comment after it was actually fixed in [56b6e1]
Colin Guthrie [Fri, 18 Sep 2009 08:18:04 +0000 (09:18 +0100)]
rtp: Remove 'fix me' comment after it was actually fixed in [56b6e1]

That's what you get for applying your stash without fully checking if anything else was committed in the mean time :p

14 years agomainloop: pass monotonic times back to user if he passed monotonic times to us
Lennart Poettering [Fri, 18 Sep 2009 02:21:01 +0000 (04:21 +0200)]
mainloop: pass monotonic times back to user if he passed monotonic times to us

14 years agotimeval: make timeval conversion routines handle PA_USEC_INVALID special
Lennart Poettering [Fri, 18 Sep 2009 02:11:59 +0000 (04:11 +0200)]
timeval: make timeval conversion routines handle PA_USEC_INVALID special

14 years agotimeval: add UNLIKELY annotation
Lennart Poettering [Fri, 18 Sep 2009 02:11:02 +0000 (04:11 +0200)]
timeval: add UNLIKELY annotation

14 years agotimeval: make pa_timeval_sub saturating
Lennart Poettering [Fri, 18 Sep 2009 02:10:26 +0000 (04:10 +0200)]
timeval: make pa_timeval_sub saturating

14 years agocore-rtclock: introduce pa_timespec_store() akin pa_timeval_store()
Lennart Poettering [Fri, 18 Sep 2009 02:08:36 +0000 (04:08 +0200)]
core-rtclock: introduce pa_timespec_store() akin pa_timeval_store()

14 years agotimeval: introduce PA_USEC_MAX
Lennart Poettering [Fri, 18 Sep 2009 02:07:12 +0000 (04:07 +0200)]
timeval: introduce PA_USEC_MAX

14 years agomacro: introduce PA_INT_TYPE_MIN, PA_INT_TYPE_MAX, PA_INT_TYPE_SIGNED macros
Lennart Poettering [Fri, 18 Sep 2009 02:05:54 +0000 (04:05 +0200)]
macro: introduce PA_INT_TYPE_MIN, PA_INT_TYPE_MAX, PA_INT_TYPE_SIGNED macros

14 years agomainloop: sum up dispatched events in an unsigned to clarify range
Lennart Poettering [Fri, 18 Sep 2009 02:05:10 +0000 (04:05 +0200)]
mainloop: sum up dispatched events in an unsigned to clarify range

14 years agomainloop: use PA_LLIST_FOREACH macros where applicable
Lennart Poettering [Fri, 18 Sep 2009 02:03:49 +0000 (04:03 +0200)]
mainloop: use PA_LLIST_FOREACH macros where applicable

14 years agomainloop: don't initialize fields we don't have to
Lennart Poettering [Fri, 18 Sep 2009 02:00:38 +0000 (04:00 +0200)]
mainloop: don't initialize fields we don't have to

14 years agomainloop: calculate in pa_usec_t everywhere
Lennart Poettering [Fri, 18 Sep 2009 01:59:40 +0000 (03:59 +0200)]
mainloop: calculate in pa_usec_t everywhere

14 years agomainloop: properly convert time to wallclock time when handing it to the user
Lennart Poettering [Fri, 18 Sep 2009 01:48:55 +0000 (03:48 +0200)]
mainloop: properly convert time to wallclock time when handing it to the user

14 years agoalsa: fix Surround mixer element name
Lennart Poettering [Fri, 18 Sep 2009 01:46:33 +0000 (03:46 +0200)]
alsa: fix Surround mixer element name

s/Sourround/Surround/

Spotted by Colin Guthrie

14 years agoSending translation for Portuguese
ricardopinto [Fri, 18 Sep 2009 01:04:02 +0000 (01:04 +0000)]
Sending translation for Portuguese

14 years agortp: Factor out direct io writing and use ioline instead.
Colin Guthrie [Thu, 17 Sep 2009 23:20:46 +0000 (00:20 +0100)]
rtp: Factor out direct io writing and use ioline instead.

This is how things should have worked orinally, but I obviously misunderstood things a bit.
This seems to prevent the random hangups that were happening previously :)

14 years agoraop: Use pa_module_unload_request_by_index as per module-zeroconf-discover
Colin Guthrie [Wed, 16 Sep 2009 19:54:51 +0000 (20:54 +0100)]
raop: Use pa_module_unload_request_by_index as per module-zeroconf-discover

14 years agocore-util: unify how we determine the temporary directory
Lennart Poettering [Thu, 17 Sep 2009 19:06:54 +0000 (21:06 +0200)]
core-util: unify how we determine the temporary directory

14 years agoImprove TMPDIR handling
Lennart Poettering [Thu, 17 Sep 2009 18:58:36 +0000 (20:58 +0200)]
Improve TMPDIR handling

Patch from 'jnelson',

http://pulseaudio.org/ticket/653

14 years agocli: properly destruct cli object
Lennart Poettering [Thu, 17 Sep 2009 02:04:54 +0000 (04:04 +0200)]
cli: properly destruct cli object

14 years agocli: don't accidentaly set O_NDELAY on stderr
Lennart Poettering [Thu, 17 Sep 2009 01:51:35 +0000 (03:51 +0200)]
cli: don't accidentaly set O_NDELAY on stderr

Loading module-cli could have the effect of setting O_NDELAY on stderr,
because it was just a dup'ed fd of stdin which module-cli sets O_NDELAY
for and which flag is shared between all dupes.

Instead of using stdin/stdout directly we now open a new file descriptor
for the controlling terminal, which is equally useful as stdin/stdout
but gives a new file that does not share O_NDELAY with stdin/stdout.

This solves a problem where when running pulseaudio -C resulted in
log output being truncated since stdio does not really handle O_NDELAY
that well in on its fds.

14 years agoproplist: introduce PA_PROP_WINDOW_DESKTOP property
Lennart Poettering [Thu, 17 Sep 2009 00:22:41 +0000 (02:22 +0200)]
proplist: introduce PA_PROP_WINDOW_DESKTOP property

14 years agoposition-event-sounds: don't warn that loud about vpos/hpos out of range
Lennart Poettering [Thu, 17 Sep 2009 00:04:59 +0000 (02:04 +0200)]
position-event-sounds: don't warn that loud about vpos/hpos out of range

14 years agolibpulse: as a special exception, don't require a non-NULL context in pa_context_errno
Lennart Poettering [Wed, 16 Sep 2009 23:37:23 +0000 (01:37 +0200)]
libpulse: as a special exception, don't require a non-NULL context in pa_context_errno

14 years agosvolume_mmx: disable test accidentaly left on
Lennart Poettering [Wed, 16 Sep 2009 23:34:02 +0000 (01:34 +0200)]
svolume_mmx: disable test accidentaly left on

14 years agoMerge remote branch 'wtay/optimize'
Lennart Poettering [Wed, 16 Sep 2009 23:32:03 +0000 (01:32 +0200)]
Merge remote branch 'wtay/optimize'

14 years agoalsa: correct assumptions about channels an element lacks
Vladimir Kokarev [Wed, 16 Sep 2009 23:26:18 +0000 (01:26 +0200)]
alsa: correct assumptions about channels an element lacks

If an element does not control some channels assume they are 0dB in
comparison to the other elements, i.e. do not influence the volume at
all. Previously we were assuming they were as high as the highest of the
channels we do control.

14 years agopacat: use fully automatic buffer sizes if possible
Lennart Poettering [Wed, 16 Sep 2009 23:22:48 +0000 (01:22 +0200)]
pacat: use fully automatic buffer sizes if possible

14 years agomemblock: make it easy to disable mempool usage with $PULSE_MEMPOOL_DISABLE
Lennart Poettering [Wed, 16 Sep 2009 23:21:56 +0000 (01:21 +0200)]
memblock: make it easy to disable mempool usage with $PULSE_MEMPOOL_DISABLE

14 years agoCANCELLED vs. CANCELED
Lennart Poettering [Wed, 16 Sep 2009 23:19:55 +0000 (01:19 +0200)]
CANCELLED vs. CANCELED

Define CANCELLED as alias for CANCELED

14 years agoSending translation for Serbian (Latin)
kmilos [Wed, 16 Sep 2009 21:13:47 +0000 (21:13 +0000)]
Sending translation for Serbian (Latin)

14 years agoSending translation for Serbian
kmilos [Wed, 16 Sep 2009 21:12:57 +0000 (21:12 +0000)]
Sending translation for Serbian

14 years agosvolume_mmx: optimize some more
Wim Taymans [Sat, 12 Sep 2009 10:02:59 +0000 (12:02 +0200)]
svolume_mmx: optimize some more

We can reorder the algortihm a bit like we do for sse so that we
don't need the contants and masking instructions. Saves 2 instructions
for the mmx code.

14 years agosvolume_sse: fix comment
Wim Taymans [Sat, 12 Sep 2009 10:02:40 +0000 (12:02 +0200)]
svolume_sse: fix comment

14 years agoSending translation for Finnish
vpv [Tue, 15 Sep 2009 10:25:55 +0000 (10:25 +0000)]
Sending translation for Finnish

14 years agogccmacro: enable weakrefs only on ELF
Lennart Poettering [Tue, 15 Sep 2009 02:31:54 +0000 (04:31 +0200)]
gccmacro: enable weakrefs only on ELF

14 years agoSending translation for Swiss German
fab [Mon, 14 Sep 2009 08:25:22 +0000 (08:25 +0000)]
Sending translation for Swiss German

14 years agoSending translation for German
fab [Mon, 14 Sep 2009 08:23:07 +0000 (08:23 +0000)]
Sending translation for German

14 years agoSending translation for Ukrainian
mvdz [Mon, 14 Sep 2009 03:47:03 +0000 (03:47 +0000)]
Sending translation for Ukrainian