* [PATCH] alsactl init: Mute CD Playback volume by default
@ 2011-04-04 9:36 David Henningsson
2011-04-04 10:49 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: David Henningsson @ 2011-04-04 9:36 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
The CD analog playback line is seldom used these days, as all
modern players rip the CD and use the DAC on the sound card.
In addition, it causes background hum on some machines.
Therefore keep it muted by default.
BugLink: http://bugs.launchpad.net/bugs/747184
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
[-- Attachment #2: 0001-alsactl-init-Mute-CD-Playback-volume-by-default.patch --]
[-- Type: text/x-patch, Size: 1689 bytes --]
>From 26b4ad5af8f342fea905ea3682d5a3a512f297e3 Mon Sep 17 00:00:00 2001
From: David Henningsson <david.henningsson@canonical.com>
Date: Mon, 4 Apr 2011 11:28:47 +0200
Subject: [PATCH] alsactl init: Mute CD Playback volume by default
The CD analog playback line is seldom used these days, as all
modern players rip the CD and use the DAC on the sound card.
In addition, it causes background hum on some machines.
Therefore keep it muted by default.
BugLink: http://bugs.launchpad.net/bugs/747184
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
alsactl/init/default | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/alsactl/init/default b/alsactl/init/default
index 7f8ec4c..b7cb941 100644
--- a/alsactl/init/default
+++ b/alsactl/init/default
@@ -144,17 +144,10 @@ CTL{name}="Music Playback Switch",CTL{do_search}=="1", \
CTL{values}="on"
CTL{reset}="mixer"
-CTL{name}="CD Playback Volume",PROGRAM!="__ctl_search", GOTO=""
-# if master volume control is present, turn CD volume to max
-ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
-ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
-# exception - some HDA codecs have shifted dB range
-CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{write}=="0dB",GOTO=""
-CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{write}=="0dB",GOTO=""
-CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
-LABEL=""
+CTL{name}="CD Playback Volume",CTL{do_search}=="1", \
+ CTL{values}="0%"
CTL{name}="CD Playback Switch",CTL{do_search}=="1", \
- CTL{values}="on"
+ CTL{values}="off"
CTL{reset}="mixer"
CTL{name}="Mono Playback Volume",CTL{do_search}=="1", \
--
1.7.4.1
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] alsactl init: Mute CD Playback volume by default
2011-04-04 9:36 [PATCH] alsactl init: Mute CD Playback volume by default David Henningsson
@ 2011-04-04 10:49 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2011-04-04 10:49 UTC (permalink / raw)
To: David Henningsson; +Cc: alsa-devel
At Mon, 04 Apr 2011 11:36:20 +0200,
David Henningsson wrote:
>
> The CD analog playback line is seldom used these days, as all
> modern players rip the CD and use the DAC on the sound card.
> In addition, it causes background hum on some machines.
> Therefore keep it muted by default.
>
> BugLink: http://bugs.launchpad.net/bugs/747184
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Applied now. Thanks.
Takashi
>
> --
> David Henningsson, Canonical Ltd.
> http://launchpad.net/~diwic
> [2 0001-alsactl-init-Mute-CD-Playback-volume-by-default.patch <text/x-patch (7bit)>]
> >From 26b4ad5af8f342fea905ea3682d5a3a512f297e3 Mon Sep 17 00:00:00 2001
> From: David Henningsson <david.henningsson@canonical.com>
> Date: Mon, 4 Apr 2011 11:28:47 +0200
> Subject: [PATCH] alsactl init: Mute CD Playback volume by default
>
> The CD analog playback line is seldom used these days, as all
> modern players rip the CD and use the DAC on the sound card.
> In addition, it causes background hum on some machines.
> Therefore keep it muted by default.
>
> BugLink: http://bugs.launchpad.net/bugs/747184
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> ---
> alsactl/init/default | 13 +++----------
> 1 files changed, 3 insertions(+), 10 deletions(-)
>
> diff --git a/alsactl/init/default b/alsactl/init/default
> index 7f8ec4c..b7cb941 100644
> --- a/alsactl/init/default
> +++ b/alsactl/init/default
> @@ -144,17 +144,10 @@ CTL{name}="Music Playback Switch",CTL{do_search}=="1", \
> CTL{values}="on"
>
> CTL{reset}="mixer"
> -CTL{name}="CD Playback Volume",PROGRAM!="__ctl_search", GOTO=""
> -# if master volume control is present, turn CD volume to max
> -ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
> -ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
> -# exception - some HDA codecs have shifted dB range
> -CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{write}=="0dB",GOTO=""
> -CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{write}=="0dB",GOTO=""
> -CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
> -LABEL=""
> +CTL{name}="CD Playback Volume",CTL{do_search}=="1", \
> + CTL{values}="0%"
> CTL{name}="CD Playback Switch",CTL{do_search}=="1", \
> - CTL{values}="on"
> + CTL{values}="off"
>
> CTL{reset}="mixer"
> CTL{name}="Mono Playback Volume",CTL{do_search}=="1", \
> --
> 1.7.4.1
>
> [3 <text/plain; us-ascii (7bit)>]
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-04 10:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-04 9:36 [PATCH] alsactl init: Mute CD Playback volume by default David Henningsson
2011-04-04 10:49 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.