~ubuntu-branches/ubuntu/oneiric/alsa-utils/oneiric-proposed

« back to all changes in this revision

Viewing changes to debian/patches/0001-alsactl-init-Mute-CD-Playback-volume-by-default.patch

  • Committer: Bazaar Package Importer
  • Author(s): David Henningsson, David Henningsson, Marcin Juszkiewicz
  • Date: 2011-04-04 11:49:36 UTC
  • Revision ID: james.westby@ubuntu.com-20110404114936-sb1wedgbqat32rr2
Tags: 1.0.24.2-0ubuntu4
[ David Henningsson ]
* Mute CD playback volume by default (LP: #747184)

[ Marcin Juszkiewicz ]
* Fixed postinst to not fail on fresh installs. (LP: #753544)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 26b4ad5af8f342fea905ea3682d5a3a512f297e3 Mon Sep 17 00:00:00 2001
 
2
From: David Henningsson <david.henningsson@canonical.com>
 
3
Date: Mon, 4 Apr 2011 11:28:47 +0200
 
4
Subject: [PATCH] alsactl init: Mute CD Playback volume by default
 
5
 
 
6
The CD analog playback line is seldom used these days, as all
 
7
modern players rip the CD and use the DAC on the sound card.
 
8
In addition, it causes background hum on some machines.
 
9
Therefore keep it muted by default.
 
10
 
 
11
BugLink: http://bugs.launchpad.net/bugs/747184
 
12
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
 
13
---
 
14
 alsactl/init/default |   13 +++----------
 
15
 1 files changed, 3 insertions(+), 10 deletions(-)
 
16
 
 
17
diff --git a/alsactl/init/default b/alsactl/init/default
 
18
index 7f8ec4c..b7cb941 100644
 
19
--- a/alsactl/init/default
 
20
+++ b/alsactl/init/default
 
21
@@ -144,17 +144,10 @@ CTL{name}="Music Playback Switch",CTL{do_search}=="1", \
 
22
   CTL{values}="on"
 
23
 
 
24
 CTL{reset}="mixer"
 
25
-CTL{name}="CD Playback Volume",PROGRAM!="__ctl_search", GOTO=""
 
26
-# if master volume control is present, turn CD volume to max
 
27
-ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
 
28
-ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
 
29
-# exception - some HDA codecs have shifted dB range
 
30
-CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{write}=="0dB",GOTO=""
 
31
-CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{write}=="0dB",GOTO=""
 
32
-CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
 
33
-LABEL=""
 
34
+CTL{name}="CD Playback Volume",CTL{do_search}=="1", \
 
35
+  CTL{values}="0%"
 
36
 CTL{name}="CD Playback Switch",CTL{do_search}=="1", \
 
37
-  CTL{values}="on"
 
38
+  CTL{values}="off"
 
39
 
 
40
 CTL{reset}="mixer"
 
41
 CTL{name}="Mono Playback Volume",CTL{do_search}=="1", \
 
42
-- 
 
43
1.7.4.1
 
44