From: Lennart Poettering <mznyfn@0pointer.de>
To: Aldrin Martoq <amartoq@dcc.uchile.cl>
Cc: alsa-devel@alsa-project.org
Subject: Re: What does 0dB refer to? (Logitech USB Speakers)
Date: Tue, 15 Apr 2008 01:43:58 +0200 [thread overview]
Message-ID: <20080414234358.GA19108@tango.0pointer.de> (raw)
In-Reply-To: <17eedd8a0804141508s67c815bfw969e0c21b2b1298c@mail.gmail.com>
On Mon, 14.04.08 18:08, Aldrin Martoq (amartoq@dcc.uchile.cl) wrote:
> > > Yes, but what I am asking for is to define the dB values of the master
> > > control relative to the some ref level on this line-out. What happens
> > > after the line-out doesn't matter at all.
>
> Lennart: while I definitely agree on what you try to achieve, I
> strongly disagree the way it's being solved.
Uh? Nothing is solved. We have this discussion on this ML because it
needs to be solved.
> Initial volume setup is an *installation* issue, not a *boot or daemon
> startup* issue. When you buy a notebook with linux pre-installed, it's
> the manufacturer who must make sure the notebook has the appropiate
> volume levels, factory default. When you install Fedora, it's the
> fedora install program who must make sure the appropiate volume
> levels. Both ways, when the user starts its new shiny linux, it just
> works.
It's not installation issue. It's a "seeing for the first time"
issue. For hotplug devices this might be much later than on installation.
In one of the first emails of this thread I already explained that I'd
like to see a new command for alsactl called "reset" or suchlike which
implements the logic to initialize the dB scales properly. We'd then
call this program from the udev rules if "alsactl restore" fails
because the device was unknown before and has no configuration file
yet.
Right now we have this really awful program in Fedora called "salsa"
and "alsaunmute" which implements this logic, but is really really bad
in doing so, because it just initializes everything to 70% for unknown
devices. Also, while it is able to restore the volume settings, it is
not capable to save them on hot-unplug. Which makes the whole thing
pretty pointless.
But anyway, isn't this exactly what you are looking for? I am not sure
what you are asking for more than this?
However, having "alsctl reset" is nice. But it is still not sufficient
for the actual problems I need to solve in PA. See below.
> That's all, end of story! If you put code that tries to guess what the
> appropiate volume should be for any case, it will become an infinite
> problem of what is right and what is wrong, not counting the annoying
> user experience this will bring. You can't guess what is right for
> every people, so a sane mute (in case of no other source of
> information) is clearly the only good choice.
The problem is a bit more complex. Think of multiple sessions and
stuff. If ConsoleKit informs PA about a session switch we need to be
able to provide every user hs own set of mixer settings.
Dude, it's pretty easy to define a common refernce of the dB
values. In fact, James (who afaik did the dB scale work initially)
already agreed to this and even suggested measuring the voltage on the
output jack.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
next prev parent reply other threads:[~2008-04-14 23:43 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-11 20:46 What does 0dB refer to? (Logitech USB Speakers) Lennart Poettering
2008-04-12 0:09 ` Mark Brown
2008-04-12 7:27 ` John Rigg
2008-04-12 11:15 ` James Courtier-Dutton
2008-04-12 12:01 ` John Rigg
2008-04-12 13:16 ` Lennart Poettering
2008-04-12 13:35 ` Lennart Poettering
2008-04-12 18:14 ` James Courtier-Dutton
2008-04-12 18:25 ` Florian Faber
2008-04-12 19:26 ` James Courtier-Dutton
2008-04-12 19:34 ` James Courtier-Dutton
2008-04-12 19:37 ` Rene Herman
2008-04-14 16:48 ` Lennart Poettering
2008-04-14 17:00 ` Rene Herman
2008-04-14 17:24 ` Lennart Poettering
2008-04-14 22:47 ` Rene Herman
2008-04-14 23:57 ` Lennart Poettering
2008-04-15 1:04 ` Rene Herman
2008-04-15 4:09 ` Florian Faber
2008-04-15 17:02 ` Rene Herman
2008-04-12 21:41 ` John Rigg
2008-04-12 21:55 ` James Courtier-Dutton
2008-04-12 22:09 ` Rene Herman
2008-04-12 22:23 ` Rene Herman
2008-04-14 16:58 ` Lennart Poettering
2008-04-14 17:28 ` Rene Herman
2008-04-12 22:43 ` John Rigg
2008-04-13 12:36 ` Alexander E. Patrakov
2008-04-14 16:56 ` Lennart Poettering
2008-04-14 16:50 ` Lennart Poettering
2008-04-15 15:03 ` Wolfgang Woehl
2008-04-12 21:14 ` John Rigg
2008-04-12 21:54 ` stan
2008-04-12 23:00 ` John Rigg
2008-04-12 23:24 ` Lee Revell
2008-04-13 10:51 ` James Courtier-Dutton
2008-04-13 11:26 ` Florian Faber
2008-04-13 12:09 ` James Courtier-Dutton
2008-04-13 11:52 ` Rene Herman
2008-04-13 15:17 ` stan
2008-04-13 16:28 ` Rene Herman
2008-04-14 16:40 ` Lennart Poettering
2008-04-12 19:32 ` Rene Herman
2008-04-12 21:16 ` Rene Herman
2008-04-13 17:48 ` Mark Brown
2008-04-14 17:00 ` Lennart Poettering
2008-04-14 17:22 ` Rene Herman
2008-04-14 17:28 ` Lennart Poettering
2008-04-14 21:07 ` James Courtier-Dutton
2008-04-14 22:08 ` Aldrin Martoq
2008-04-14 23:43 ` Lennart Poettering [this message]
2008-04-14 23:54 ` Lee Revell
2008-04-15 2:18 ` Aldrin Martoq
2008-04-15 3:52 ` Florian Faber
2008-04-15 12:32 ` John Rigg
2008-04-15 13:12 ` John Rigg
2008-04-15 14:33 ` Rene Herman
2008-04-16 14:29 ` Rene Herman
2008-04-16 15:19 ` Rene Herman
2008-04-16 15:37 ` Rene Herman
2008-04-17 20:39 ` James Courtier-Dutton
2008-04-17 21:30 ` Rene Herman
2008-06-09 23:37 ` Rene Herman
2008-04-15 14:43 ` James Courtier-Dutton
2008-04-15 16:55 ` John Rigg
2008-04-15 15:42 ` Wolfgang Woehl
2008-04-15 15:51 ` Rene Herman
2008-04-15 16:41 ` John Rigg
2008-04-15 17:14 ` Wolfgang Woehl
2008-04-15 17:50 ` John Rigg
2008-04-20 1:01 ` Lennart Poettering
2008-04-20 15:23 ` stan
2008-04-21 3:20 ` Alexander E. Patrakov
2008-04-21 13:43 ` Takashi Iwai
2008-04-21 15:25 ` Rene Herman
2008-04-21 16:01 ` Jaroslav Kysela
2008-04-21 16:06 ` Takashi Iwai
2008-04-21 16:09 ` Jaroslav Kysela
2008-04-21 16:17 ` Takashi Iwai
2008-04-15 10:17 ` Takashi Iwai
2008-04-20 0:00 ` Lennart Poettering
2008-04-21 13:32 ` Takashi Iwai
2008-04-21 17:10 ` Rene Herman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080414234358.GA19108@tango.0pointer.de \
--to=mznyfn@0pointer.de \
--cc=alsa-devel@alsa-project.org \
--cc=amartoq@dcc.uchile.cl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.