RFE: Disable PulseAudio's flat volumes f24+ (#1265267)

This commit is contained in:
Rex Dieter 2016-03-04 10:03:41 -06:00
parent fe7af693ff
commit 571d96efea
2 changed files with 47 additions and 1 deletions

View File

@ -0,0 +1,36 @@
diff -up pulseaudio-8.0/man/pulse-daemon.conf.5.xml.in.disable_flat_volumes pulseaudio-8.0/man/pulse-daemon.conf.5.xml.in
--- pulseaudio-8.0/man/pulse-daemon.conf.5.xml.in.disable_flat_volumes 2015-12-31 00:28:35.000000000 -0600
+++ pulseaudio-8.0/man/pulse-daemon.conf.5.xml.in 2016-03-04 09:49:48.833444284 -0600
@@ -215,7 +215,7 @@ License along with PulseAudio; if not, s
<p><opt>flat-volumes=</opt> Enable 'flat' volumes, i.e. where
possible let the sink volume equal the maximum of the volumes of
the inputs connected to it. Takes a boolean argument, defaults
- to <opt>yes</opt>.</p>
+ to <opt>no</opt>.</p>
</option>
</section>
diff -up pulseaudio-8.0/src/daemon/daemon-conf.c.disable_flat_volumes pulseaudio-8.0/src/daemon/daemon-conf.c
--- pulseaudio-8.0/src/daemon/daemon-conf.c.disable_flat_volumes 2015-12-31 00:28:35.000000000 -0600
+++ pulseaudio-8.0/src/daemon/daemon-conf.c 2016-03-04 09:51:32.250215876 -0600
@@ -526,7 +526,7 @@ int pa_daemon_conf_load(pa_daemon_conf *
{ "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 },
+ { "flat-volumes", pa_config_parse_not_bool, &c->flat_volumes, NULL },
{ "lock-memory", pa_config_parse_bool, &c->lock_memory, NULL },
{ "enable-deferred-volume", pa_config_parse_bool, &c->deferred_volume, NULL },
{ "exit-idle-time", pa_config_parse_int, &c->exit_idle_time, NULL },
diff -up pulseaudio-8.0/src/daemon/daemon.conf.in.disable_flat_volumes pulseaudio-8.0/src/daemon/daemon.conf.in
--- pulseaudio-8.0/src/daemon/daemon.conf.in.disable_flat_volumes 2015-09-09 23:51:41.000000000 -0500
+++ pulseaudio-8.0/src/daemon/daemon.conf.in 2016-03-04 09:50:46.453874189 -0600
@@ -57,7 +57,7 @@ ifelse(@HAVE_DBUS@, 1, [dnl
; enable-lfe-remixing = yes
; lfe-crossover-freq = 120
-; flat-volumes = yes
+; flat-volumes = no
ifelse(@HAVE_SYS_RESOURCE_H@, 1, [dnl
; rlimit-fsize = -1

View File

@ -19,7 +19,7 @@
Name: pulseaudio
Summary: Improved Linux Sound Server
Version: %{pa_major}%{?pa_minor:.%{pa_minor}}
Release: 3%{?snap:.%{snap}git%{shortcommit}}%{?dist}
Release: 4%{?snap:.%{snap}git%{shortcommit}}%{?dist}
License: LGPLv2+
URL: http://www.freedesktop.org/wiki/Software/PulseAudio
%if 0%{?gitrel}
@ -39,6 +39,10 @@ Source5: default.pa-for-gdm
# user disables autospawn, or logging in as root
Patch1: pulseaudio-autostart.patch
# disable flat-volumes by default
# https://bugzilla.redhat.com/show_bug.cgi?id=1265267
Patch2: pulseaudio-8.0-disable_flat_volumes.patch
## upstream patches
## upstreamable patches
@ -227,6 +231,9 @@ This package contains GDM integration hooks for the PulseAudio sound server.
%setup -q -T -b0 -n %{name}-%{version}%{?gitrel:-%{gitrel}-g%{shortcommit}}
%patch1 -p1 -b .autostart
%if 0%{?fedora} > 23
%patch2 -p1 -b .disable_flat_volumes
%endif
sed -i.no_consolekit -e \
's/^load-module module-console-kit/#load-module module-console-kit/' \
@ -562,6 +569,9 @@ exit 0
%changelog
* Fri Mar 04 2016 Rex Dieter <rdieter@fedoraproject.org> - 8.0-4
- RFE: Disable PulseAudio's flat volumes f24+ (#1265267)
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild