1 |
commit: 02ec89fdd26b67f56ecce2d0747e4653e27db47b |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 28 22:24:32 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 2 17:06:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ec89fd |
7 |
|
8 |
media-sound/pulseaudio: Set flat-volumes=no by default |
9 |
|
10 |
Bug: https://bugs.gentoo.org/627894 |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
.../pulseaudio-11.1-disable-flat-volumes.patch | 48 ++++++++++++++++++++++ |
14 |
media-sound/pulseaudio/pulseaudio-11.1-r1.ebuild | 1 + |
15 |
2 files changed, 49 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/pulseaudio/files/pulseaudio-11.1-disable-flat-volumes.patch b/media-sound/pulseaudio/files/pulseaudio-11.1-disable-flat-volumes.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..40b23ec05f2 |
20 |
--- /dev/null |
21 |
+++ b/media-sound/pulseaudio/files/pulseaudio-11.1-disable-flat-volumes.patch |
22 |
@@ -0,0 +1,48 @@ |
23 |
+diff -up a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in |
24 |
+--- a/man/pulse-daemon.conf.5.xml.in 2016-05-26 23:21:17.000000000 -0500 |
25 |
++++ b/man/pulse-daemon.conf.5.xml.in 2016-05-31 10:01:55.679976730 -0500 |
26 |
+@@ -220,7 +220,7 @@ License along with PulseAudio; if not, s |
27 |
+ <p><opt>flat-volumes=</opt> Enable 'flat' volumes, i.e. where |
28 |
+ possible let the sink volume equal the maximum of the volumes of |
29 |
+ the inputs connected to it. Takes a boolean argument, defaults |
30 |
+- to <opt>yes</opt>.</p> |
31 |
++ to <opt>no</opt>.</p> |
32 |
+ </option> |
33 |
+ |
34 |
+ </section> |
35 |
+diff -up a/src/daemon/daemon-conf.c b/src/daemon/daemon-conf.c |
36 |
+--- a/src/daemon/daemon-conf.c 2016-05-26 23:21:17.000000000 -0500 |
37 |
++++ b/src/daemon/daemon-conf.c 2016-05-31 10:01:55.680976735 -0500 |
38 |
+@@ -68,7 +68,7 @@ static const pa_daemon_conf default_conf |
39 |
+ .realtime_priority = 5, /* Half of JACK's default rtprio */ |
40 |
+ .disallow_module_loading = false, |
41 |
+ .disallow_exit = false, |
42 |
+- .flat_volumes = true, |
43 |
++ .flat_volumes = false, |
44 |
+ .exit_idle_time = 20, |
45 |
+ .scache_idle_time = 20, |
46 |
+ .script_commands = NULL, |
47 |
+diff -up a/src/daemon/daemon.conf.in b/src/daemon/daemon.conf.in |
48 |
+--- a/src/daemon/daemon.conf.in 2016-05-31 10:01:55.680976735 -0500 |
49 |
++++ b/src/daemon/daemon.conf.in 2016-05-31 10:02:28.048133267 -0500 |
50 |
+@@ -57,7 +57,7 @@ ifelse(@HAVE_DBUS@, 1, [dnl |
51 |
+ ; enable-lfe-remixing = no |
52 |
+ ; lfe-crossover-freq = 0 |
53 |
+ |
54 |
+-; flat-volumes = yes |
55 |
++; flat-volumes = no |
56 |
+ |
57 |
+ ifelse(@HAVE_SYS_RESOURCE_H@, 1, [dnl |
58 |
+ ; rlimit-fsize = -1 |
59 |
+diff -up a/src/pulsecore/core.c b/src/pulsecore/core.c |
60 |
+--- a/src/pulsecore/core.c 2016-05-26 23:21:17.000000000 -0500 |
61 |
++++ b/src/pulsecore/core.c 2016-05-31 10:01:55.681976740 -0500 |
62 |
+@@ -135,7 +135,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, |
63 |
+ c->exit_idle_time = -1; |
64 |
+ c->scache_idle_time = 20; |
65 |
+ |
66 |
+- c->flat_volumes = true; |
67 |
++ c->flat_volumes = false; |
68 |
+ c->disallow_module_loading = false; |
69 |
+ c->disallow_exit = false; |
70 |
+ c->running_as_daemon = false; |
71 |
|
72 |
diff --git a/media-sound/pulseaudio/pulseaudio-11.1-r1.ebuild b/media-sound/pulseaudio/pulseaudio-11.1-r1.ebuild |
73 |
index 1a8c69657dd..4b5a65ba72d 100644 |
74 |
--- a/media-sound/pulseaudio/pulseaudio-11.1-r1.ebuild |
75 |
+++ b/media-sound/pulseaudio/pulseaudio-11.1-r1.ebuild |
76 |
@@ -119,6 +119,7 @@ RDEPEND="${RDEPEND} |
77 |
PATCHES=( |
78 |
"${FILESDIR}/${P}"-qpaeq-pyqt5-{1,2}.patch |
79 |
"${FILESDIR}/${P}"-glibc-2.27.patch |
80 |
+ "${FILESDIR}/${P}"-disable-flat-volumes.patch # bug 627894 |
81 |
) |
82 |
|
83 |
pkg_pretend() { |