~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/daemon/cmdline.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-05-05 14:18:20 UTC
  • mfrom: (1.2.4 upstream) (1.1.8 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090505141820-rrr2mtdd1jkllvr8
Tags: 1:0.9.15-1ubuntu1
* Merge from unreleased Debian pulseaudio git, remaining changes:
  - epoch (my stupid fault :S)
  - Don't build against, and create jack package. Jack is not in main
  - use linear resampler to work better with lack of PREEMPT in jaunty's
    -generic kernel config, also change buffer size
  - Add alsa configuration files to route alsa applications via pulseaudio
  - Move libasound2-plugins from Recommends to Depends
  - Add pm-utils sleep hook to suspend (and resume) users' pulseaudio
    daemons
  - patch to fix source/sink and suspend-on-idle race
  - Make initscript more informative in the default case of per-user
    sessions
  - create /var/run/pulse, and make restart more robust
  - add status check for system wide pulseaudio instance
  - LSB {Required-*,Should-*} should specify hal instead of dbus,
    since hal is required (and already requires dbus)
  - indicate that the system pulseaudio instance is being started from the init
    script
  - Install more upstream man pages
  - Link to pacat for parec man page
  - check whether pulseaudio is running before preloading the padsp library
  - Add DEB_OPT_FLAG = -O3 as per recommendation from
    pulseaudio-discuss/2007-December/001017.html
  - cache /usr/share/sounds/ubuntu/stereo/ wav files on pulseaudio load
  - disable glitch free (use tsched=0)
  - Generate a PO template on build
  - add special case to disable pulseaudio loading if accessibility/speech
    is being used
  - the sd wrapper script should not load pulseaudio if pulseaudio is being
    used as a system service
  - add a pulseaudio apport hook
  - fix some typos in README.Debian
  - demote paprefs to suggests
  - drop padevchooser(Recommends) and pavucontrol (Suggests)
  - drop libasyncns-dev build dependency, its in universe
* add libudev-dev as a build-dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
  PulseAudio is free software; you can redistribute it and/or modify
7
7
  it under the terms of the GNU Lesser General Public License as published
8
 
  by the Free Software Foundation; either version 2 of the License,
 
8
  by the Free Software Foundation; either version 2.1 of the License,
9
9
  or (at your option) any later version.
10
10
 
11
11
  PulseAudio is distributed in the hope that it will be useful, but
52
52
    ARG_DISALLOW_MODULE_LOADING,
53
53
    ARG_DISALLOW_EXIT,
54
54
    ARG_EXIT_IDLE_TIME,
55
 
    ARG_MODULE_IDLE_TIME,
56
55
    ARG_SCACHE_IDLE_TIME,
57
56
    ARG_LOG_TARGET,
 
57
    ARG_LOG_META,
 
58
    ARG_LOG_TIME,
 
59
    ARG_LOG_BACKTRACE,
58
60
    ARG_LOAD,
59
61
    ARG_FILE,
60
62
    ARG_DL_SEARCH_PATH,
85
87
    {"disallow-module-loading",     2, 0, ARG_DISALLOW_MODULE_LOADING},
86
88
    {"disallow-exit",               2, 0, ARG_DISALLOW_EXIT},
87
89
    {"exit-idle-time",              2, 0, ARG_EXIT_IDLE_TIME},
88
 
    {"module-idle-time",            2, 0, ARG_MODULE_IDLE_TIME},
89
90
    {"scache-idle-time",            2, 0, ARG_SCACHE_IDLE_TIME},
90
91
    {"log-target",                  1, 0, ARG_LOG_TARGET},
 
92
    {"log-meta",                    2, 0, ARG_LOG_META},
 
93
    {"log-time",                    2, 0, ARG_LOG_TIME},
 
94
    {"log-backtrace",               1, 0, ARG_LOG_BACKTRACE},
91
95
    {"load",                        1, 0, ARG_LOAD},
92
96
    {"file",                        1, 0, ARG_FILE},
93
97
    {"dl-search-path",              1, 0, ARG_DL_SEARCH_PATH},
148
152
           "      --log-level[=LEVEL]               Increase or set verbosity level\n"
149
153
           "  -v                                    Increase the verbosity level\n"
150
154
           "      --log-target={auto,syslog,stderr} Specify the log target\n"
 
155
           "      --log-meta[=BOOL]                 Include code location in log messages\n"
 
156
           "      --log-time[=BOOL]                 Include timestamps in log messages\n"
 
157
           "      --log-backtrace=FRAMES            Include a backtrace in log messages\n"
151
158
           "  -p, --dl-search-path=PATH             Set the search path for dynamic shared\n"
152
159
           "                                        objects (plugins)\n"
153
160
           "      --resample-method=METHOD          Use the specified resampling method\n"
292
299
 
293
300
            case ARG_DISALLOW_EXIT:
294
301
                if ((conf->disallow_exit = optarg ? pa_parse_boolean(optarg) : TRUE) < 0) {
295
 
                    pa_log(_("--disallow-exit boolean argument"));
 
302
                    pa_log(_("--disallow-exit expects boolean argument"));
296
303
                    goto fail;
297
304
                }
298
305
                break;
321
328
                }
322
329
                break;
323
330
 
 
331
            case ARG_LOG_TIME:
 
332
                if ((conf->log_time = optarg ? pa_parse_boolean(optarg) : TRUE) < 0) {
 
333
                    pa_log(_("--log-time expects boolean argument"));
 
334
                    goto fail;
 
335
                }
 
336
                break;
 
337
 
 
338
            case ARG_LOG_META:
 
339
                if ((conf->log_meta = optarg ? pa_parse_boolean(optarg) : TRUE) < 0) {
 
340
                    pa_log(_("--log-meta expects boolean argument"));
 
341
                    goto fail;
 
342
                }
 
343
                break;
 
344
 
 
345
            case ARG_LOG_BACKTRACE:
 
346
                conf->log_backtrace = (unsigned) atoi(optarg);
 
347
                break;
 
348
 
324
349
            case ARG_EXIT_IDLE_TIME:
325
350
                conf->exit_idle_time = atoi(optarg);
326
351
                break;
327
352
 
328
 
            case ARG_MODULE_IDLE_TIME:
329
 
                conf->module_idle_time = atoi(optarg);
330
 
                break;
331
 
 
332
353
            case ARG_SCACHE_IDLE_TIME:
333
354
                conf->scache_idle_time = atoi(optarg);
334
355
                break;