diff options
-rw-r--r-- | man/pulse-client.conf.5.xml.in | 4 | ||||
-rw-r--r-- | man/pulse-daemon.conf.5.xml.in | 59 | ||||
-rw-r--r-- | src/daemon/daemon-conf.c | 18 | ||||
-rw-r--r-- | src/daemon/daemon.conf.in | 12 | ||||
-rw-r--r-- | src/pulse/client-conf.c | 21 | ||||
-rw-r--r-- | src/pulse/client.conf.in | 2 |
6 files changed, 62 insertions, 54 deletions
diff --git a/man/pulse-client.conf.5.xml.in b/man/pulse-client.conf.5.xml.in index 26e38908..46cc8450 100644 --- a/man/pulse-client.conf.5.xml.in +++ b/man/pulse-client.conf.5.xml.in @@ -92,9 +92,9 @@ USA. </option> <option> - <p><opt>disable-shm=</opt> Disable data transfer via POSIX + <p><opt>enable-shm=</opt> Enable data transfer via POSIX shared memory. Takes a boolean argument, defaults to - <opt>no</opt>.</p> + <opt>yes</opt>.</p> </option> <option> diff --git a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in index f1d5b8f6..82c2b8e5 100644 --- a/man/pulse-daemon.conf.5.xml.in +++ b/man/pulse-daemon.conf.5.xml.in @@ -65,20 +65,21 @@ USA. </option> <option> - <p><opt>disallow-module-loading=</opt> Disallow module loading - after startup. This is a security feature that makes sure that - no further modules may be loaded into the PulseAudio server - after startup completed. It is recommended to enable this when - <opt>system-instance</opt> is enabled. Please note that certain - features like automatic hot-plug support will not work if this - option is enabled. Takes a boolean argument, defaults to - <opt>no</opt>. The <opt>--disallow-module-loading</opt> command line - option takes precedence.</p> + <p><opt>allow-module-loading=</opt> Allow/disallow module + loading after startup. This is a security feature that if + dsabled makes sure that no further modules may be loaded into + the PulseAudio server after startup completed. It is recommended + to disable this when <opt>system-instance</opt> is + enabled. Please note that certain features like automatic + hot-plug support will not work if this option is enabled. Takes + a boolean argument, defaults to <opt>yes</opt>. The + <opt>--disallow-module-loading</opt> command line option takes + precedence.</p> </option> <option> - <p><opt>disallow-exit=</opt> Disallow exit on user - request. Defaults to <opt>no</opt>.</p> + <p><opt>allow-exit=</opt> Allow/disallow exit on user + request. Defaults to <opt>yes</opt>.</p> </option> <option> @@ -105,19 +106,19 @@ USA. </option> <option> - <p><opt>disable-remixing=</opt> Never upmix or downmix channels - to different channel maps. Instead, do a simple name-based - matching only.</p> + <p><opt>enable-remixing=</opt> If disabled never upmix or + downmix channels to different channel maps. Instead, do a simple + name-based matching only. Defaults to <opt>yes.</opt></p> </option> <option> - <p><opt>disable-lfe-remixing=</opt> When upmixing or downmixing - ignore LFE channels. When this option is on the output LFE - channel will only get a signal when an input LFE channel is - available as well. If no input LFE channel is available the - output LFE channel will always be 0. If no output LFE channel is - available the signal on the input LFE channel will be - ignored. Defaults to "on".</p> + <p><opt>enable-lfe-remixing=</opt> if disabeld when upmixing or + downmixing ignore LFE channels. When this option is dsabled the + output LFE channel will only get a signal when an input LFE + channel is available as well. If no input LFE channel is + available the output LFE channel will always be 0. If no output + LFE channel is available the signal on the input LFE channel + will be ignored. Defaults to <opt>no</opt>.</p> </option> <option> @@ -132,12 +133,12 @@ USA. </option> <option> - <p><opt>no-cpu-limit=</opt> Do not install the CPU load limiter, - even on platforms where it is supported. This option is useful - when debugging/profiling PulseAudio to disable disturbing - SIGXCPU signals. Takes a boolean argument, defaults to <opt>no</opt>. The - <opt>--no-cpu-limit</opt> command line argument takes - precedence.</p> + <p><opt>cpu-limit=</opt> If disabled d not install the CPU load + limiter, even on platforms where it is supported. This option is + useful when debugging/profiling PulseAudio to disable disturbing + SIGXCPU signals. Takes a boolean argument, defaults to + <opt>yes</opt>. The <opt>--no-cpu-limit</opt> command line + argument takes precedence.</p> </option> <option> @@ -148,9 +149,9 @@ USA. </option> <option> - <p><opt>disable-shm=</opt> Disable data transfer via POSIX + <p><opt>enable-shm=</opt> Enable data transfer via POSIX shared memory. Takes a boolean argument, defaults to - <opt>no</opt>. The <opt>--disable-shm</opt> command line + <opt>yes</opt>. The <opt>--disable-shm</opt> command line argument takes precedence.</p> </option> diff --git a/src/daemon/daemon-conf.c b/src/daemon/daemon-conf.c index 9010f2f6..9a87b555 100644 --- a/src/daemon/daemon-conf.c +++ b/src/daemon/daemon-conf.c @@ -441,11 +441,15 @@ int pa_daemon_conf_load(pa_daemon_conf *c, const char *filename) { { "high-priority", pa_config_parse_bool, &c->high_priority, NULL }, { "realtime-scheduling", pa_config_parse_bool, &c->realtime_scheduling, NULL }, { "disallow-module-loading", pa_config_parse_bool, &c->disallow_module_loading, NULL }, + { "allow-module-loading", pa_config_parse_not_bool, &c->disallow_module_loading, NULL }, { "disallow-exit", pa_config_parse_bool, &c->disallow_exit, NULL }, + { "allow-exit", pa_config_parse_not_bool, &c->disallow_exit, NULL }, { "use-pid-file", pa_config_parse_bool, &c->use_pid_file, NULL }, { "system-instance", pa_config_parse_bool, &c->system_instance, NULL }, { "no-cpu-limit", pa_config_parse_bool, &c->no_cpu_limit, NULL }, + { "cpu-limit", pa_config_parse_not_bool, &c->no_cpu_limit, NULL }, { "disable-shm", pa_config_parse_bool, &c->disable_shm, NULL }, + { "enable-shm", pa_config_parse_not_bool, &c->disable_shm, NULL }, { "flat-volumes", pa_config_parse_bool, &c->flat_volumes, NULL }, { "lock-memory", pa_config_parse_bool, &c->lock_memory, NULL }, { "exit-idle-time", pa_config_parse_int, &c->exit_idle_time, NULL }, @@ -465,7 +469,9 @@ int pa_daemon_conf_load(pa_daemon_conf *c, const char *filename) { { "default-fragment-size-msec", parse_fragment_size_msec, c, NULL }, { "nice-level", parse_nice_level, c, NULL }, { "disable-remixing", pa_config_parse_bool, &c->disable_remixing, NULL }, + { "enable-remixing", pa_config_parse_not_bool, &c->disable_remixing, NULL }, { "disable-lfe-remixing", pa_config_parse_bool, &c->disable_lfe_remixing, NULL }, + { "enable-lfe-remixing", pa_config_parse_not_bool, &c->disable_lfe_remixing, NULL }, { "load-default-script-file", pa_config_parse_bool, &c->load_default_script_file, NULL }, { "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL }, { "log-meta", pa_config_parse_bool, &c->log_meta, NULL }, @@ -623,12 +629,12 @@ char *pa_daemon_conf_dump(pa_daemon_conf *c) { pa_strbuf_printf(s, "nice-level = %i\n", c->nice_level); pa_strbuf_printf(s, "realtime-scheduling = %s\n", pa_yes_no(c->realtime_scheduling)); pa_strbuf_printf(s, "realtime-priority = %i\n", c->realtime_priority); - pa_strbuf_printf(s, "disallow-module-loading = %s\n", pa_yes_no(c->disallow_module_loading)); - pa_strbuf_printf(s, "disallow-exit = %s\n", pa_yes_no(c->disallow_exit)); + pa_strbuf_printf(s, "allow-module-loading = %s\n", pa_yes_no(!c->disallow_module_loading)); + pa_strbuf_printf(s, "allow-exit = %s\n", pa_yes_no(!c->disallow_exit)); pa_strbuf_printf(s, "use-pid-file = %s\n", pa_yes_no(c->use_pid_file)); pa_strbuf_printf(s, "system-instance = %s\n", pa_yes_no(c->system_instance)); - pa_strbuf_printf(s, "no-cpu-limit = %s\n", pa_yes_no(c->no_cpu_limit)); - pa_strbuf_printf(s, "disable-shm = %s\n", pa_yes_no(c->disable_shm)); + pa_strbuf_printf(s, "cpu-limit = %s\n", pa_yes_no(!c->no_cpu_limit)); + pa_strbuf_printf(s, "enable-shm = %s\n", pa_yes_no(!c->disable_shm)); pa_strbuf_printf(s, "flat-volumes = %s\n", pa_yes_no(c->flat_volumes)); pa_strbuf_printf(s, "lock-memory = %s\n", pa_yes_no(c->lock_memory)); pa_strbuf_printf(s, "exit-idle-time = %i\n", c->exit_idle_time); @@ -639,8 +645,8 @@ char *pa_daemon_conf_dump(pa_daemon_conf *c) { pa_strbuf_printf(s, "log-target = %s\n", c->auto_log_target ? "auto" : (c->log_target == PA_LOG_SYSLOG ? "syslog" : "stderr")); pa_strbuf_printf(s, "log-level = %s\n", log_level_to_string[c->log_level]); pa_strbuf_printf(s, "resample-method = %s\n", pa_resample_method_to_string(c->resample_method)); - pa_strbuf_printf(s, "disable-remixing = %s\n", pa_yes_no(c->disable_remixing)); - pa_strbuf_printf(s, "disable-lfe-remixing = %s\n", pa_yes_no(c->disable_lfe_remixing)); + pa_strbuf_printf(s, "enable-remixing = %s\n", pa_yes_no(!c->disable_remixing)); + pa_strbuf_printf(s, "enable-lfe-remixing = %s\n", pa_yes_no(!c->disable_lfe_remixing)); pa_strbuf_printf(s, "default-sample-format = %s\n", pa_sample_format_to_string(c->default_sample_spec.format)); pa_strbuf_printf(s, "default-sample-rate = %u\n", c->default_sample_spec.rate); pa_strbuf_printf(s, "default-sample-channels = %u\n", c->default_sample_spec.channels); diff --git a/src/daemon/daemon.conf.in b/src/daemon/daemon.conf.in index 6931359c..d8b58d8a 100644 --- a/src/daemon/daemon.conf.in +++ b/src/daemon/daemon.conf.in @@ -21,14 +21,14 @@ ; daemonize = no ; fail = yes -; disallow-module-loading = no -; disallow-exit = no +; allow-module-loading = yes +; allow-exit = yes ; use-pid-file = yes ; system-instance = no -; disable-shm = no +; enable-shm = yes ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB ; lock-memory = no -; no-cpu-limit = no +; cpu-limit = yes ; high-priority = yes ; nice-level = -11 @@ -51,8 +51,8 @@ ; log-backtrace = 0 ; resample-method = speex-float-3 -; disable-remixing = no -; disable-lfe-remixing = yes +; enable-remixing = yes +; enable-lfe-remixing = no ; flat-volumes = yes diff --git a/src/pulse/client-conf.c b/src/pulse/client-conf.c index 940d0b67..4aa4ba1f 100644 --- a/src/pulse/client-conf.c +++ b/src/pulse/client-conf.c @@ -92,16 +92,17 @@ int pa_client_conf_load(pa_client_conf *c, const char *filename) { /* Prepare the configuration parse table */ pa_config_item table[] = { - { "daemon-binary", pa_config_parse_string, &c->daemon_binary, NULL }, - { "extra-arguments", pa_config_parse_string, &c->extra_arguments, NULL }, - { "default-sink", pa_config_parse_string, &c->default_sink, NULL }, - { "default-source", pa_config_parse_string, &c->default_source, NULL }, - { "default-server", pa_config_parse_string, &c->default_server, NULL }, - { "autospawn", pa_config_parse_bool, &c->autospawn, NULL }, - { "cookie-file", pa_config_parse_string, &c->cookie_file, NULL }, - { "disable-shm", pa_config_parse_bool, &c->disable_shm, NULL }, - { "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL }, - { NULL, NULL, NULL, NULL }, + { "daemon-binary", pa_config_parse_string, &c->daemon_binary, NULL }, + { "extra-arguments", pa_config_parse_string, &c->extra_arguments, NULL }, + { "default-sink", pa_config_parse_string, &c->default_sink, NULL }, + { "default-source", pa_config_parse_string, &c->default_source, NULL }, + { "default-server", pa_config_parse_string, &c->default_server, NULL }, + { "autospawn", pa_config_parse_bool, &c->autospawn, NULL }, + { "cookie-file", pa_config_parse_string, &c->cookie_file, NULL }, + { "disable-shm", pa_config_parse_bool, &c->disable_shm, NULL }, + { "enable-shm", pa_config_parse_not_bool, &c->disable_shm, NULL }, + { "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL }, + { NULL, NULL, NULL, NULL }, }; if (filename) { diff --git a/src/pulse/client.conf.in b/src/pulse/client.conf.in index 579bcc20..6c8d371c 100644 --- a/src/pulse/client.conf.in +++ b/src/pulse/client.conf.in @@ -29,5 +29,5 @@ ; cookie-file = -; disable-shm = no +; enable-shm = yes ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB |