profile/ivi/pulseaudio.git
15 years agoalsa-util: check if mixer_poll_descriptors_count() < 0
Marc-André Lureau [Wed, 18 Feb 2009 19:35:18 +0000 (21:35 +0200)]
alsa-util: check if mixer_poll_descriptors_count() < 0

15 years agopulsecore: don't leak p when make_random_dir_and_link()
Marc-André Lureau [Wed, 18 Feb 2009 19:23:41 +0000 (21:23 +0200)]
pulsecore: don't leak p when make_random_dir_and_link()

15 years agopulsecore: don't leak d in case of error
Marc-André Lureau [Wed, 18 Feb 2009 19:21:25 +0000 (21:21 +0200)]
pulsecore: don't leak d in case of error

15 years agortp: remove unused variable a
Marc-André Lureau [Wed, 18 Feb 2009 18:31:54 +0000 (20:31 +0200)]
rtp: remove unused variable a

15 years agoprotocol-native: don't leak a proplist
Marc-André Lureau [Wed, 18 Feb 2009 18:00:57 +0000 (20:00 +0200)]
protocol-native: don't leak a proplist

15 years agostream-resotre: don't leak a name
Marc-André Lureau [Wed, 18 Feb 2009 17:44:55 +0000 (19:44 +0200)]
stream-resotre: don't leak a name

15 years agoprotocol-esound: don't accept a request of PROTOCOL_MAX
Marc-André Lureau [Wed, 18 Feb 2009 17:26:21 +0000 (19:26 +0200)]
protocol-esound: don't accept a request of PROTOCOL_MAX

15 years agodaemon-conf: make sure c->log_level < LEVEL_MAX
Marc-André Lureau [Wed, 18 Feb 2009 17:15:43 +0000 (19:15 +0200)]
daemon-conf: make sure c->log_level < LEVEL_MAX

15 years agopulsecore: use r returned from fgets()
Marc-André Lureau [Wed, 18 Feb 2009 16:21:25 +0000 (18:21 +0200)]
pulsecore: use r returned from fgets()

15 years agopulsecore: unused variable e in hashmap_put()
Marc-André Lureau [Wed, 18 Feb 2009 16:16:45 +0000 (18:16 +0200)]
pulsecore: unused variable e in hashmap_put()

15 years agotests/ipacl-test: check inet_pton()
Marc-André Lureau [Tue, 17 Feb 2009 20:58:59 +0000 (22:58 +0200)]
tests/ipacl-test: check inet_pton()

15 years agopadsp: don't use si if it's NULL
Marc-André Lureau [Tue, 17 Feb 2009 20:37:16 +0000 (22:37 +0200)]
padsp: don't use si if it's NULL

15 years agopulsecore: fix check for cb (m is already checked before)
Marc-André Lureau [Tue, 17 Feb 2009 20:32:40 +0000 (22:32 +0200)]
pulsecore: fix check for cb (m is already checked before)

15 years agopacat: remove unused variable
Marc-André Lureau [Tue, 17 Feb 2009 20:17:10 +0000 (22:17 +0200)]
pacat: remove unused variable

15 years agortp-recv: remove unused variable assignment
Marc-André Lureau [Tue, 17 Feb 2009 20:06:25 +0000 (22:06 +0200)]
rtp-recv: remove unused variable assignment

15 years agopulsecore: remove unused variable from cli_command_load()
Marc-André Lureau [Tue, 17 Feb 2009 20:07:57 +0000 (22:07 +0200)]
pulsecore: remove unused variable from cli_command_load()

15 years agomain: remove unused lf variable
Marc-André Lureau [Tue, 17 Feb 2009 19:59:45 +0000 (21:59 +0200)]
main: remove unused lf variable

15 years agopactl: return in case of error reading file (avoid using freed d)
Marc-André Lureau [Tue, 17 Feb 2009 18:52:11 +0000 (20:52 +0200)]
pactl: return in case of error reading file (avoid using freed d)

15 years agotests/thread-mainloop-test: check if threaded_mainloop_start() succeed
Marc-André Lureau [Tue, 17 Feb 2009 18:38:51 +0000 (20:38 +0200)]
tests/thread-mainloop-test: check if threaded_mainloop_start() succeed

15 years agotests/interpol-test: check if mainloop_start() succeed
Marc-André Lureau [Tue, 17 Feb 2009 18:36:38 +0000 (20:36 +0200)]
tests/interpol-test: check if mainloop_start() succeed

15 years agotests/sync-playback: check if pa_context_connect succeed
Marc-André Lureau [Tue, 17 Feb 2009 18:34:05 +0000 (20:34 +0200)]
tests/sync-playback: check if pa_context_connect succeed

15 years agopactl: check if pa_context_connect succeed
Marc-André Lureau [Tue, 17 Feb 2009 18:31:06 +0000 (20:31 +0200)]
pactl: check if pa_context_connect succeed

15 years agopaplay: check if pa_context_connect() succeed
Marc-André Lureau [Tue, 17 Feb 2009 18:27:45 +0000 (20:27 +0200)]
paplay: check if pa_context_connect() succeed

15 years agoprotocol-native: fix get_info() for cards
Marc-André Lureau [Tue, 17 Feb 2009 18:18:56 +0000 (20:18 +0200)]
protocol-native: fix get_info() for cards

15 years agocard-restore: it's not useful to check an array, let's check the length
Marc-André Lureau [Thu, 19 Feb 2009 03:49:58 +0000 (04:49 +0100)]
card-restore: it's not useful to check an array, let's check the length

15 years agolog: don't leak bt
Marc-André Lureau [Tue, 17 Feb 2009 18:06:35 +0000 (20:06 +0200)]
log: don't leak bt

15 years agoalsa-util: make sure we check an initialized cn variable
Marc-André Lureau [Tue, 17 Feb 2009 17:35:01 +0000 (19:35 +0200)]
alsa-util: make sure we check an initialized cn variable

15 years agohal-detect: make sure r is initialized, so we don't take random path
Marc-André Lureau [Tue, 17 Feb 2009 17:26:21 +0000 (19:26 +0200)]
hal-detect: make sure r is initialized, so we don't take random path

15 years agodbus-util: avoid double free
Marc-André Lureau [Tue, 17 Feb 2009 17:19:07 +0000 (19:19 +0200)]
dbus-util: avoid double free

15 years agosplit out mixer setup into seperate functions to make things more readable
Lennart Poettering [Thu, 19 Feb 2009 03:04:42 +0000 (04:04 +0100)]
split out mixer setup into seperate functions to make things more readable

15 years agomodernize pa_msleep() a bit
Lennart Poettering [Thu, 19 Feb 2009 03:01:12 +0000 (04:01 +0100)]
modernize pa_msleep() a bit

15 years agoadd pa_timespec_load
Lennart Poettering [Thu, 19 Feb 2009 03:00:29 +0000 (04:00 +0100)]
add pa_timespec_load

15 years agomake interpol-test useful for recording as well
Lennart Poettering [Thu, 19 Feb 2009 02:59:56 +0000 (03:59 +0100)]
make interpol-test useful for recording as well

15 years agoadditional validity check
Lennart Poettering [Thu, 19 Feb 2009 02:59:04 +0000 (03:59 +0100)]
additional validity check

15 years agoadditional validity check
Lennart Poettering [Thu, 19 Feb 2009 02:58:52 +0000 (03:58 +0100)]
additional validity check

15 years agohandle both positive and negative errno's
Lennart Poettering [Thu, 19 Feb 2009 02:56:31 +0000 (03:56 +0100)]
handle both positive and negative errno's

15 years agoexport card information for sinks/sources and number of sinks/sources a profile would...
Lennart Poettering [Wed, 18 Feb 2009 21:11:50 +0000 (22:11 +0100)]
export card information for sinks/sources and number of sinks/sources a profile would create to clients

15 years agointroduce pa_realpath()
Lennart Poettering [Wed, 18 Feb 2009 20:57:57 +0000 (21:57 +0100)]
introduce pa_realpath()

15 years agoexport pa_match()
Lennart Poettering [Wed, 18 Feb 2009 20:57:16 +0000 (21:57 +0100)]
export pa_match()

15 years agoif we fail to import a memblock fill in silence to guarantee stability of timing
Lennart Poettering [Wed, 18 Feb 2009 20:55:55 +0000 (21:55 +0100)]
if we fail to import a memblock fill in silence to guarantee stability of timing

15 years agoallow importing of more memory blocks than exporting
Lennart Poettering [Wed, 18 Feb 2009 20:52:21 +0000 (21:52 +0100)]
allow importing of more memory blocks than exporting

15 years agorefer folks to the ALSA devs, not us
Lennart Poettering [Wed, 18 Feb 2009 20:50:27 +0000 (21:50 +0100)]
refer folks to the ALSA devs, not us

15 years agominor optimizations
Lennart Poettering [Wed, 18 Feb 2009 20:50:09 +0000 (21:50 +0100)]
minor optimizations

15 years agosimplify pa_alsa_init_proplist_pcm() a bit and include resolution bits in alsa device...
Lennart Poettering [Wed, 18 Feb 2009 20:49:31 +0000 (21:49 +0100)]
simplify pa_alsa_init_proplist_pcm() a bit and include resolution bits in alsa device props

15 years agoallow pa to be run in a chroot() environment tht lacks /proc
Lennart Poettering [Wed, 18 Feb 2009 20:45:06 +0000 (21:45 +0100)]
allow pa to be run in a chroot() environment tht lacks /proc

15 years agobump required alsa version
Lennart Poettering [Wed, 18 Feb 2009 20:44:30 +0000 (21:44 +0100)]
bump required alsa version

15 years agodon't open the alsa devices in hw:xxx mode
Lennart Poettering [Sun, 15 Feb 2009 19:34:38 +0000 (20:34 +0100)]
don't open the alsa devices in hw:xxx mode

15 years agounify ALSA mixer initialization
Lennart Poettering [Fri, 13 Feb 2009 23:21:36 +0000 (00:21 +0100)]
unify ALSA mixer initialization

15 years agoadd doxygen comment for PA_GCC_WEAKREF
Lennart Poettering [Fri, 13 Feb 2009 22:06:41 +0000 (23:06 +0100)]
add doxygen comment for PA_GCC_WEAKREF

15 years agodocument all currently known properties
Lennart Poettering [Fri, 13 Feb 2009 22:01:24 +0000 (23:01 +0100)]
document all currently known properties

15 years agoOptionally disable IPv6
Iain Hibbert [Fri, 13 Feb 2009 20:58:09 +0000 (21:58 +0100)]
Optionally disable IPv6

Closes #79

15 years agoshow whether gtk+ support is enabled after configure
Lennart Poettering [Fri, 13 Feb 2009 20:57:27 +0000 (21:57 +0100)]
show whether gtk+ support is enabled after configure

15 years agoignore gtk-test
Lennart Poettering [Fri, 13 Feb 2009 20:57:00 +0000 (21:57 +0100)]
ignore gtk-test

15 years agoproperly read icon/application name/display from gtk/glib/gdk
Lennart Poettering [Fri, 13 Feb 2009 17:19:10 +0000 (18:19 +0100)]
properly read icon/application name/display from gtk/glib/gdk

15 years agomake PULSE_PROP env vars non-overriding but introduce PULSE_PROP_OVERRIDE for allowin...
Lennart Poettering [Fri, 13 Feb 2009 17:06:30 +0000 (18:06 +0100)]
make PULSE_PROP env vars non-overriding but introduce PULSE_PROP_OVERRIDE for allowing overriding

15 years agoadd definition for GCC style weak references
Lennart Poettering [Fri, 13 Feb 2009 17:03:21 +0000 (18:03 +0100)]
add definition for GCC style weak references

15 years agomake PA_GCC_PACKED and PA_GCC_MALLOC actually work
Lennart Poettering [Fri, 13 Feb 2009 17:02:47 +0000 (18:02 +0100)]
make PA_GCC_PACKED and PA_GCC_MALLOC actually work

15 years agodrop check for PA_PROP_APPLICATION_NAME since often enough we can deduce this better...
Lennart Poettering [Fri, 13 Feb 2009 17:01:00 +0000 (18:01 +0100)]
drop check for PA_PROP_APPLICATION_NAME since often enough we can deduce this better from g_get_application_name()

15 years agowe reinit proplist since the server will copy from client proplist anyway
Lennart Poettering [Fri, 13 Feb 2009 16:59:53 +0000 (17:59 +0100)]
we reinit proplist since the server will copy from client proplist anyway

15 years agofix aiff channel mapping for 6 channels
Lennart Poettering [Fri, 13 Feb 2009 14:48:34 +0000 (15:48 +0100)]
fix aiff channel mapping for 6 channels

15 years agoadd a module that forwards cork/uncork requests to X11 as fake pause/resume key events
Lennart Poettering [Fri, 13 Feb 2009 01:39:07 +0000 (02:39 +0100)]
add a module that forwards cork/uncork requests to X11 as fake pause/resume key events

15 years agoadd full set of argument description
Lennart Poettering [Thu, 12 Feb 2009 22:14:24 +0000 (23:14 +0100)]
add full set of argument description

15 years agodon't try to recycle rtpoll objects
Lennart Poettering [Thu, 12 Feb 2009 21:52:02 +0000 (22:52 +0100)]
don't try to recycle rtpoll objects

15 years agodon't claim that profile changes are always successful
Lennart Poettering [Thu, 12 Feb 2009 21:09:17 +0000 (22:09 +0100)]
don't claim that profile changes are always successful

15 years agouse the same service fd shutdown logic when destructing module and changing profile
Lennart Poettering [Thu, 12 Feb 2009 21:09:00 +0000 (22:09 +0100)]
use the same service fd shutdown logic when destructing module and changing profile

15 years agominor service IO fixes
Lennart Poettering [Thu, 12 Feb 2009 21:06:15 +0000 (22:06 +0100)]
minor service IO fixes

15 years agothe service fd is a stream socket, so handle things accordingly
Lennart Poettering [Thu, 12 Feb 2009 20:45:17 +0000 (21:45 +0100)]
the service fd is a stream socket, so handle things accordingly

15 years agorun make update-po
Lennart Poettering [Thu, 12 Feb 2009 15:57:53 +0000 (16:57 +0100)]
run make update-po

15 years agoprepare test2
Lennart Poettering [Thu, 12 Feb 2009 15:51:52 +0000 (16:51 +0100)]
prepare test2

15 years agohandle errors from BT service properly
Lennart Poettering [Thu, 12 Feb 2009 15:51:02 +0000 (16:51 +0100)]
handle errors from BT service properly

15 years agomake module-hal-detect pick up all cards even when they have no device 0
Lennart Poettering [Thu, 12 Feb 2009 03:15:15 +0000 (04:15 +0100)]
make module-hal-detect pick up all cards even when they have no device 0

15 years agoproperly free modargs object when init fails; don't abbreviate modargs in struct
Lennart Poettering [Thu, 12 Feb 2009 03:00:40 +0000 (04:00 +0100)]
properly free modargs object when init fails; don't abbreviate modargs in struct

15 years agotabs are evil
Lennart Poettering [Thu, 12 Feb 2009 02:57:59 +0000 (03:57 +0100)]
tabs are evil

15 years agosome minor fixups
Lennart Poettering [Thu, 12 Feb 2009 02:56:01 +0000 (03:56 +0100)]
some minor fixups

15 years agoinstead of reparsing the rate module argument when changing profile, simply restore...
Lennart Poettering [Thu, 12 Feb 2009 02:47:27 +0000 (03:47 +0100)]
instead of reparsing the rate module argument when changing profile, simply restore the originally requested sample_spec, this also makes sure the channel count is properly reset

15 years agoaddendum to f56da9893: don't crash when s->sink is NULL
Lennart Poettering [Thu, 12 Feb 2009 02:42:28 +0000 (03:42 +0100)]
addendum to f56da9893: don't crash when s->sink is NULL

15 years agocall _kill functions instead of _unlink since the latter should only be called be...
Lennart Poettering [Thu, 12 Feb 2009 02:39:56 +0000 (03:39 +0100)]
call _kill functions instead of _unlink since the latter should only be called be the stream implementor

15 years agoMerge commit 'elmarco/bt-wip'
Lennart Poettering [Thu, 12 Feb 2009 02:35:57 +0000 (03:35 +0100)]
Merge commit 'elmarco/bt-wip'

15 years agominor reformatting
Lennart Poettering [Thu, 12 Feb 2009 02:20:52 +0000 (03:20 +0100)]
minor reformatting

15 years agodeclare 'animation' stream role for Flash and suchlike
Lennart Poettering [Thu, 12 Feb 2009 02:20:38 +0000 (03:20 +0100)]
declare 'animation' stream role for Flash and suchlike

15 years agomake gcc 4.4 shut up
Lennart Poettering [Thu, 12 Feb 2009 02:19:59 +0000 (03:19 +0100)]
make gcc 4.4 shut up

15 years agoimplement a module that corks music/video streams automatically when a phone call...
Lennart Poettering [Thu, 12 Feb 2009 02:19:40 +0000 (03:19 +0100)]
implement a module that corks music/video streams automatically when a phone call is active

15 years agoallow sending meta/policy events to clients
Lennart Poettering [Thu, 12 Feb 2009 02:18:05 +0000 (03:18 +0100)]
allow sending meta/policy events to clients

15 years agopulsecore: add PA_CORE_HOOK_*_MOVE_FAIL
Marc-André Lureau [Wed, 11 Feb 2009 17:16:42 +0000 (19:16 +0200)]
pulsecore: add PA_CORE_HOOK_*_MOVE_FAIL

In case pa_*_move_all_fail(), it is nicer to let a module override the
default behavior to fallback on a different sink/source. (instead of
unlinking the sink_input/source_output)

15 years agosuspend-on-idle: don't crash when so->source is NULL
Marc-André Lureau [Wed, 11 Feb 2009 14:06:54 +0000 (16:06 +0200)]
suspend-on-idle: don't crash when so->source is NULL

15 years agobluetooth: reinitialize the sample spec when switching profile
Marc-André Lureau [Tue, 10 Feb 2009 21:48:37 +0000 (23:48 +0200)]
bluetooth: reinitialize the sample spec when switching profile

When doing init_profile(), the value u->sample_spec is modified to the
one which has been last configured. In case of HSP, it will be 8kHz.

Later on, when setting the profile to A2DP, it picks up the lower rate
available which match with current u->sample_spec.

In my case, it would be 16kHz. To circunvent the issue, I decided to
reinitialize the u->sample_spec to default value with user module
argument requested rate.

15 years agobluetooth: export nrec
Marc-André Lureau [Tue, 3 Feb 2009 16:43:54 +0000 (18:43 +0200)]
bluetooth: export nrec

15 years agobluetooth: suspend SCO state when over PCM
Marc-André Lureau [Tue, 3 Feb 2009 16:17:20 +0000 (18:17 +0200)]
bluetooth: suspend SCO state when over PCM

15 years agobluetooth: SCO over PCM
Marc-André Lureau [Tue, 3 Feb 2009 15:15:41 +0000 (17:15 +0200)]
bluetooth: SCO over PCM

15 years agobluetooth: reconnect to audio service when switching profile
Marc-André Lureau [Mon, 9 Feb 2009 20:11:46 +0000 (22:11 +0200)]
bluetooth: reconnect to audio service when switching profile

Currently, Bluez audio service crash when reusing the same control
socket to switch to different profiles. This typically happen when
first switching from HSP to A2DP on dual headsets.

15 years agoMerge branch 'master-tx'
Lennart Poettering [Fri, 6 Feb 2009 01:15:13 +0000 (02:15 +0100)]
Merge branch 'master-tx'

Conflicts:
po/pl.po

15 years agoRTP segfault/uninitialized resampler
Erich Boleyn [Fri, 6 Feb 2009 01:11:07 +0000 (02:11 +0100)]
RTP segfault/uninitialized resampler

Erich Boleyn <erich@uruk.org> wrote:

> Using RTP for multi-room music streaming, updated to Pulse 0.9.14 from
> 0.9.9, RTP reception new crashes with a segfault on all machines at
> the first "Updating sample rate" log message.
>
> Source of the segfault appears to be null pointer for
> "impl_update_rates" function in resampler routine, perhaps
> uninitialized resamplers in general?

A fresh look after work made the resampler initialization code pop out.

The problem is in the sink connection being made from
"module-rtp-recv.c", the "PA_SINK_INPUT_VARIABLE_RATE" flag should be
passed into "pa_sink_input_new", but is not there.  Made the change and
tested it, fixes the problem.  Checked and head-of- tree off of the
pulseaudio.org source browsing link does not have this fix either.

One-liner patch attached.

15 years agoadd #defines for all enums that lacked it
Lennart Poettering [Fri, 6 Feb 2009 01:01:17 +0000 (02:01 +0100)]
add #defines for all enums that lacked it

15 years agoA few MacOS X portability fixes
Lennart Poettering [Thu, 5 Feb 2009 23:25:47 +0000 (00:25 +0100)]
A few MacOS X portability fixes

Based on patches contributed by "Tron".

See bug #478.

15 years agoUpdated Polish translation
Piotr Drąg [Thu, 5 Feb 2009 21:14:35 +0000 (21:14 +0000)]
Updated Polish translation

Transmitted-via: Transifex (translate.fedoraproject.org)

15 years agoadd new module-augment-properties module for augmenting properties from .desktop...
Lennart Poettering [Thu, 5 Feb 2009 03:14:30 +0000 (04:14 +0100)]
add new module-augment-properties module for augmenting properties from .desktop files

15 years agoparse ini-style sections properly
Lennart Poettering [Thu, 5 Feb 2009 03:11:26 +0000 (04:11 +0100)]
parse ini-style sections properly

15 years agomake native protocol use pa_{sink_input|source_output|card}_update_proplist()
Lennart Poettering [Thu, 5 Feb 2009 03:10:08 +0000 (04:10 +0100)]
make native protocol use pa_{sink_input|source_output|card}_update_proplist()

15 years agoadd missing hook
Lennart Poettering [Thu, 5 Feb 2009 03:09:27 +0000 (04:09 +0100)]
add missing hook

15 years agoallow overwriting of process properties with environment variables
Lennart Poettering [Thu, 5 Feb 2009 03:09:09 +0000 (04:09 +0100)]
allow overwriting of process properties with environment variables