forked from pool/pulseaudio
Scott Reeves
8ebb7137f0
Copy from home:sreeves1:branches:multimedia:libs/pulseaudio via accept of submit request 30064 revision 2. Request was accepted with message: OBS-URL: https://build.opensuse.org/request/show/30064 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=37
50 lines
1.7 KiB
Diff
50 lines
1.7 KiB
Diff
From 48e0f6808bcc8e07622e4a45b3aabfc4679e9966 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Thu, 14 Jan 2010 02:53:50 +0100
|
|
Subject: [PATCH] alsa: cover bass boost mixer element
|
|
|
|
http://pulseaudio.org/ticket/740
|
|
---
|
|
src/modules/alsa/alsa-mixer.c | 2 ++
|
|
.../alsa/mixer/paths/analog-output.conf.common | 11 +++++++++++
|
|
2 files changed, 13 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
|
|
index 8b13239..8bbd1f5 100644
|
|
--- a/src/modules/alsa/alsa-mixer.c
|
|
+++ b/src/modules/alsa/alsa-mixer.c
|
|
@@ -1713,6 +1713,8 @@ static int option_verify(pa_alsa_option *o) {
|
|
{ "input-boost-off", N_("No Boost") },
|
|
{ "output-amplifier-on", N_("Amplifier") },
|
|
{ "output-amplifier-off", N_("No Amplifier") },
|
|
+ { "output-bass-boost-on", N_("Bass Boost") },
|
|
+ { "output-bass-boost-off", N_("No Bass Boost") },
|
|
{ "output-speaker", N_("Speaker") },
|
|
{ "output-headphones", N_("Headphones") }
|
|
};
|
|
diff --git a/src/modules/alsa/mixer/paths/analog-output.conf.common b/src/modules/alsa/mixer/paths/analog-output.conf.common
|
|
index fd7f0cf..6131da5 100644
|
|
--- a/src/modules/alsa/mixer/paths/analog-output.conf.common
|
|
+++ b/src/modules/alsa/mixer/paths/analog-output.conf.common
|
|
@@ -110,6 +110,17 @@ priority = 10
|
|
name = output-amplifier-off
|
|
priority = 0
|
|
|
|
+[Element Bass Boost]
|
|
+switch = select
|
|
+
|
|
+[Option Bass Boost:on]
|
|
+name = output-bass-boost-on
|
|
+priority = 0
|
|
+
|
|
+[Option Bass Boost:off]
|
|
+name = output-bass-boost-off
|
|
+priority = 10
|
|
+
|
|
;;; 'Analog Output'
|
|
|
|
[Element Analog Output]
|
|
--
|
|
1.6.0.2
|
|
|