summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-08-08headset: set headset variablemodule-headsetheadsetdWim Taymans1-0/+1
2014-08-08headset: fix cleanupWim Taymans1-18/+89
2014-08-07headset: fix device parsingWim Taymans1-2/+2
2014-08-07fix connectionWim Taymans1-20/+119
Connect and disconnect Improve device properties
2014-08-07headset: beginnings of headset moduleWim Taymans2-2/+1103
2014-08-04i18n: Updated Brazilian Portuguese translationRafael Ferreira1-401/+453
Signed-off-by: Rafael Ferreira <rafael.f.f1@gmail.com>
2014-08-04core: Closing proper file descriptor when pipe creation failsSajeesh Sidharthan1-1/+1
2014-08-01alsa: Add a multichannel fallback mappingDavid Henningsson2-2/+10
In case all other profiles fail, try this fallback mapping as well. It allows the device to specify the channel count, so it can be used for devices that only supports being opened in multichannel mode. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-08-01alsa: Allow "fallback" configuration for mappings and profilesDavid Henningsson3-4/+78
A fallback mapping or profile will only be considered for probing if all non-fallback profiles fail. If auto-profiles are used, a profile made up of one non-fallback mapping and one fallback mapping will be considered a fallback profile. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-08-01alsa: Add "exact-channels" mapping configurabilityDavid Henningsson3-4/+42
Allow a mapping to relax the exact channel restriction: exact-channels = yes | no # If no, and the exact number of channels is not supported, # allow device to be opened with another channel count Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-08-01alsa: Add extra HDMI mappingsAlexander E. Patrakov10-177/+344
Remove extra-hdmi.conf, as the performance reasons behind it are invalid Add 7.1 profiles Add extra HDMI devices, for a total of 8 Add DTS-encoded profiles (they need dcaenc from git) Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
2014-08-01daemon: Don't try to lock and synchronise threads on (k)FreeBSDJoe Marcus Clarke1-0/+5
Credits: Steven Chamberlain <steven@pyro.eu.org> is also a co-author BugLink: http://bugs.debian.org/705435 Origin: http://svnweb.freebsd.org/ports/head/audio/pulseaudio/files/patch-src_daemon_main.c?revision=231972&view=markup&pathrev=231972
2014-07-28simple: Take locally buffered data into account in pa_simple_get_latency()Tanu Kaskinen1-3/+18
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=81075
2014-07-17tunnel-new: remove uncorking in thread_func. Now handled by state change ↵Alexander Couzens1-32/+27
callback. tunnel-new handled a corked stream conditional in the thread_func to be sure the stream isn't corked. Un/Corking is now handled in the state change callback. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2014-07-17tunnel-new: add un/corking to the state change callbackAlexander Couzens2-4/+68
The stream is now corked when the sink or source becomes suspended and uncorked when it's back idle/ready. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2014-07-13daemon-conf: changing default rlimit_rttime value to 200 msRicardo Salveti de Araujo2-2/+2
Since rtkit v11, the top limit for rttime is 200 ms (previously it was wrongly limited to 2 seconds). Reviewed-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
2014-07-12.gitignore: Add srbchannel-testTanu Kaskinen1-0/+1
2014-07-12device-manager: Add a comment about non-extensible structTanu Kaskinen1-0/+3
This comment can potentially save a lot of debugging effort and fixing an ABI break, even though I don't think it's particularly likely that anyone will ever extend pa_ext_device_manager_role_priority_info.
2014-07-04creds: Unbreak build without HAVE_CREDSDavid Henningsson3-0/+21
A recent patch broke the build on FreeBSD, which does not have HAVE_CREDS defined. Also, make sure any attempts to enable the srbchannel on such architectures fail. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=80642 Reported-by: Ryan Lortie Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-07-03zsh-completion: Fix completion for default sink/sourceFelipe Sateler1-2/+2
2014-07-02core: Add SRBCHANNEL command names for debugPeter Meerwald1-0/+5
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2014-07-02core: Misc srbchannel cleanupPeter Meerwald3-4/+4
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2014-06-27tests: Add pstream/srbchannel testDavid Henningsson2-0/+144
Runs four tests: 1) Small packets, iochannel 2) Big packets, iochannel 3) Small packets, srbchannel 4) Big packets, srbchannel Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27protocol-native: Enable srbchannelDavid Henningsson3-1/+81
The srbchannel is enabled if protocol version >= 30 and SHM is available. There is also a module parameter srbchannel=false that can be used for disabling the srbchannel. The setup is done in these steps: 1) Server receives authentication (like today) 2) Server sends enable_srbchannel to client 3) Server sends memblock to client 4) Client receives enable_srbchannel 5) Client receives memblock 6) Client sends enable_srbchannel back to server 7) Client switches over 8) Server receives enable_srbchannel and switches over Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27Protocol, client: Add commands to enable srbchannelDavid Henningsson5-2/+136
This increments protocol version to v30 and adds two new commands to enable and disable an shm ringbuffer, as well as client side implementation. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27pstream: Allow reading/writing through srbchannelDavid Henningsson2-77/+158
For writing, we prefer writing through the srbchannel if one is available, and we have no ancil data to send. For reading, we support reading from both in parallel. This meant replicating a struct used for reading, so a lot of this patch is just a search/replace in do_read to use the appropriate channel for reading. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27core: Add a second rw mempoolDavid Henningsson2-3/+16
To keep the data and the ringbuffer separate, let's add another mempool just for the ringbuffer(s). That way, the client can open the ringbuffer shm file in rw mode and keep the data in ro mode. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27tests: Adapt memblock-test to changed pa_memimport_get()Peter Meerwald1-2/+2
patch 'memblock, pstream: Allow send/receive of remote writable memblocks' adds an extra parameter to pa_memimport_get() change test program accordingly Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Cc: David Henningsson <david.henningsson@canonical.com>
2014-06-27memblock, pstream: Allow send/receive of remote writable memblocksDavid Henningsson3-16/+62
The shared ringbuffer memblock must be writable by both sides. This makes it possible to send such a memblock over a pstream without the "both sides writable" information getting lost. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27shm: Allow to open shm in writable modeDavid Henningsson3-7/+9
This is a preparation for the shm ringbuffer, which needs to be able to be writable by both sides, because there are atomic variables they both need to modify. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27srbchannel: Add the shared ringbuffer objectDavid Henningsson3-1/+369
An shm ringbuffer that is used for low overhead server-client communication. Signalling is done through eventfd semaphores - it's based on pa_fdsem to avoid syscalls if nothing is waiting on the other side. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27iochannel/pstream: Support sending file descriptorsDavid Henningsson6-22/+102
This patch adds support to iochannel, pstream and pstream-util to send file descriptors over a unix pipe. Currently we don't support writing both creds and fds in the same packet, it's either one or the other (or neither). Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27iochannel/pstream/pdispatch: Add support for receiving file descriptorsDavid Henningsson9-31/+84
The file descriptors are read from the iochannel just like the creds are. So instead of passing just creds (and creds_valid), we now pass the entire pa_ancil struct. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27creds: Add struct for ancillary dataDavid Henningsson1-0/+13
To support later patches that add sending/receiving file descriptors, let's add this struct. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-06-27client-conf: add missing directory to pulse/client-conf.x11.h includeEvan Nemerson1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=80570
2014-06-26build-sys: Add -fdiagnostics-color=auto to CFLAGSJavier Jardón2-5/+1
As a way to highlight warnings and errors in GCC output This will be available in GCC 4.9, but some distros backported the feature to lower versions http://gcc.gnu.org/gcc-4.9/changes.html
2014-06-26build-sys: Use AM_CPPFLAGS instead of AM_CFLAGS for preprocessor argumentsJavier Jardón1-3/+3
As the automake documentation says: AM_CPPFLAGS: The contents of this variable are passed to every compilation that invokes the C preprocessor; it is a list of arguments to the preprocessor. For instance, -I and -D options should be listed here AM_CFLAGS: This is the variable the Makefile.am author can use to pass in additional C compiler flags. http://www.gnu.org/software/automake/manual/html_node/Program-Variables.html
2014-06-24Update Ukrainian translationYuri Chornoivan1-231/+350
2014-06-24bluetooth: Refactor POLLHUP handlingTanu Kaskinen1-28/+20
The code in the "io_fail" section was only used for HUP handling, but there were jumps to there also from places where reading or writing failed, because the read/write failure could have been caused by HUP. This patch simplifies things by checking for HUP condition before trying to read or write. Now if reading or writing fails, we will jump to "fail" directly instead of going via the "io_fail" label. As a result, the "io_fail" label isn't needed any more.
2014-06-24authkey: Use the config home dir for relative pathsTanu Kaskinen2-26/+15
Previously relative cookie paths were searched from the home directory, now they are searched from the config home directory. This fixes the problem that XDG_CONFIG_HOME didn't have effect on cookie paths. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=75006
2014-06-24core-util: Add pa_append_to_config_home_dir()Tanu Kaskinen2-0/+17
2014-06-24core-util: Add pa_get_config_home_dir()Tanu Kaskinen2-18/+27
2014-06-24esound, native: Pass an absolute path to pa_authkey_load() when using a file ↵Tanu Kaskinen4-10/+35
in the home directory If a relative path is passed to pa_authkey_load(), it will interpret the path as relative to the home directory. This is wrong, because relative paths should be interpreted to be relative to the config home directory. Before fixing pa_authkey_load(), this patch prepares for the change by using absolute paths when the file actually needs to be in the home directory (i.e. the fallback cookie path for the native protocol and the default cookie path for the esound protocol).
2014-06-24core-util: Add pa_append_to_home_dir()Tanu Kaskinen3-5/+20
2014-06-24authkey: Rename pa_authkey_load_auto() to pa_authkey_load()Tanu Kaskinen6-11/+11
pa_authkey_load() was removed earlier, so the _auto suffix isn't necessary any more.
2014-06-24authkey: Remove pa_authkey_load(), it's redundantTanu Kaskinen2-16/+3
The only place where pa_authkey_load() was called was in pa_authkey_load_auto(), and the only functionality that pa_authkey_load() was to log a warning if load() fails. That log message is now in pa_authkey_load_auto(), so pa_authkey_load() has no use any more.
2014-06-24client-conf: Move x11 and env loading to pa_client_conf_load()Tanu Kaskinen6-64/+58
This simplifies the code a bit.
2014-06-24client-conf: Don't report failure from pa_client_conf_load()Tanu Kaskinen4-56/+12
pa_context already ignored the return value of pa_client_conf_load(), so the only places where the return value was not ignored were the D-Bus server lookup thing and pax11publish. I don't think those cases are negatively affected if they ignore errors in opening or parsing client.conf. pa_client_conf_env() never failed anyway, so returning int was obviously redundant.
2014-06-17combine-sink: Rearrange block_usec initializationTanu Kaskinen1-3/+3
block_usec should be determined by the sink max latency, not the other way around. This change doesn't cause any change in behaviour, but makes the code more logical. Further updates to block_usec are already done correctly, so this is the only place that needs modification.
2014-06-17combine-sink: Fix the initial requested latency of new outputsTanu Kaskinen1-1/+1
If the combine-sink is running with low latency, and a new output is added, the new output was not configured with low latency.