Commit graph

6227 commits

Author SHA1 Message Date
Pino Toscano
6aa84d6db0 pipe: use pa_pipe_buf instead of the macro PIPE_BUF
This helps when porting to platforms that lack PIPE_BUF.

See bug #42715
2012-01-03 00:20:04 +05:30
Arun Raghavan
0d41bcfcbf 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.
2011-12-30 23:50:19 +05:30
Arun Raghavan
07e47bc018 build-sys: Make esound bits optional
This is really quite irrelevant on most modern systems today, and more
so for embedded systems.
2011-12-23 09:56:16 +05:30
Peter Meerwald
e8e29760cd core: comment typo 2011-12-20 10:22:37 +05:30
Peter Meerwald
e33aeaa7fb core: fix typo in logging 2011-12-20 10:22:01 +05:30
Peter Meerwald
638b0264e0 core: sample_spec.rate is in Hz, not kHz; change logging output 2011-12-20 10:21:39 +05:30
Peter Meerwald
49fd49f21f core: fix potential memory leak 2011-12-20 10:16:39 +05:30
Arun Raghavan
c3d83b17ea 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.
2011-12-19 10:20:30 +05:30
Arun Raghavan
5c4012482b 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.
2011-12-19 10:16:05 +05:30
Paul Menzel
dd32032062 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
2011-12-14 22:47:20 +05:30
Arun Raghavan
37bd158701 x11: Fix build without NLS support 2011-12-14 21:57:38 +05:30
Peter Meerwald
5a908ae513 tests: Fix resampler-test compilation without NLS support 2011-12-14 21:55:17 +05:30
Peter Meerwald
be9ef2e96c echo-cancel: Better handling of error conditions in test 2011-12-14 21:53:39 +05:30
Peter Meerwald
6eb0f133c4 echo-cancel: Begin log message with uppercase letter 2011-12-14 21:52:17 +05:30
Peter Meerwald
f40df053c8 echo-cancel: Set file mode to binary in test code 2011-12-14 21:52:05 +05:30
Arun Raghavan
0bbe94f5db 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.
2011-12-14 21:51:50 +05:30
Arun Raghavan
dc8edf4b43 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.
2011-12-13 09:26:44 +05:30
Arun Raghavan
a0b5f29b42 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.
2011-12-13 09:26:12 +05:30
Arun Raghavan
bb2e60a142 utils: Typo fixes in qpaeq
Pointed out by John Frankish <j-frankish@slb.com> in:

https://bugs.freedesktop.org/show_bug.cgi?id=43733
2011-12-13 09:18:53 +05:30
Peter Meerwald
dc5a39b124 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)
2011-12-13 09:16:32 +05:30
Peter Meerwald
5f2286e6f7 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)
2011-12-13 09:10:08 +05:30
Arun Raghavan
87e6f489a9 utils: Fixes for building without NLS 2011-12-13 09:10:08 +05:30
Arun Raghavan
99afd6adef iochannel: Handle missing un.h correctly 2011-12-13 09:10:08 +05:30
Arun Raghavan
10deb4093c mime: Move assert to correct position 2011-12-13 09:10:08 +05:30
Arun Raghavan
c55648ce6c build-sys: Use absolute path for map-file while linking
This makes the link process more robust in some stranger configurations.
2011-12-13 09:09:44 +05:30
Arun Raghavan
30d6303abf build-sys: Fix building without NLS 2011-12-13 09:03:58 +05:30
Peter Meerwald
8942d2369d stream: Fix typos and formatting in stream.h doxygen documentation 2011-12-12 23:57:55 +00:00
Peter Meerwald
525311abfb mainloop: Fix typos and rewording of thread-mainloop.h doxygen documentation 2011-12-12 23:57:55 +00:00
Peter Meerwald
57a50cdaec simple: Fix typos in simple.h doxygen documentation 2011-12-12 23:57:54 +00:00
Peter Meerwald
107ee0b69a stream: Fix 'e g' as 'e.g.\ ' 2011-12-12 23:57:54 +00:00
Peter Meerwald
398e350885 error: Fix spelling of 'initialization' in errortab for PA_ERR_MODINITFAILED
Also update the related translations.
2011-12-12 23:57:54 +00:00
Peter Meerwald
d6512750fd proplist: Consistently use parameter name p for a pa_proplist* in prototype 2011-12-12 23:57:54 +00:00
Peter Meerwald
9e22ff0f03 utf8: Fix doxygen file description for utf8.h 2011-12-12 23:57:54 +00:00
Peter Meerwald
8049bd0b19 proplist: Fix typos in doxygen documentation 2011-12-12 23:57:54 +00:00
Peter Meerwald
8eb0516058 proplist: Add doxygen file description for proplist.h 2011-12-12 23:57:54 +00:00
Peter Meerwald
4e429a51a3 introspect: Fix unresolved doxygen link pa_port_available_t 2011-12-12 23:57:54 +00:00
Peter Meerwald
ddd7a91f5d format: Add description for format.h 2011-12-12 23:57:50 +00:00
Peter Meerwald
6e7e5d6fa0 format: Add periods to fix brief documentation for pa_format_info_is_pcm() 2011-12-12 22:47:52 +00:00
Peter Meerwald
66b2755361 format: Fix unknown doxygen command \second 2011-12-12 22:46:22 +00:00
Peter Meerwald
564997e487 def: Document that pa_buffer_attr.maxlength is in bytes.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=42919
2011-12-12 22:39:58 +00:00
Peter Meerwald
d735857942 stream: Fix comments 2011-12-12 22:39:52 +00:00
Peter Meerwald
c6b95d5235 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.
2011-12-12 22:36:39 +00:00
Tanu Kaskinen
ba33ae4790 alsa-mixer: Remove unused pa_alsa_path_set_probe() declaration. 2011-12-05 20:42:44 +02:00
David Henningsson
0ef3456f68 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>
2011-12-02 18:41:57 +02:00
David Henningsson
1623859d1b pactl: Show port availability
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2011-12-02 18:21:36 +02:00
David Henningsson
c1f3f7709f 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>
2011-12-02 17:51:11 +02:00
David Henningsson
426daaf6bb 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>
2011-12-01 21:49:17 +02:00
David Henningsson
078a39af88 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>
2011-11-30 12:02:03 +00:00
Peter Meerwald
8fc8d3d586 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
2011-11-29 10:08:04 +05:30
Maarten Bosmans
75c2f4d09e resampler: Some minor tweaks
that were forgotten in the previous peaks resampler commits.
2011-11-28 11:08:05 +00:00