summaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
* solaris: Illumos does not ship with SOUND_PCM* functionalityKamil Rytarowski2016-01-221-0/+6
| | | | | | | | | | | | | | Code reference: https://github.com/joyent/illumos-joyent/blob/master/usr/src/uts/common/sys/audio/audio_oss.h Add autoconf checks for: - SOUND_PCM_READ_RATE - SOUND_PCM_READ_CHANNELS - SOUND_PCM_READ_BITS Some platforms like SunOS (Illumos) may ship without SOUND_PCM_* functionality Thanks to Jonathan Perkin (Joyent) for Illumos code reference.
* pacmd: Fix typo in set-default-* helpPeter Mattern2015-10-301-1/+1
| | | | which was causing faulty output when running 'pacmd --help' on the shell
* Removed exclamation marks from user-visible messages.Deepak Srivastava2015-08-141-1/+1
| | | | | | | | | | <EP-E358F00C1D9A449EAE69225B9D2530F8> According to rationale-"http://techbase.kde.org/Projects/Usability/HIG/Exclamation_points" as suggested in reported bug. Component: misc BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=78563 Signed-off-by: Deepak Srivastava <srivastava.d@samsung.com>
* patcl: Error msg from pactl not quite accurate for 'mute' commandsDeepak Srivastava2015-08-121-4/+4
| | | | | | | | | | <EP-E358F00C1D9A449EAE69225B9D2530F8> Updated the error string for mute commands in pactl. If someone forget to specify the parameter on the commandline the resulting error message isn't quite right. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=90117 Signed-off-by: Deepak Srivastava <srivastava.d@samsung.com>
* pacmd: Placeholders describing command line options should not have spacesManish Sogi2015-08-121-1/+1
| | | | | | | <EP-F69A421D31544C56BDE97C590307C014> Buglink: https://bugs.freedesktop.org/show_bug.cgi?id=78565 Signed-off-by: Manish Sogi <manish.sogi@samsung.com>
* padsp: Avoid possible deadlock. Unlocked i->mainloop before returning from ↵Deepak Srivastava2015-07-211-0/+3
| | | | | | | | | default case. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=91184 Signed-off-by: Deepak Srivastava <srivastava.d@samsung.com> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* padsp: Fix wrong condition discovered by -Wlogical-not-parentheses warningPeter Meerwald2015-05-271-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>
* core-util, pactl: Make one localised and one non-localised version of pa_yes_noDavid Henningsson2015-04-201-10/+10
| | | | | | | | | 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>
* pactl: Fix relative volume parsingTanu Kaskinen2015-04-101-1/+7
| | | | | The recent change to reject leading '+' in pa_atod() broke the relative volume parsing in pactl. This fixes that.
* pacat: Fix comment wordingPeter Meerwald2015-02-261-1/+1
| | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* pacat: State purpose of program depending how it was invokedPeter Meerwald2015-02-121-5/+11
| | | | | | | | see https://bugs.freedesktop.org/show_bug.cgi?id=68135 state purpose of paplay/parec/pamon/parecord/pacat when invoked with -h Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* update FSF addresses to FSF web pageOndrej Holecek2015-01-147-21/+7
| | | | | | | | | FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources.
* pacmd: add missing 'else' keywordBoris Egorov2015-01-131-1/+1
| | | | | | See code above for proper behavior. Issue detected by PVS Studio
* pactl: fix getopt indexing for set-*-volumeFelipe Sateler2015-01-081-4/+4
| | | | | | | | When pactl is invoked with any options or the -- specifier, optind will be > 1. Therefore using a static 3 value is wrong. Use optind+2 as both offset and count difference. Bug-Debian: http://bugs.debian.org/774810
* pactl: Remove deprecated 'stat' behaviourPeter Meerwald2014-11-041-12/+2
| | | | | | | | | | | | the stat command should only output statistics, not info behaviour was deprecated anno 2011 in 8ace9185 "pactl: Make stat backwards compatible" -- fix this now v2: (thanks Tanu Kaskinen): * adjust shell completion Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* authkey: Rename pa_authkey_load_auto() to pa_authkey_load()Tanu Kaskinen2014-06-241-1/+1
| | | | | pa_authkey_load() was removed earlier, so the _auto suffix isn't necessary any more.
* client-conf: Move x11 and env loading to pa_client_conf_load()Tanu Kaskinen2014-06-241-2/+1
| | | | This simplifies the code a bit.
* client-conf: Don't report failure from pa_client_conf_load()Tanu Kaskinen2014-06-241-9/+2
| | | | | | | | | | | 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.
* pacat: Mention source in addition to sink where applicable in helpPeter Meerwald2014-04-271-4/+4
| | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* pactl: Clean up checking for VOL_RELATIVE flagPeter Meerwald2014-04-161-2/+2
| | | | | | | | | VOL_RELATIVE if a bit flag (1 << 4), hence we can simply do if (vol_flags & VOL_RELATIVE) ... instead of if ((vol_flags & VOL_RELATIVE) == VOL_RELATIVE) ... Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* pactl: Document ability to specify channel volumes individuallyPeter Meerwald2014-04-161-2/+2
| | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* pactl: Check consistency of volumes specifiedPeter Meerwald2014-04-161-29/+33
| | | | | | | | Must use one way to specify volumes consistently, e.g. +3dB +3dB, mixing different ways is not allowed, such as 40% 1000 Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* pactl: Allow to set volume of each channel independently (Bug #39190)Parin Porecha2014-04-161-51/+71
| | | | | | | | | | Example: pactl set-sink-volume "sink_name" 32000 40000 If the number of volumes provided is different than the number of channels (excluding the case where a single volume is provided), an error message is displayed explaining why the volumes could not be set. patch proposed by Parin Porecha code refactoring and commit message slightly edited by Peter Meerwald
* pactl: Stop parsing option when the first non-option is encounteredPeter Meerwald2014-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | fix bug https://bugs.freedesktop.org/show_bug.cgi?id=77108 see getopt(3): ""By default, getopt() permutes the contents of argv as it scans, so that eventually all the nonoptions are at the end. Two other modes are also implemented. If the first character of optstring is '+' or the envi‐ ronment variable POSIXLY_CORRECT is set, then option processing stops as soon as a nonoption argument is encountered. If the first character of optstring is '-', then each nonoption argv-element is handled as if it were the argument of an option with character code 1. (This is used by programs that were written to expect options and other argv-elements in any order and that care about the ordering of the two.) The special argument "--" forces an end of option-scanning regardless of the scan‐ ning mode."" prepend optstring with '+' to use POSIXLY_CORRECT mode Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* client-conf: Remove redundant function parametersTanu Kaskinen2014-03-281-1/+1
|
* pactl: Fix crash with older serversTanu Kaskinen2014-03-281-69/+137
| | | | | | | | Servers older than 0.9.15 don't know anything about cards, and card operations will return a NULL pa_operation object when connected to that old server. We must check the pa_operation pointer before passing it to pa_operation_unref(), otherwise a NULL operation will result in a crash.
* pacat: Fix partially translated messageTanu Kaskinen2014-03-241-2/+2
| | | | | | The word "not" was not translated. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=76529
* pactl: Fix a copy-paster errorTanu Kaskinen2014-03-101-1/+1
|
* introspect: Fix ABI break introduced by b98a2e1Luiz Augusto von Dentz2013-11-051-5/+5
| | | | | | | | | | | | | | | The size of pa_card_profile_info cannot change even if it just a field appended to end because each entry is appended to a contiguous memory and accessed by offset this may lead clients to access invalid data. To fix a new struct called pa_card_profile_info2 is introduced and shall be used for now on while pa_card_profile_info shall be considered deprecated but it is still mantained for backward compatibility. A new field called profiles2 is introduced to pa_card_info, this new field is an array of pointers to pa_card_profile_info2 so it should be possible to append new fields to the end of the pa_card_profile_info2 without breaking binary compatibility as the entries are not accessed by offset.
* pacat: Added support for recording from one specific sink inputMagnus Ekhall2013-08-141-3/+18
| | | | BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=66326
* pacmd: Discriminate between interactive and non-interactive modePeter Meerwald2013-08-021-2/+9
| | | | | | | | | | | | | interactive sessions are initiated with a hello message in order to receive a welcome message from the PA daemon and a command prompt interactive sessions have a terminal connected to stdin non-interactive sessions execute commands given on the command line or received via stdin; non-interactive sessions have neither welcome message nor command prompt Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* pactl: Print available flag of card profilesLuiz Augusto von Dentz2013-07-151-1/+2
|
* Use pa_(c)volume_snprint_verbose() everywhereTanu Kaskinen2013-07-091-36/+18
| | | | | | | | All pa_cvolume_snprint(), pa_volume_snprint(), pa_sw_cvolume_snprint_dB() and pa_sw_volume_snprint_dB() calls have been replaced with pa_cvolume_snprint_verbose() and pa_volume_snprint_verbose() calls, making the log output more informative and the code sometimes simpler.
* Remove pa_bool_t and replace it with bool.poljar (Damir Jelić)2013-07-045-48/+48
| | | | | | | | | | | | | | | | | commands used for this (executed from the pulseaudio/src directory): find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \ -a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \ -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \ -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \ -a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \ -a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \ -exec sed -i -e 's/\bpa_bool_t\b/bool/g' \ -e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \; and: sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \ -e '181,194!s/\bTRUE\b/true/' -e \ '181,194!s/\bFALSE\b/false/' pulsecore/macro.h
* Whitespace cleanup: Remove all multiple newlinespoljar (Damir Jelić)2013-06-244-4/+0
| | | | | | | | | | | | | | | This patch removes all occurrences of double and triple newlines. Command used for this: find . -type d \( -name ffmpeg \) -prune -o \ -regex '\(.*\.[hc]\|.*\.cc\)' \ -a -not -name 'adrian-aec.*' -a -not \ -name reserve.c -a -not -name 'rtkit.*' \ -exec sed -i -e '/^$/{N;s/^\n$//}' {} \; Two passes were needed to remove triple newlines. The excluded files are mirrored files from external sources.
* Style fix: Remove new lines from opening bracketspoljar (Damir Jelić)2013-06-241-2/+1
| | | | | | | | | | | | | This patch replaces every occurrence of ')\n{' with ') {'. Command used for this: find . -type d \( -name ffmpeg \) -prune -o \ -regex '\(.*\.[hc]\|.*\.cc\)' \ -a -not -name core-util.c -a -not \ -name adrian-aec.c -a -not -name g711.c \ -exec sed -i -e '/)$/{N;s/)\n{$/) {/}' {} \; The excluded files are mirrored files from external sources.
* Style fix: Add a space between the closing/opening bracketpoljar (Damir Jelić)2013-06-241-1/+1
| | | | | | | | | | This patch replaces every occurrence of '){' with ') {'. The ffmpeg source tree was excluded since it will disappear anyways. Command used for this: find . -type d \( -name ffmpeg \) -prune -o \ -regex '\(.*\.[hc]\|.*\.cc\)' \ -exec sed -i -e 's/){/) {/' {} \;
* pactl: Use colon to separate priority in profiles outputPeter Meerwald2013-06-041-1/+1
| | | | | | | | | | | for example: Profiles: input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority. 60) output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority. 6000) it should be "priority: xxx", not "priority. xxx" Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
* pactl: Flush stdout buffer when printing subscribe events.Nikolay Amiantov2013-06-041-0/+1
| | | | | | | | "pactl subscribe" is running continuously, and without flushing its output is not usable for "process-on-arrival" per-line tasks, such as grepping. This patch should fix this. For example, now: pactl subscribe | grep 'server' should print only server events as they arrive.
* pasuspender: Resume before exiting in case of SIGINT or fork() failure.Tanu Kaskinen2013-06-041-29/+53
| | | | | | | | Pressing Ctrl-C in a terminal while pasuspender is running causes the sinks and sources to stay suspended after pasuspender has exited, which is very annoying. This patch fixes that problem, and also a similar problem with fork() failures.
* Fix various typos in messages and commentsYuri Chornoivan2013-04-161-1/+1
|
* pacat: Fix mode detection for parecordTanu Kaskinen2013-03-211-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.
* pacat: Handle holes in recording streams.Tanu Kaskinen2013-02-041-11/+26
| | | | | | pa_silence_memory() pulls sample-util as a dependency, so it had to be moved from libpulsecore to libpulsecommon. sample-util in turn pulls some more stuff.
* padsp: Handle holes in recording streams.Tanu Kaskinen2013-02-041-1/+14
|
* pactl: Document @DEFAULT_SINK@, @DEFAULT_SOURCE@ and @DEFAULT_MONITOR@David Henningsson2013-02-041-0/+2
| | | | | | | | I went to implement the possibility to use the default sink/source but found that it was already working. So I figured I'd update the help text instead. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* pactl: Add a command for setting the default sink/source.poljar (Damir Jelić)2013-02-011-0/+31
| | | | | | | | | This adds two new commands to pactl: set-default-sink set-default-source This command has been part of the native protocol for a long time, no reason not to expose it in pactl.
* pactl: Add the ability to toggle mute state.poljar (Damir Jelić)2013-01-271-21/+108
| | | | | | | This patch adds the ability to toggle mute for sink/sources and sink-inputs and source outputs. All mute commands now accept 1|0|toggle as an argument.
* Fix pa_parse_boolean() return value checking.Tanu Kaskinen2012-12-191-2/+16
| | | | | pa_parse_boolean() return value shouldn't be stored in pa_bool_t, because 1 and -1 need to be distinguished.
* pasuspender: Check pa_context_connect() return value.Tanu Kaskinen2012-12-191-1/+5
|
* qpaeq: Try to load equalizer module before failing, better error messagesMatěj Laitl2012-12-191-2/+20
| | | | | | | | | | | | | This fixes bug 38728 [1]. When equalizer features are unavailable in running pulseaudio daemon, try to load relevant module. If this fails, following error is printed on stderr instead of a confusing traceback: It seems that running pulseaudio does not support equalizer features and loading module-equalizer-sink module failed. Exiting... [1] https://bugs.freedesktop.org/show_bug.cgi?id=38728 Signed-off-by: Matěj Laitl <matej@laitl.cz>