summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-06-11man: fix reference to --daemonize optionFelipe Sateler1-1/+1
Even if --daemon is also accepted, --daemonize is the correct name of the option.
2015-06-10rescue-streams: Fix a couple of typosArun Raghavan1-2/+2
2015-06-10rescue-streams: Document a cryptic looking conditionArun Raghavan1-0/+1
2015-06-01lfe-filter-test: Use S16NE formatDavid Henningsson1-1/+1
...otherwise this code will fail on big-endian architectures. Cc: Hui Wang <hui.wang@canonical.com> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-05-30build-sys: add winerrno.h to libpulsecommon_SOURCESTanu Kaskinen1-1/+3
2015-05-30core: make sure we use the correct win32 socket errno:sPierre Ossman2-12/+90
Modern versions of MinGW and Visual Studio provide socket errno defines that make no sense (no API sets them). Make sure we continue to use the old WSAE ones that are actually returned by Windows' socket API. Signed-off-by: Pierre Ossman <ossman@cendio.se>
2015-05-27core: Work around -Wlogical-not-parentheses warningsPeter Meerwald2-2/+2
pulsecore/sink.c: In function 'pa_sink_put': pulsecore/sink.c:648:53: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] pa_assert(!(s->flags & PA_SINK_DYNAMIC_LATENCY) == (s->thread_info.fixed_latency != 0)); ^ pulsecore/source.c: In function 'pa_source_put': pulsecore/source.c:599:55: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] pa_assert(!(s->flags & PA_SOURCE_DYNAMIC_LATENCY) == (s->thread_info.fixed_latency != 0)); ^ rewrite expression to suppress warning: !(x & MASK) == (y != 0) <-> !(x & MASK) == !(y == 0) Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2015-05-27padsp: Fix wrong condition discovered by -Wlogical-not-parentheses warningPeter Meerwald1-2/+2
warnings emited by gcc 5.1: utils/padsp.c: In function 'dsp_trigger': utils/padsp.c:1902:39: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] while (!pa_operation_get_state(o) != PA_OPERATION_DONE) { ^ utils/padsp.c: In function 'dsp_cork': utils/padsp.c:1937:39: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] while (!pa_operation_get_state(o) != PA_OPERATION_DONE) { ^ Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2015-05-27i18n: add Occitan translationCédric Valmary2-0/+4138
2015-05-25build-sys: Install bash completion to where bash-completion.pc saysVille Skyttä2-1/+16
Fall back to the previous /etc/bash_completion.d dir on failures (either old bash completion or not installed). changes over Ville Skyttä's patch: define PKG_CHECK_VAR macro which became available only in pkg-config 0.28 see https://bugs.freedesktop.org/show_bug.cgi?id=88782 and https://bugs.freedesktop.org/show_bug.cgi?id=89540 Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2015-05-25biquad: Fix warning, gamma shadows global declarationPeter Meerwald1-6/+6
pulsecore/filter/biquad.c: In function 'biquad_lowpass': pulsecore/filter/biquad.c:52:10: warning: declaration of 'gamma' shadows a global declaration [-Wshadow] pulsecore/filter/biquad.c: In function 'biquad_highpass': pulsecore/filter/biquad.c:86:10: warning: declaration of 'gamma' shadows a global declaration [-Wshadow] Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2015-05-25biquad: Make use of M_SQRT2 constantPeter Meerwald1-6/+6
should be in math.h, use it Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2015-05-25core: Don't export pa_rtpoll_quit(), only used internallyPeter Meerwald2-11/+3
see https://bugs.freedesktop.org/show_bug.cgi?id=89539 Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2015-05-25pulse: Document pa_mainloop_quit()'s retval parameterPeter Meerwald1-2/+2
the argument's name in the header changed to retval to match the implementation Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2015-05-25daemon: Exit with code 0 on SIGINT and SIGTERMPeter Meerwald1-1/+1
see https://bugs.freedesktop.org/show_bug.cgi?id=86818 an exit code of 1 makes systemd believe that the service failed; better return 0 to denote that PA sucessfully stopped on the user's request sidenote: systemd's SuccessExitStatus= could be used to turn code 1 into a code denoting success Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Cc: jan.steffens@gmail.com
2015-05-25tests: add tolerant variation for comparing the rewind resultHui Wang1-4/+6
On 32bits OS, this test case fails. The reason is when rewinding to the middle of a block, some of float parameters in the saved_state are stored in the memory from FPU registers, and those parameters will be used for next time to process data with lfe. Here if FPU register is over 32bits, the storing from FPU register to memory will introduce some variation, and this small variation will introduce small variation to the rewinding result. So adding the tolerant variation for comparing the rewind result, make this test case can work on both 64bits OS and 32bits OS. Signed-off-by: Hui Wang <hui.wang@canonical.com>
2015-05-25tests: Remove a redundant mempool_new from resampler-testHui Wang1-2/+0
Signed-off-by: Hui Wang <hui.wang@canonical.com>
2015-05-22i18n: update Slovak translationDušan Kazik1-598/+641
2015-05-21Revert "Warn on loading module-dbus-protocol"Juho Hämäläinen1-5/+0
This reverts commit e2a433b222e2d4b6e85062b979e8ed3dae113aca. Events are now handled using hooks instead of asynchronous subscription system.
2015-05-21dbus: Use hooks for module proplist changesJuho Hämäläinen1-22/+19
2015-05-21dbus: Use hooks for module new and removed eventsJuho Hämäläinen1-38/+48
2015-05-21dbus: Use hook for sample cache proplist changesJuho Hämäläinen1-21/+20
2015-05-21dbus: Use hooks for sample cache new and removed eventsJuho Hämäläinen1-35/+61
2015-05-21core, core-scache: Fire hooks for new, changed and removed eventsJuho Hämäläinen2-3/+16
(Refactored by David Henningsson)
2015-05-21module: Fire hooks for new, proplist changed and removedJuho Hämäläinen1-0/+4
(Unlink callback moved by David Henningsson)
2015-05-21core: Add core hooks for module changesJuho Hämäläinen1-0/+3
(Name adjusted by David Henningsson)
2015-05-12protocol-native: Fix source latency calculation in ADJUST_LATENCY modeArun Raghavan1-9/+10
This fixes buffer attr calculation so that we set the source latency to the requested latency. This makes sense because the intermediate delay_memblockq is just a mechanism to send data to the client. It should not actually add to the total latency over what the source already provides. With this, the meaning of fragsize and maxlength become more meaningful/accurate with regards to ADJUST_LATENCY mode -- fragsize becomes the latency the source is configured for (which is then approximately the total latency until the buffer reaches the client). Maxlength, as before, continues to be the maximum amount of data we might hold for the client before overrunning.
2015-05-08lfe-filter: Use length modifier `z` for type `size_t`Paul Menzel1-2/+2
Fix the following warnings. CC pulsecore/filter/libpulsecore_6.0_la-lfe-filter.lo pulsecore/filter/lfe-filter.c: In function 'pa_lfe_filter_rewind': pulsecore/filter/lfe-filter.c:179:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=] pa_log_debug("Rewinding LFE filter %lu samples to position %lli. No saved state found", samples, (long long) f->index); ^ pulsecore/filter/lfe-filter.c:183:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=] pa_log_debug("Rewinding LFE filter %lu samples to position %lli. Found saved state at position %lli", ^ CC pulsecore/filter/libpulsecore_6.0_la-biquad.lo CC pulsecore/filter/libpulsecore_6.0_la-lfe-filter.lo pulsecore/filter/lfe-filter.c: In function 'pa_lfe_filter_rewind': pulsecore/filter/lfe-filter.c:179:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=] pa_log_debug("Rewinding LFE filter %lu samples to position %lli. No saved state found", samples, (long long) f->index); ^ pulsecore/filter/lfe-filter.c:183:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=] pa_log_debug("Rewinding LFE filter %lu samples to position %lli. Found saved state at position %lli", ^
2015-05-06man: Document .ifexists CLI meta commandPeter Meerwald1-0/+13
v2 (thanks Tanu) * describe purpose and file search Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Cc: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
2015-05-05man: Fix typos in pulse-cli-syntax.5Peter Meerwald1-3/+3
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2015-05-05alsa-mixer: Make line out path unavailable when "Front Headphone" is plugged inDavid Henningsson1-0/+4
This case was apparently overlooked. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-05-05Add a .travis.yml for Travis CIFelipe Sateler1-0/+64
Installs all the build dependencies, and runs make check and check-daemon. V1: Based on Arun Raghavan's travis file. Added trusty repositories to get newer libs. V2: Explicitly list all dependencies instead of relying on the Ubuntu package Build-Dependencies. Send notifications to pulseaudio-discuss V3: Install libsystemd-daemon-dev, libsystemd-id128-dev, libsystemd-journal-dev, and libsystemd-login-dev. Send notifications to pulseaudio-commits. Drop libjson0-dev, libjson-c-dev is the package to depend on.
2015-04-30oss: Use the correct fd when interacting with the mixerTanu Kaskinen1-1/+1
Adapted from a FreeBSD patch: http://svnweb.freebsd.org/ports/head/audio/pulseaudio/files/patch-src_modules_oss_module-oss.c?revision=372768&view=markup
2015-04-29core-util: Make pa_parse_volume() more strictTanu Kaskinen1-16/+26
Previously pa_parse_volume() clamped the value to fit in the valid range, but I think it's better to reject values outside the valid range. This also changes the percentage parsing to allow non-integer values.
2015-04-21i18n: Update Ukrainian translationYuri Chornoivan1-537/+646
2015-04-20core-util, pactl: Make one localised and one non-localised version of pa_yes_noDavid Henningsson2-10/+14
We currently use pa_yes_no to write module arguments, so they can not be localised. Instead add a new pa_yes_no_localised function and use it in pactl (and thus, revert all other places to use the non-localised version). BugLink: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1445358 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-13Add korean translationWim Taymans2-0/+3013
2015-04-13udev: Deal with unavailable bus propertyArun Raghavan1-3/+3
Fixes a compiler warning: ../../src/modules/udev-util.c: In function 'pa_udev_get_info': ../../src/modules/udev-util.c:228:443: warning: 'bus' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!pa_streq(bus, "firewire") && (v = udev_device_get_property_value(card, "ID_MODEL_FROM_DATABASE")) && *v)
2015-04-13detect: Fix OSS device detection with long namesAndrey Zholos1-1/+1
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=89921
2015-04-10alsa-mixer: Add paths/ports for multichannel profileDavid Henningsson2-1/+5
This makes the GUIs (e g gnome/unity-control-center) look more consistent with other inputs/outputs that also have ports. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-10alsa-mixer: Use separate profiles for Multichannel Input/OutputDavid Henningsson2-2/+15
This works around bug 80850: a mapping can only have one channel map, and in case of a 6-out 10-in device, the mapping will be adjusted to have both 10 and 6 channels, which does not work. Reported-by: Benjamin Tegge <benjaminosm@googlemail.com> Suggested-by: Raymond Yau <superquad.vortex2@gmail.com> BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=80850 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-10udev: use ID_MODEL/ID_VENDOR to give friendly name for FireWire devicesTakashi Sakamoto1-4/+7
For recently supported FireWire sound devices, udev's database assign the name of IEEE 1394 Phy/Link chipset to ID_XXX_FROM_DATABASE. This is not friently names to users. This commit applies a workaround to skip ID_XXX_FROM_DATABASE for any FireWire devices. [Fixed up by David Henningsson <david.henningsson@canonical.com>] Reported-by: Andras Muranyi <muranyia@gmail.com> Reference: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475 Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-10core-util: Filter out not-a-numbers in pa_atod()Tanu Kaskinen1-0/+6
We don't and probably never will have any pa_atod() callers that would require "NaN" to be accepted, so let's filter those out in pa_atod(), instead of requiring the callers to handle not-a-numbers appropriately (which they generally forget to do).
2015-04-10pactl: Fix relative volume parsingTanu Kaskinen1-1/+7
The recent change to reject leading '+' in pa_atod() broke the relative volume parsing in pactl. This fixes that.
2015-04-10module-switch-*: use pa_module_hook_connectDavid Henningsson2-46/+10
Refactoring, no functional change. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-10module-filter-*: use pa_module_hook_connectDavid Henningsson2-60/+14
Refactoring, no functional change. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-10module-alsa-card: use pa_module_hook_connectDavid Henningsson1-22/+4
Refactoring, no functional change. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-10module-suspend-on-idle: use pa_module_hook_connectDavid Henningsson1-72/+17
Refactoring, no functional change. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-10module-*-restore: use pa_module_hook_connectDavid Henningsson3-89/+23
Refactoring, no functional change. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2015-04-10module: Add hook dynarrayDavid Henningsson2-0/+20
This small helper will simplify code in many modules. The hooks added through pa_module_hook_connect will be freed just before pa__done is called (so trying to add hooks during pa__done will result in assertion failure). Signed-off-by: David Henningsson <david.henningsson@canonical.com>