From: James Courtier-Dutton <James@superbug.co.uk>
To: James Courtier-Dutton <James@superbug.co.uk>,
ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: What does 0dB refer to? (Logitech USB Speakers)
Date: Sat, 12 Apr 2008 19:14:44 +0100 [thread overview]
Message-ID: <4800FC14.3060804@superbug.co.uk> (raw)
In-Reply-To: <20080412133536.GC32491@tango.0pointer.de>
Lennart Poettering wrote:
> On Sat, 12.04.08 12:15, James Courtier-Dutton (James@superbug.co.uk) wrote:
>
>
>>> I somehow expected that the magic "0dB" setting in ALSA would refer to
>>> some sane default, where the final output would have a sensible
>>> volume. In this case this is not so. I am thus wondering how ALSA
>>> actually defines 0dB? Is this a bug in the hardware that should be
>>> worked around in ALSA? Is this an ALSA bug?
>>>
>
>
>> The 0dB is a gain value.
>> So 0dB means that the input to the mixer element exactly equals the
>> output from the mixer element.
>> So 0dB ensures no distortion will occur.
>> It is fine to set the 0dB for all output mixer controls except one.
>> The problem comes with the "Master" control, where 0dB generally means
>> the maximum possible volume.
>>
>
> In the case of the USB speakers there is no Master, only PCM. And it
> is that PCM volume that is the offender.
>
> My I thus assume that we can say that for all but the last element in
> the series 0db means avg input power equals avg output power, and for
> the last one 0db means max? That would fit on what you are saying but
> also match my usb speakers, not depending on the existance of a
> "Master".
>
>
>> The correct setting of this is therefore very dependent on the type of
>> amplification that is being done after the sound card master output.
>> Everyone's setup will vary. But, on my system a value between -40dB and
>> -30dB seems about ok.
>> The user will hear sound, but it will not be too loud.
>> I suppose we will need to canvas people on the best value to use.
>>
>
> With all hw I tested this scheme actually seems to work fine. (-40dB,
> Intel HDA, those Logitech speakers, Terratech Aureon 5.1.)
>
>
>> Your report about anything over -41dB is way too loud does present a
>> problem. Obviously, the controls for some sound cards are still
>> calibrated wrong. Unfortunately, the calibration of USB sound cards is
>> not left to ALSA, but in fact the sound card manufacturer sets up the
>> calibration tables for us, so for your Logitech speakers, ALSA would
>> have to add a specific quirk.
>>
>
> Actually, it is fine with -40dB, not just -41dB. But then it gets
> rapidly too loud.
>
>
>> Finally, does anyone else think -40dB for the Master, and 0dB for all
>> other controls is too loud for the default or not?
>>
>
> Works fine with my hardware at least ;-)
>
> My scheme in PA will thus now be:
>
> 1) Initialize Master to -40dB
> 2) If there is no master, initialize PCM to -40dB
> 3) If there is a master, initialize PCM to 0dB
>
> Does that sound reasonable?
>
> Lennart
>
>
That sounds reasonable for now. Professional sound card users will maybe
just have to remember to mute the master control before connecting their
speakers.
I don't understand why your sound card is OK at -40dB but too loud at
-41dB. It does not make any sense. There must be a bug there, because
-41dB should be quieter than -40dB.
James
next prev parent reply other threads:[~2008-04-12 18:14 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 [this message]
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
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=4800FC14.3060804@superbug.co.uk \
--to=james@superbug.co.uk \
--cc=alsa-devel@alsa-project.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox