summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-03-28alsa-mixer: Remove the "name" option from the "General" section of path ↵Tanu Kaskinen1-22/+16
configuration files This means that the path names will always correspond to the path configuration file names, so they will automatically be unique (in the scope of one card).
2013-03-28alsa-mixer: Introduce "description-key" option for pathsTanu Kaskinen20-27/+43
Previously the path description was looked up based on the path name only. Since there can be multiple paths that use the same description, it had to be possible to have multiple paths with the same name. Having the same name with multiple paths makes identifying the paths more complex than necessary, so the plan is to make it impossible to have paths with the same name. This patch prepares for that by retaining the possibility to still have the same description with multiple paths. Instead of the path name, the path description is looked up by using the "path description key" if it is set (path name is still used as a fallback lookup key).
2013-03-28switch-on-port-available: Fix error reporting styleTanu Kaskinen1-5/+5
2013-03-28switch-on-port-available: Remove a redundant function argumentTanu Kaskinen1-3/+3
2013-03-28switch-on-port-available: Prepare for dual-direction ports going awayTanu Kaskinen1-29/+48
As an extra, I broke try_to_switch_profile() into smaller functions, because the two levels of loops with continue statements inside both were a bit hard to follow.
2013-03-28resample: Switch to speex-float-1 by defaultArun Raghavan3-5/+5
This consumes less power, has low (no?) perceivable difference, and allows the default configuration to work out of the box on low-end systems (such as netbooks).
2013-03-27alsa-mixer: It's valid to have zero elements in a pathDavid Henningsson1-14/+13
It's valid for a path to have zero elements, e g if it contains a single jack only. Earlier, this would cause an assertion failure in pa_path_condense. Also convert pa_bool_t to bool. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-27Revert "card: Support adding ports dynamically"Mikel Astiz4-64/+0
This reverts commit a9c3f2fb0fc1a1ee0072aac6425ad7311a2a5888. It has been recently agreed that ports should somehow have some physical meaning, leading to the port merge in module-bluetooth-device. With this assumption in mind, it is very unlikely that a card would add or remove ports dynamically. Therefore, the core can be simplified by removing the support for this. The revert affects the code added to module-card-restore in commit a1a0ad1af209e58c136ac1c884aa5d14672a7144, which can now be partially removed. Conflicts: src/pulsecore/card.c src/pulsecore/core.h
2013-03-25build-sys: Use AM_CPPFLAGS instead of AM_CFLAGS for preprocessor argumentsJavier Jardón1-2/+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
2013-03-25client API: Document buffer_attr.maxlengthDavid Henningsson1-1/+7
Let's officially support that people use maxlength to put an upper bound on playback latency. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-25protocol-native: Lower default minreq in low-latency scenariosDavid Henningsson1-2/+8
If minreq is not explicitly specified, it was always initialized to 20 ms (DEFAULT_PROCESS_MSEC). However when the total latency is not much higher than 20 ms, this is way too high. Instead use tlength/4 as a measure: this will give a decent sink_usec in all modes (both traditional, adjust latency and early request modes). This greatly improves PulseAudio's ability to ask for data in time in low-latency scenarios. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-25protocol-native: Ensure tlength is not set higher than maxlengthDavid Henningsson1-0/+2
Tlength should never be set higher than maxlength. While this is corrected by memblockq later, we still need a correct tlength for the subsequent calculations. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-25.gitignore: Add alsa-mixer-path-testTanu Kaskinen1-0/+1
2013-03-25protocol-native: Fix some debug outputArun Raghavan1-8/+8
s->buffer_attr_req is what we want to be printing from since that holds the actualy requested buffer attributes.
2013-03-25alsa: Minor debug log additionArun Raghavan1-2/+3
It's helpful to know what kind of scheduling latency we're expecting in that debug log.
2013-03-25stream: Make it easier to enable debug outputArun Raghavan1-6/+20
This is only useful while hacking on PulseAudio.
2013-03-25core: Fix up some debug loggingArun Raghavan1-4/+4
Replaces some debugging-only pa_log() calls with pa_log_debug() so we only get spammed while debugging if we want to be.
2013-03-25rtp: Introduce source IP configurationRobin H. Johnson1-3/+45
On a multi-homed system, the user may wish RTP to be used only on specific interfaces. The default binding of 0.0.0.0 for the source address causes SAP multicast on all interfaces, which is not ideal. Introduce a new module argument, that allows selection of the source IP, and thus interface. (changes in v2: s/srcip/source_ip) Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2013-03-25rtp: rename modarg destination to destination_ipRobin H. Johnson1-4/+7
The module argument 'source' already has special meaning as the pa_source, however, the argument 'destination' expects an IP address. Prior to introducing a source IP modarg for the source IP address, rename the 'destination' argument to 'destination_ip'. Include compatibility support for old RTP users so they don't need to change their module usage immediately. (changes in v2: minor formatting fixes, s/dstip/destination_ip) Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2013-03-25rtp: Cleanup variable naming.Robin H. Johnson1-23/+23
Before introducing new functionality, clarify the variable names dest -> dst_addr sa[46] -> dst_sa[46] sap_sa[46] -> dst_sap_sa[46] Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2013-03-25tests: Minor alsa-time-test improvmentsArun Raghavan1-3/+21
Tries to get RT privs and prints elapsed time and a periodic header to make grokking the output easier.
2013-03-25tests: Add tests for alsa-mixer pathsDavid Henningsson2-0/+118
It checks all files in the mixer/paths directory and checks - that the file can be parsed without errors - that the file is actually shipped in the makefile Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-25alsa-mixer: Support more phantom jacksDavid Henningsson6-0/+35
It's fairly uncommon, but it happens that jack detection is enabled for some reason, e g hardware design. In that case, we cannot use jack detection, but we can still use the hint to pick up that there is a path. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-25alsa-mixer: Add path for Headset MicrophoneDavid Henningsson5-4/+105
In kernel 3.10, some devices will have the "Headset Microphone" name to indicate that the mic is part of a mic + headphone combo, i e, a headset.
2013-03-23Update Ukrainian translation.Yuri Chornoivan1-382/+595
2013-03-23Revert "conf-parser: Remove redundant feof() call"Tanu Kaskinen1-0/+3
This reverts commit 6733caf114d0d759590459745c864aa9518d133d. Apparently, the EOF bit gets set only after there has been an attempt to read more data than the file contains, so just reading the last byte isn't sufficient.
2013-03-22conf-parser: Remove redundant feof() callTanu Kaskinen1-3/+0
fgets() returns NULL in case there's an error or f is at EOF. The while condition just checked that f is not at EOF, therefore an error must have happened.
2013-03-22loopback: Flush asyncmsgq from the right contextTanu Kaskinen1-13/+31
u->asyncmsg is accessed from two IO threads. teardown() shouldn't flush the queue from the main thread while both IO threads are still potentially using the queue. This patch fixes that error by flushing the queue from the sink input thread when the sink input is being unlinked. Flushing the queue in teardown() caused this assertion in pa_asyncmsgq_get() to crash sometimes: pa_assert(!a->current)
2013-03-22filter-apply: Fix segfault with moving streamsTanu Kaskinen1-3/+7
process() may be called with a stream that doesn't have its sink/source set. This can happen if the proplist change callback is called when the stream is moving.
2013-03-22loopback: Fix segfault in may_move_to() callbacksTanu Kaskinen1-4/+7
The sink input may_move_to() callbacks can be called while the source output is not connected to any source (i.e. is currently moving too), and vice versa. Thanks to Frédéric Dalleau for reporting this bug.
2013-03-21sink-input: Make sure the process_underrun callback is clearedDavid Henningsson1-0/+1
Otherwise sink unlinking could cause a segfault. Reported-by: heftig Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-21pacat: Fix mode detection for parecordTanu Kaskinen1-1/+1
Due to the missing "else", parecord was interpreted as parec, causing the raw flag to be set when it shouldn't have been set.
2013-03-20tests: Move ipacl-tests to TESTS_norunDavid Henningsson1-1/+1
ipacl-test fails if there is no SSH server running on your machine. Since it is not a PulseAudio error not to have an SSH server running, this test should not be run as part of the "make check" test suite. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-20core, alsa: Better drain reportingDavid Henningsson6-33/+139
Previously, a drain request was acknowledged up to two hw buffers too late, causing unnecessary delays. This implements a new chain of events called process_underrun which triggers exactly when the sink input has finished playing, so the drain can be acknowledged quicker. It could later be improved to give better underrun reporting to clients too. Tested-by: Dmitri Paduchikh <dpaduchikh@gmail.com> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-18zsh-completion: Fix pacat completion.poljar (Damir Jelić)1-1/+2
pacat --format needs = (--format=). Also pacat should complete files firstly and command line arguments secondly.
2013-03-18zsh-completion: Add support for the new pactl commands.poljar (Damir Jelić)1-1/+3
This adds support for set-(sink|source)-default completion and adds toggle to the supported arguments for the mute command.
2013-03-18zsh-completion: Add support for remote servers.poljar (Damir Jelić)1-15/+60
This patch adds support for completion of remote PulseAudio server arguments it also suppresses error messages when unable to connect to PulseAudio (only for the completion function).
2013-03-14alsa: Add configuration for NI Traktor Audio 2Tanu Kaskinen2-0/+55
Mostly written by Jaroslav Janukevic.
2013-03-13port to gtk+-3.0Marc-Antoine Perennou2-18/+18
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2013-03-13pulse: Document the operation state behavior on context disconnection.Tanu Kaskinen2-5/+14
2013-03-13ladspa: Use volume sharing.Tanu Kaskinen2-29/+2
The previous volume handling could cause ear damage: by default the ladspa sink volume was 100%, and with flat volumes that would cause the master sink volume to jump to 100% too.
2013-03-13udev: Add tsched_buffer_size module argumentTanu Kaskinen1-18/+41
This makes it easier to configure the buffer size.
2013-03-13man: Remove reference to the .verbose CLI commandTanu Kaskinen1-5/+0
The .verbose metacommand was removed in commit 73eabece3365c1bb47bf6b009682219c4492fda5 (in 2004!). BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=62270
2013-03-13Bump the native protocol versionAkihiro Tsukada2-1/+10
The previous AAC pass-through patch (commit: 53807e4a) introduced a new encoding format type: PA_ENCODING_MPEG2_AAC_IEC61937, which is mostly used in pa_format_info, but forgot to increment the protocol version number. The version needs to be incremented, because clients need some way of checking whether the server supports the new encoding.
2013-03-12ltdl-bind-now: Log an error in case of failuresTanu Kaskinen1-0/+1
2013-03-12module: Don't use lt_dlerror(), it's uselessTanu Kaskinen1-1/+7
2013-03-08bluetooth: Never allow microphone output portsDavid Henningsson1-3/+3
If we find a microphone output port, it is probably something else than a microphone. Therefore label it "Bluetooth output" instead of "Microphone". Same goes for Headphones and Speakers, but in the other direction. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-03-08bluetooth: Use form factor to set port name and descriptionMikel Astiz1-6/+78
Use the information provided by the form factor to decide which name and description should be used during port creation.
2013-03-08bluetooth: Add specific form factor for phonesMikel Astiz2-8/+22
When a phone is paired, use PA_BT_FORM_FACTOR_PHONE to properly specify its form factor.
2013-03-08bluetooth: Use enum to represent form factorsMikel Astiz3-18/+58
Avoid using strings only to represent form factors in the bluetooth-util API and instead use a new dedicated enum type: pa_bt_form_factor_t.