summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2019-10-25 08:59:39 -0300
committerFelipe Sateler <fsateler@debian.org>2019-10-25 08:59:39 -0300
commit46d713223cd3500ed857be31ff31a0433c866cb8 (patch)
treef988891b008fe38b7b12b6e6d9be5b0ec54ef85b
parent9f79139d38509079006810ddd89cc1e8875de75f (diff)
Pick upstream patch disabling flat-volumes by default.
Closes: #837637 Closes: #541538
-rw-r--r--debian/patches/daemon-conf-disable-flat-volumes-by-default.patch57
-rw-r--r--debian/patches/series1
2 files changed, 58 insertions, 0 deletions
diff --git a/debian/patches/daemon-conf-disable-flat-volumes-by-default.patch b/debian/patches/daemon-conf-disable-flat-volumes-by-default.patch
new file mode 100644
index 0000000..680a818
--- /dev/null
+++ b/debian/patches/daemon-conf-disable-flat-volumes-by-default.patch
@@ -0,0 +1,57 @@
+From: Tanu Kaskinen <tanuk@iki.fi>
+Date: Mon, 23 Sep 2019 07:48:48 +0300
+Subject: daemon-conf: disable flat-volumes by default
+
+Almost all distributions patch the configuration to disable
+flat-volumes, because users tend to find the concept confusing (and it
+also causes nasty surprises when some application pushes the volume to
+100%). Let's remove the need for patching and disable the feature by
+default.
+
+Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/691
+(cherry picked from commit ba73faa4c05717d74fbfd17e8175731e60d8841d)
+---
+ man/pulse-daemon.conf.5.xml.in | 2 +-
+ src/daemon/daemon-conf.c | 2 +-
+ src/daemon/daemon.conf.in | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in
+index f49fa9b..1436126 100644
+--- a/man/pulse-daemon.conf.5.xml.in
++++ b/man/pulse-daemon.conf.5.xml.in
+@@ -237,7 +237,7 @@ License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
+ <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 --git a/src/daemon/daemon-conf.c b/src/daemon/daemon-conf.c
+index 33cf7a7..e74b4ba 100644
+--- a/src/daemon/daemon-conf.c
++++ b/src/daemon/daemon-conf.c
+@@ -68,7 +68,7 @@ static const pa_daemon_conf default_conf = {
+ .realtime_priority = 5, /* Half of JACK's default rtprio */
+ .disallow_module_loading = false,
+ .disallow_exit = false,
+- .flat_volumes = true,
++ .flat_volumes = false,
+ .exit_idle_time = 20,
+ .scache_idle_time = 20,
+ .script_commands = NULL,
+diff --git a/src/daemon/daemon.conf.in b/src/daemon/daemon.conf.in
+index a955523..480608e 100644
+--- a/src/daemon/daemon.conf.in
++++ b/src/daemon/daemon.conf.in
+@@ -60,7 +60,7 @@ ifelse(@HAVE_DBUS@, 1, [dnl
+ ; enable-lfe-remixing = no
+ ; lfe-crossover-freq = 0
+
+-; flat-volumes = yes
++; flat-volumes = no
+
+ ifelse(@HAVE_SYS_RESOURCE_H@, 1, [dnl
+ ; rlimit-fsize = -1
diff --git a/debian/patches/series b/debian/patches/series
index 4cfd5a4..f461664 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
qpaeq-Drop-unused-imports.patch
qpaeq-use-python3-instead-of-python-2.patch
+daemon-conf-disable-flat-volumes-by-default.patch