profile/ivi/pulseaudio.git
12 years agosample-util: Fix "Darth Vader" panning bug
David Henningsson [Thu, 9 Feb 2012 14:59:20 +0000 (15:59 +0100)]
sample-util: Fix "Darth Vader" panning bug

For muted channels, we forgot to increment a pointer, so if one
channel was muted but not the other, sound became distorted in a
Darth Vader like way. To test the difference, start two input
streams and pan one of them hard left (or right).

And hey, if you didn't think it sounded like Darth Vader, it's
your imagination that's broken, not mine! ;-)

BugLink: https://bugs.launchpad.net/bugs/928757
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agosink-input,source-output: Handle devices going away in unlink hooks
Arun Raghavan [Thu, 9 Feb 2012 11:20:31 +0000 (16:50 +0530)]
sink-input,source-output: Handle devices going away in unlink hooks

If a *_UNLINK_POST hook causes a sink-input/source-output's sink/source
to go away, the subsequent attempt to update the sink/source status will
cause an assert. We deal with this by checking the sink/source status
before trying to update it.

12 years agoloopback: Trivial whitespace fix
Arun Raghavan [Tue, 7 Feb 2012 08:33:47 +0000 (14:03 +0530)]
loopback: Trivial whitespace fix

12 years agoloopback: Fix crash when moving sink-input fails
Frédéric Dalleau [Mon, 6 Feb 2012 17:15:36 +0000 (18:15 +0100)]
loopback: Fix crash when moving sink-input fails

12 years agoformat: Add "since 1.0" documentation tags where they were missing
Arun Raghavan [Mon, 6 Feb 2012 04:17:39 +0000 (09:47 +0530)]
format: Add "since 1.0" documentation tags where they were missing

12 years agoalsa-mixer: Take override-maps into account in subset elimination
David Henningsson [Thu, 2 Feb 2012 11:46:54 +0000 (12:46 +0100)]
alsa-mixer: Take override-maps into account in subset elimination

The practical problem is that some users were left with only one
"LFE on Mono" port, as analog-output was considered a subset of
analog-output-lfe-on-mono. Which was not what they wanted.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=40910
BugLink: https://bugs.launchpad.net/bugs/922656
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoalsa-mixer: Make sure unsupported paths are removed after probing
David Henningsson [Thu, 19 Jan 2012 09:30:31 +0000 (10:30 +0100)]
alsa-mixer: Make sure unsupported paths are removed after probing

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoloopback: Fix crashes
Maarten Lankhorst [Sun, 22 Jan 2012 13:11:23 +0000 (14:11 +0100)]
loopback: Fix crashes

Flush the message queue before tearing down, and dest==NULL is valid in case moving failed.

With this my module-loopback finally no longer causes frequent crashes.

12 years agoi18n: Run make update-po
Colin Guthrie [Mon, 30 Jan 2012 10:11:41 +0000 (10:11 +0000)]
i18n: Run make update-po

12 years agoi18n: Do not translate strings that cannot have any sensible translations.
Colin Guthrie [Mon, 30 Jan 2012 10:08:26 +0000 (10:08 +0000)]
i18n: Do not translate strings that cannot have any sensible translations.

12 years agoi18n: Fudge translations after previous commit to avoid mixing English/localized...
Colin Guthrie [Sat, 21 Jan 2012 10:10:03 +0000 (10:10 +0000)]
i18n: Fudge translations after previous commit to avoid mixing English/localized phrases.

The translations are now obviously outdated and wrong, but as the
core meaning has not changed, this is the lesser of two evils.

12 years agoalsa: Improve "well known descriptions" for ports
David Henningsson [Wed, 11 Jan 2012 14:40:08 +0000 (15:40 +0100)]
alsa: Improve "well known descriptions" for ports

 * If we don't have "Digital Speakers", we should say "Speakers"
   instead of "Analog Speakers", and similar for other ports.
 * Change "IEC958" to "S/PDIF" (more well known name)
 * Add new ports and mappings for HDMI
 * Change "Internal" to "Built-in" for the card name

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoalsa-mixer: Allow speaker port to control "Front Speaker"
David Henningsson [Thu, 12 Jan 2012 09:58:34 +0000 (10:58 +0100)]
alsa-mixer: Allow speaker port to control "Front Speaker"

"Front Speaker", "Surround Speaker" seems to be a common enough name
to make it into alsa-utils, so we should probably care about it as
well. In this case, there was a macbook pro whose speakers didn't work
without these controls.

BugLink: http://bugs.launchpad.net/bugs/551441
Reported-by: Jeroen T. Vermeulen <jtv@canonical.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agofix the ever-popular 'the the' typo
Peter Meerwald [Sun, 8 Jan 2012 12:16:51 +0000 (13:16 +0100)]
fix the ever-popular 'the the' typo

some are comments, some are user-visible doxygen text and documentation

12 years agomanpage: document --log-meta, --log-time, log-backtrace
Peter Meerwald [Sun, 8 Jan 2012 12:16:50 +0000 (13:16 +0100)]
manpage: document --log-meta, --log-time, log-backtrace

12 years agomanpage: document --log-target=file:PATH
Peter Meerwald [Sun, 8 Jan 2012 12:16:49 +0000 (13:16 +0100)]
manpage: document --log-target=file:PATH

12 years agostream-restore: Don't verify entry validity needlessly.
Tanu Kaskinen [Fri, 6 Jan 2012 14:15:58 +0000 (16:15 +0200)]
stream-restore: Don't verify entry validity needlessly.

clean_up_db() makes sure that all entries in the database
are valid.

12 years agostream-restore: Clean up the database at startup.
Tanu Kaskinen [Fri, 6 Jan 2012 14:14:03 +0000 (16:14 +0200)]
stream-restore: Clean up the database at startup.

Fixes a crash: https://bugs.freedesktop.org/show_bug.cgi?id=44522

12 years agopulse: Document general error handling.
Peter Meerwald [Sun, 8 Jan 2012 10:13:37 +0000 (11:13 +0100)]
pulse: Document general error handling.

12 years agobluetooth: Change function name add_matches to update_matches.
Tanu Kaskinen [Sun, 1 Jan 2012 17:44:28 +0000 (19:44 +0200)]
bluetooth: Change function name add_matches to update_matches.

A function that is used for removing matches should not be
called add_matches.

12 years agobluetooth: Remove the right match in the proximity module.
Tanu Kaskinen [Sun, 1 Jan 2012 17:44:27 +0000 (19:44 +0200)]
bluetooth: Remove the right match in the proximity module.

The original intention of this code was probably that if
adding filter1 succeeded but adding filter2 failed, then
filter1 should be removed so that either both or none of the
filters get added.

12 years agodbus: Give NULL as the error parameter to dbus_bus_remove_match().
Tanu Kaskinen [Sun, 1 Jan 2012 17:44:26 +0000 (19:44 +0200)]
dbus: Give NULL as the error parameter to dbus_bus_remove_match().

We didn't do anything anyway in case of failures. When we
give NULL as the error, dbus_bus_remove_match() can act
asynchronously, so it becomes faster. Also, the bus daemon
can avoid sending any replies, which reduces the amount of
traffic.

12 years agoRemove pa_prioq priority queue implementation
Maarten Bosmans [Fri, 18 Nov 2011 09:19:34 +0000 (10:19 +0100)]
Remove pa_prioq priority queue implementation

12 years agoalsa: Fix log message "synchronous volume" -> "deferred volume"
David Henningsson [Tue, 17 Jan 2012 08:28:30 +0000 (09:28 +0100)]
alsa: Fix log message "synchronous volume" -> "deferred volume"

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoalsa-mixer: Fix mixer path for AC3 profiles
Arun Raghavan [Tue, 17 Jan 2012 11:24:44 +0000 (16:54 +0530)]
alsa-mixer: Fix mixer path for AC3 profiles

The recent change to turn off the IEC958 element for analog paths
exposed a bug in AC3 profiles. These were inheriting the analog output
path instead of explicitly selecting the iec958 path.

Thanks to David Henningsson for pointing this out.

12 years agobluetooth: When receiving D-Bus errors, print also the error message.
Tanu Kaskinen [Tue, 13 Dec 2011 19:57:03 +0000 (21:57 +0200)]
bluetooth: When receiving D-Bus errors, print also the error message.

12 years agodbus: New helper function: pa_dbus_get_error_message().
Tanu Kaskinen [Tue, 13 Dec 2011 19:57:02 +0000 (21:57 +0200)]
dbus: New helper function: pa_dbus_get_error_message().

12 years agopulse: Turn the anonymous error code enum into pa_error_code_t.
Peter Meerwald [Mon, 12 Dec 2011 09:59:46 +0000 (10:59 +0100)]
pulse: Turn the anonymous error code enum into pa_error_code_t.

The purpose is to make it possible to link to the
enumeration in doxygen.

12 years agostream: Clarify the sign of error return codes
Arun Raghavan [Sat, 14 Jan 2012 04:44:01 +0000 (10:14 +0530)]
stream: Clarify the sign of error return codes

The returned error values are all negative, but the documentation did
not explicitly mention this. Thanks to Vincent Penquerc'h for pointing
this out.

12 years agoalsa-mixer: Turn off the IEC958 element for analog outputs
Arun Raghavan [Fri, 13 Jan 2012 04:10:04 +0000 (09:40 +0530)]
alsa-mixer: Turn off the IEC958 element for analog outputs

This is needed for the Creative Audigy CA0106 to work. Also makes sure
that the LED for optical out is shut down in analog modes on MacBooks
(these share a port for analog and digital output).

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44741

12 years agosconv: Fix generation of floats in SSE test code
Peter Meerwald [Mon, 9 Jan 2012 12:51:27 +0000 (13:51 +0100)]
sconv: Fix generation of floats in SSE test code

the random floats x should be zero-mean with -(1+eps)<x<(1+eps) for some
small epsilon; previously only negative x were generated

12 years agocore: Fix log message about ARM feature detection
Peter Meerwald [Wed, 11 Jan 2012 16:41:00 +0000 (22:11 +0530)]
core: Fix log message about ARM feature detection

12 years agocore: Fix return of pa_cpu_init_arm()
Peter Meerwald [Fri, 30 Dec 2011 21:28:31 +0000 (22:28 +0100)]
core: Fix return of pa_cpu_init_arm()

12 years agoalsa: Mention correct ALSA function in debug log
Peter Meerwald [Fri, 30 Dec 2011 21:28:30 +0000 (22:28 +0100)]
alsa: Mention correct ALSA function in debug log

12 years agoorc: Another trivial documentation fix
Arun Raghavan [Wed, 11 Jan 2012 07:48:20 +0000 (13:18 +0530)]
orc: Another trivial documentation fix

12 years agoorc: Trivial documentation typo fix
Arun Raghavan [Wed, 11 Jan 2012 07:41:09 +0000 (13:11 +0530)]
orc: Trivial documentation typo fix

12 years agoalsa-mixer: Refactor pa_alsa_profile_set_probe().
David Henningsson [Fri, 2 Dec 2011 17:14:18 +0000 (18:14 +0100)]
alsa-mixer: Refactor pa_alsa_profile_set_probe().

Increase readability of the pa_alsa_profile_set_probe function of
alsa-mixer.c

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoalsa-mixer: When selecting an input, turn off boosts of other inputs
David Henningsson [Tue, 20 Dec 2011 08:16:02 +0000 (09:16 +0100)]
alsa-mixer: When selecting an input, turn off boosts of other inputs

Just like we turn off the "Front Mic" element when we select "Rear Mic",
we should also turn off the "Front Mic Boost" element. And the same for
the other inputs.

Reported-by: Len Owens <len@ovenwerks.net>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agodaemon: Drop --module-idle-time from docs
Arun Raghavan [Tue, 3 Jan 2012 18:47:29 +0000 (00:17 +0530)]
daemon: Drop --module-idle-time from docs

This option does not exist any more.

12 years agodaemon: Fix *-idle-time arguments
Arun Raghavan [Tue, 3 Jan 2012 18:19:09 +0000 (23:49 +0530)]
daemon: Fix *-idle-time arguments

--exit-idle-time and --scache-idle-time were marked as having an
optional argument when the argument is actually mandatory. This causes a
crash when using this argument.

Thanks to Matthijs Kooijman (blathijs on IRC) for pointing this out.

12 years agopacmd: dynamically allocate ibuf and obuf
Pino Toscano [Mon, 14 Nov 2011 11:07:12 +0000 (12:07 +0100)]
pacmd: dynamically allocate ibuf and obuf

Use pa_pipe_buf to determine the minimum size for ibuf and obuf, taking into
account the two descriptors that use each of them.

See bug #42715

12 years agomutex: handle gracefully if a PTHREAD_PRIO_INHERIT protocol cannot be set
Pino Toscano [Mon, 14 Nov 2011 10:58:25 +0000 (11:58 +0100)]
mutex: handle gracefully if a PTHREAD_PRIO_INHERIT protocol cannot be set

This adds an additional check for unavailable PTHREAD_PRIO_INHERIT to the
fallback work done in ca717643ee768307475fc36ea29d920a13db0a8e

See bug #42715

12 years agomodule-rtp-recv: fail when SO_TIMESTAMP is not defined
Pino Toscano [Mon, 14 Nov 2011 10:48:47 +0000 (11:48 +0100)]
module-rtp-recv: fail when SO_TIMESTAMP is not defined

SO_TIMESTAMP is not POSIX and not available in any platform, so just fail
if the current platform does not have it.

See bug #42715

12 years agortp: use the right type when checking cmsg_type
Pino Toscano [Mon, 14 Nov 2011 10:44:43 +0000 (11:44 +0100)]
rtp: use the right type when checking cmsg_type

Use SCM_* instead of SO_* when checking the type of each cmsghdr.

See bug #42715

12 years agopipe: use pa_pipe_buf instead of the macro PIPE_BUF
Pino Toscano [Mon, 14 Nov 2011 10:33:47 +0000 (11:33 +0100)]
pipe: use pa_pipe_buf instead of the macro PIPE_BUF

This helps when porting to platforms that lack PIPE_BUF.

See bug #42715

12 years agodoc: Clarify pa_stream_get_latency() return value
Arun Raghavan [Fri, 30 Dec 2011 18:19:59 +0000 (23:49 +0530)]
doc: Clarify pa_stream_get_latency() return value

Clarifies that the latency is returned via an inout parameter and the
return value is an error code or 0 on success.

12 years agobuild-sys: Make esound bits optional
Arun Raghavan [Thu, 8 Dec 2011 10:36:50 +0000 (16:06 +0530)]
build-sys: Make esound bits optional

This is really quite irrelevant on most modern systems today, and more
so for embedded systems.

12 years agocore: comment typo
Peter Meerwald [Mon, 19 Dec 2011 11:28:44 +0000 (12:28 +0100)]
core: comment typo

12 years agocore: fix typo in logging
Peter Meerwald [Mon, 19 Dec 2011 11:28:43 +0000 (12:28 +0100)]
core: fix typo in logging

12 years agocore: sample_spec.rate is in Hz, not kHz; change logging output
Peter Meerwald [Mon, 19 Dec 2011 11:28:42 +0000 (12:28 +0100)]
core: sample_spec.rate is in Hz, not kHz; change logging output

12 years agocore: fix potential memory leak
Peter Meerwald [Mon, 19 Dec 2011 11:28:41 +0000 (12:28 +0100)]
core: fix potential memory leak

12 years agobuild-sys: Fix po/ build with --disable-nls
Arun Raghavan [Mon, 19 Dec 2011 04:50:30 +0000 (10:20 +0530)]
build-sys: Fix po/ build with --disable-nls

We can't call IT_PROG_INTLTOOL because it requires intltool even with
--disable-nls, but it provides USE_NLS which is required for the po/
build. This might take a while to get fixed upstream, so working around
this in our build system for now.

12 years agobuild-sys: Fix map-file check
Arun Raghavan [Mon, 19 Dec 2011 04:46:05 +0000 (10:16 +0530)]
build-sys: Fix map-file check

configure doesn't provide an abs_top_srcdir early enough, so we just use
srcdir for that. There was also a problem with the path we were setting
in VERSIONING_LDFLAGS that is fixed now.

12 years agosvolume_{mmx, sse}, sconv_sse: Fix compilation errors with X32 toolchain
Paul Menzel [Sat, 10 Dec 2011 09:03:51 +0000 (10:03 +0100)]
svolume_{mmx, sse}, sconv_sse: Fix compilation errors with X32 toolchain

From d8b81d5393df36085009bf9f69d41fa85e2ae58a Mon Sep 17 00:00:00 2001
From: Nitin A Kamble <nitin.a.kamble@intel.com>
Date: Sat, 10 Dec 2011 09:09:06 +0100

Make assembly syntax compatible to the X32 toolchain and fix the
following kind of compilations errors with X32 gcc.

| pulsecore/svolume_mmx.c: Assembler messages:
| pulsecore/svolume_mmx.c:107: Error: `(%esi,%rdi,4)' is not a valid base/index expression
| pulsecore/svolume_mmx.c:135: Error: `(%esi,%rdi,4)' is not a valid base/index expression
| pulsecore/svolume_mmx.c:161: Error: `(%esi,%rdi,4)' is not a valid base/index expression
| pulsecore/svolume_mmx.c:162: Error: `8(%esi,%rdi,4)' is not a valid base/index expression
| pulsecore/svolume_mmx.c:180: Error: `(%esi,%rdi,4)' is not a valid base/index expression
| pulsecore/svolume_mmx.c:210: Error: `(%esi,%rdi,4)' is not a valid base/index expression
| pulsecore/svolume_mmx.c:244: Error: `(%esi,%rdi,4)' is not a valid base/index expression
| pulsecore/svolume_mmx.c:245: Error: `8(%esi,%rdi,4)' is not a valid base/index expression
| make[3]: *** [libpulsecore_1.1_la-svolume_mmx.lo] Error 1

Originally these assembly lines were written for x86_64 ABI, now they
are also compatible with X32 ABI [3][4].

The patch was submitted to the OpenEmbedded-Core list [1][2].

[1] http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/014189.html
[2] http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=nitin/x32&id=2d8eec54f755c51f2eff600390f5a4b3cc2a7662
[3] https://wiki.yoctoproject.org/wiki/X32_abi
[4] http://en.wikipedia.org/wiki/X32_ABI

12 years agox11: Fix build without NLS support
Arun Raghavan [Wed, 14 Dec 2011 16:27:01 +0000 (21:57 +0530)]
x11: Fix build without NLS support

12 years agotests: Fix resampler-test compilation without NLS support
Peter Meerwald [Wed, 14 Dec 2011 15:07:57 +0000 (16:07 +0100)]
tests: Fix resampler-test compilation without NLS support

12 years agoecho-cancel: Better handling of error conditions in test
Peter Meerwald [Tue, 13 Dec 2011 14:51:54 +0000 (15:51 +0100)]
echo-cancel: Better handling of error conditions in test

12 years agoecho-cancel: Begin log message with uppercase letter
Peter Meerwald [Tue, 13 Dec 2011 14:51:53 +0000 (15:51 +0100)]
echo-cancel: Begin log message with uppercase letter

12 years agoecho-cancel: Set file mode to binary in test code
Peter Meerwald [Tue, 13 Dec 2011 14:51:52 +0000 (15:51 +0100)]
echo-cancel: Set file mode to binary in test code

12 years agoprotocol-native: Fix 'auth-group-enabled' modarg
Arun Raghavan [Wed, 14 Dec 2011 15:18:12 +0000 (20:48 +0530)]
protocol-native: Fix 'auth-group-enabled' modarg

This is actually implemented in module-protocol-stub as
'auth-group-enable'. An unfortunate typo because the other argument is
spelt as 'enabled', but it's better to be slightly inconsistent than to
change the public interface.

12 years agoresampler: Move some peak resampler asserts around
Arun Raghavan [Tue, 13 Dec 2011 03:56:44 +0000 (09:26 +0530)]
resampler: Move some peak resampler asserts around

This moves a couple of asserts from peak_resample() to peaks_init()
since they're resampler parameters that shouldn't change after
initialisation.

12 years agoresampler: Remove invalid channel asserts in peak and trivial
Arun Raghavan [Tue, 13 Dec 2011 03:55:04 +0000 (09:25 +0530)]
resampler: Remove invalid channel asserts in peak and trivial

The incoming channel count will be fixed up by the remapping code before
the resampler is invoked.

12 years agoutils: Typo fixes in qpaeq
Arun Raghavan [Tue, 13 Dec 2011 03:46:40 +0000 (09:16 +0530)]
utils: Typo fixes in qpaeq

Pointed out by John Frankish <j-frankish@slb.com> in:

https://bugs.freedesktop.org/show_bug.cgi?id=43733

12 years agoecho-cance: Make Adrian canceller optional
Peter Meerwald [Sun, 11 Dec 2011 15:07:42 +0000 (16:07 +0100)]
echo-cance: Make Adrian canceller optional

makes the Adrian echo canceller implementation optional at compile time

this patch supersedes an earlier patch proposal and addresses the following
comments:
* separate patch from speex dependency rework (Arun)
* check that at least one EC implementation is available (Arun)
* properly align yes/no in configure summary for Adrian (Frederic)

12 years agobuild-sys: Make speex library optional
Peter Meerwald [Sun, 11 Dec 2011 15:07:41 +0000 (16:07 +0100)]
build-sys: Make speex library optional

make speex library dependency optional, this affects the resampler
and the echo canceller module

this patch supersedes an earlier patch proposal and addresses the following
comments:
* fix order of pa_echo_canceller_method_t enum and ec_table (Frederic)
* the default resampler is speex if available as before, otherwise ffmpeg (Arun)
* does not touch the Adrian EC implementation (see separate patch) (Arun)

12 years agoutils: Fixes for building without NLS
Arun Raghavan [Fri, 9 Dec 2011 15:30:11 +0000 (21:00 +0530)]
utils: Fixes for building without NLS

12 years agoiochannel: Handle missing un.h correctly
Arun Raghavan [Thu, 8 Dec 2011 08:59:06 +0000 (14:29 +0530)]
iochannel: Handle missing un.h correctly

12 years agomime: Move assert to correct position
Arun Raghavan [Thu, 8 Dec 2011 08:49:50 +0000 (14:19 +0530)]
mime: Move assert to correct position

12 years agobuild-sys: Use absolute path for map-file while linking
Arun Raghavan [Thu, 8 Dec 2011 08:47:07 +0000 (14:17 +0530)]
build-sys: Use absolute path for map-file while linking

This makes the link process more robust in some stranger configurations.

12 years agobuild-sys: Fix building without NLS
Arun Raghavan [Thu, 8 Dec 2011 08:45:06 +0000 (14:15 +0530)]
build-sys: Fix building without NLS

12 years agostream: Fix typos and formatting in stream.h doxygen documentation
Peter Meerwald [Mon, 12 Dec 2011 18:50:38 +0000 (19:50 +0100)]
stream: Fix typos and formatting in stream.h doxygen documentation

12 years agomainloop: Fix typos and rewording of thread-mainloop.h doxygen documentation
Peter Meerwald [Mon, 12 Dec 2011 18:50:37 +0000 (19:50 +0100)]
mainloop: Fix typos and rewording of thread-mainloop.h doxygen documentation

12 years agosimple: Fix typos in simple.h doxygen documentation
Peter Meerwald [Mon, 12 Dec 2011 18:50:36 +0000 (19:50 +0100)]
simple: Fix typos in simple.h doxygen documentation

12 years agostream: Fix 'e g' as 'e.g.\ '
Peter Meerwald [Mon, 12 Dec 2011 18:50:35 +0000 (19:50 +0100)]
stream: Fix 'e g' as 'e.g.\ '

12 years agoerror: Fix spelling of 'initialization' in errortab for PA_ERR_MODINITFAILED
Peter Meerwald [Mon, 12 Dec 2011 09:59:45 +0000 (10:59 +0100)]
error: Fix spelling of 'initialization' in errortab for PA_ERR_MODINITFAILED

Also update the related translations.

12 years agoproplist: Consistently use parameter name p for a pa_proplist* in prototype
Peter Meerwald [Mon, 12 Dec 2011 12:19:50 +0000 (13:19 +0100)]
proplist: Consistently use parameter name p for a pa_proplist* in prototype

12 years agoutf8: Fix doxygen file description for utf8.h
Peter Meerwald [Mon, 12 Dec 2011 12:19:49 +0000 (13:19 +0100)]
utf8: Fix doxygen file description for utf8.h

12 years agoproplist: Fix typos in doxygen documentation
Peter Meerwald [Mon, 12 Dec 2011 12:19:48 +0000 (13:19 +0100)]
proplist: Fix typos in doxygen documentation

12 years agoproplist: Add doxygen file description for proplist.h
Peter Meerwald [Mon, 12 Dec 2011 12:19:47 +0000 (13:19 +0100)]
proplist: Add doxygen file description for proplist.h

12 years agointrospect: Fix unresolved doxygen link pa_port_available_t
Peter Meerwald [Mon, 12 Dec 2011 12:19:46 +0000 (13:19 +0100)]
introspect: Fix unresolved doxygen link pa_port_available_t

12 years agoformat: Add description for format.h
Peter Meerwald [Mon, 12 Dec 2011 12:19:45 +0000 (13:19 +0100)]
format: Add description for format.h

12 years agoformat: Add periods to fix brief documentation for pa_format_info_is_pcm()
Peter Meerwald [Mon, 12 Dec 2011 12:19:44 +0000 (13:19 +0100)]
format: Add periods to fix brief documentation for pa_format_info_is_pcm()

12 years agoformat: Fix unknown doxygen command \second
Peter Meerwald [Mon, 12 Dec 2011 12:19:43 +0000 (13:19 +0100)]
format: Fix unknown doxygen command \second

12 years agodef: Document that pa_buffer_attr.maxlength is in bytes.
Peter Meerwald [Sun, 11 Dec 2011 15:07:39 +0000 (16:07 +0100)]
def: Document that pa_buffer_attr.maxlength is in bytes.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=42919

12 years agostream: Fix comments
Peter Meerwald [Sun, 11 Dec 2011 15:07:38 +0000 (16:07 +0100)]
stream: Fix comments

12 years agopstream: Fix spelling of 'receive'.
Peter Meerwald [Mon, 12 Dec 2011 22:36:39 +0000 (22:36 +0000)]
pstream: Fix spelling of 'receive'.

These functions are not exported in the map file and thus do
not form part of the API and can be corrected without any problem.

12 years agoalsa-mixer: Remove unused pa_alsa_path_set_probe() declaration.
Tanu Kaskinen [Mon, 5 Dec 2011 18:42:44 +0000 (20:42 +0200)]
alsa-mixer: Remove unused pa_alsa_path_set_probe() declaration.

12 years agodevice-port: Add a property list to ports.
David Henningsson [Fri, 2 Dec 2011 12:34:54 +0000 (13:34 +0100)]
device-port: Add a property list to ports.

They're not used for anything yet, but hopefully soon they'll be.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agopactl: Show port availability
David Henningsson [Fri, 2 Dec 2011 13:15:28 +0000 (14:15 +0100)]
pactl: Show port availability

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoFixup a few things in the new path probing
David Henningsson [Fri, 2 Dec 2011 09:20:23 +0000 (10:20 +0100)]
Fixup a few things in the new path probing

 * If mapping_probe_paths() fails to open the mixer, all paths are now
removed from the mapping's path sets.
 * pa_path_set.probed isn't really used for anything (removed).
 * If profile probing is configured to be skipped, mapping_paths_probe()
should still be called.

Thanks to Tanu for spotting.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoalsa: add card ports and path probe cache
David Henningsson [Fri, 25 Nov 2011 14:17:16 +0000 (15:17 +0100)]
alsa: add card ports and path probe cache

To be able to add ports to all profiles, we need to probe all
profiles at startup. To speed this up, we now have a cache of
probes paths which is owned by the profile set. Since paths
are now owned by the profile set, the path set must now have
a hashmap of paths instead of a linked list.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoalsa: Ignore the virtual "thinkpad-acpi" card
David Henningsson [Wed, 30 Nov 2011 11:51:06 +0000 (12:51 +0100)]
alsa: Ignore the virtual "thinkpad-acpi" card

The thinkpad ACPI driver sometimes creates a virtual sound card,
which at best exposes a volume control. Save some startup time, and
unnecessary error messages in the log, by ignoring it.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
12 years agoecho-cancel: Fix memory leak in test program
Peter Meerwald [Mon, 28 Nov 2011 15:14:16 +0000 (16:14 +0100)]
echo-cancel: Fix memory leak in test program

memory for pa_echo_canceller is allocated in init_common() a second time,
hence the allocated memory in main() is leaked

12 years agoresampler: Some minor tweaks
Maarten Bosmans [Mon, 28 Nov 2011 09:36:34 +0000 (10:36 +0100)]
resampler: Some minor tweaks

that were forgotten in the previous peaks resampler commits.

12 years agoecho-cancel: Fix warning for undefined HAVE_WEBRTC
Arun Raghavan [Mon, 28 Nov 2011 09:46:55 +0000 (15:16 +0530)]
echo-cancel: Fix warning for undefined HAVE_WEBRTC

12 years agotests: Don't link tests that only use public api to libpulsecommon
Maarten Bosmans [Wed, 16 Nov 2011 12:00:28 +0000 (13:00 +0100)]
tests: Don't link tests that only use public api to libpulsecommon

12 years agoresamplers: Improve performance of peaks resampler
Maarten Bosmans [Wed, 2 Nov 2011 20:54:17 +0000 (21:54 +0100)]
resamplers: Improve performance of peaks resampler

This is mainly achieved by special-casing the common 1ch float case,
which is used by applications such as pavucontrol.

12 years agoresamplers: Rework the peaks resampler
Maarten Bosmans [Wed, 2 Nov 2011 20:54:16 +0000 (21:54 +0100)]
resamplers: Rework the peaks resampler

The algorithm had been implemented the same way as the trivial resampler.  But
an important difference between the two is that the trivial resampler can write
an output as soon as the first corresponding input sample is seen, whereas the
peaks resampler must have read all input samples before writing an output
sample.

With this rework, the peaks resampler now outputs samples correctly when the
input data is spanning multiple memblocks.

12 years agoshm: Use a goto rather than early return for consistency.
Maarten Bosmans [Sun, 27 Nov 2011 16:12:10 +0000 (16:12 +0000)]
shm: Use a goto rather than early return for consistency.

This is functionally the same but is easier to understand.

12 years agowin32: Avoid some compiler warnings when cross-compiling for mingw32
Maarten Bosmans [Wed, 2 Nov 2011 20:54:13 +0000 (21:54 +0100)]
win32: Avoid some compiler warnings when cross-compiling for mingw32

Autoconf documentation says that AC_FUNC_SELECT_ARGTYPES shouldn't be used anyway.