All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sebastian H." <vand2@gmx.de>
To: Raymond Yau <superquad.vortex2@gmail.com>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: Mixer volume/decibel mapping
Date: Tue, 08 Jun 2010 08:08:13 +0200	[thread overview]
Message-ID: <4C0DDE4D.9070201@gmx.de> (raw)
In-Reply-To: <AANLkTinTV_MnU-rBOrLc66YhGFbP9SJVZ2p5DFlcS16T@mail.gmail.com>


>>>>> I thinks Sebastian's question is whether he can use
>>>>> snd_mixer_selem_set_playback_
>>>>> dB() set any values in between the volume steps
>>>>>
>>>>> e.g. Master volume control of ac97 is 1.5 dB per step,
>>>>>
>>>>> when using snd_mixer_selem_set_playback_dB() to set -0.9dB , how can
>> the
>>>>> mixer application know what dB value has been set since the value is in
>>>>> between -1.5dB and 0dB without snd_mixer_selem_get_playbackdB()
>>>>
>>>> Indeed I quite happy with what ALSA already provides (I'm just an
>>>> interested
>>>> amateur). My main problem is that there is no documentation for the
>> Mixer
>>>> API
>>>> and how things are related to each other. Like CTL, HCTL, Mixer and
>>>> SimpleMixer and of course volume and dB in the snd_mixer_selem_
>> functions.
>>>>
>>>> The root issue is that I wondered if the mixer application should offer
>> a
>>>> separate text input for decibel values besides the text input for volume
>>>> values. As pointed out this would not allow for finer grained volume
>>>> control
>>>> therefore for the moment I'll probably stick with a mere text label for
>> dB.
>>>>
>>>>
>>
>>> The main difference between those volume controls using TLV_DB_SCALE and
>>> TLV_DB_LINEAR is -6dB is at the middle of TLV_DB_LINEAR and TLV_DB_SCALE
>> has
>>> fixed dB value between any two steps.
>>
>> What's TLV_DB_SCALE and TLV_DB_LINEAR for?
>> A grep in the alsa-lib sources did not return anything.
>>
>>> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/332631
>>>
>>> if the user has both hda onboard sound and emu10k1, he may notice that
>> there
>>> is big difference if he set volume at percentage instead of dB
>>
>> Interesting, that's my setup. I have an onboard HDA Intel and a
>> pci SBLive! Card and some el cheapo USB sound cards to experiment
>> with. Thanks I'll give the volume listening test a try at some point.
>>
> 
> 
> https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4883
> 
> Pekka Lampila reported that when he set -40dB and only get back -9999999 by
> his program alsa_mixer_test.c
> 
> I don't have emu10k1 so don't know whether this is a bug of alsa-lib or not

I also get a big jump from -39.60dB to -99999.99 dB for some emu10k1
sliders when I move them to the minimum although their advertised
minimum is -40dB. This looks like a way to express log ( 0 ).

(Sorry, I wrote this before with the wrong email address...)

  parent reply	other threads:[~2010-06-08  6:09 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19 16:34 Mixer volume/decibel mapping Sebastian H.
2010-05-20  7:34 ` Clemens Ladisch
2010-05-20  8:01 ` James Courtier-Dutton
2010-05-20  8:53   ` Raymond Yau
2010-05-20  9:41     ` Sebastian H.
2010-05-20 16:13       ` James Courtier-Dutton
2010-05-21  0:35         ` Raymond Yau
2010-05-21  1:30         ` Raymond Yau
2010-05-21  8:18           ` Sebastian H.
2010-06-07  3:37             ` Raymond Yau
2010-06-07  9:19               ` Sebastian H.
2010-06-08  1:03                 ` Raymond Yau
2010-06-08  6:02                   ` Sebastian Holtermann
2010-06-08 15:31                     ` Raymond Yau
2010-06-09 10:26                       ` Sebastian H.
2010-06-08  6:08                   ` Sebastian H. [this message]
2010-06-09  5:39                     ` Raymond Yau
2010-06-09  7:34                       ` Sebastian H.
2010-06-10  0:08                         ` Raymond Yau
2010-06-09  5:55                     ` Raymond Yau
2010-06-08  2:23                 ` Raymond Yau
2010-05-21  6:35         ` Clemens Ladisch
2010-05-21  6:51           ` Peter Ujfalusi
2010-05-21  9:56             ` Clemens Ladisch
2010-05-24  2:52               ` Raymond Yau
2010-05-25  8:38                 ` Clemens Ladisch
2010-05-25  8:43                   ` James Courtier-Dutton
2010-05-25  8:49                     ` Clemens Ladisch
2010-05-25 23:24                     ` Raymond Yau
2010-05-27 13:32                       ` Colin Guthrie
2010-05-29  3:54                         ` Raymond Yau
2010-05-29  1:57                     ` Raymond Yau
2010-05-29 18:46                       ` Colin Guthrie
2010-06-04 23:46                   ` Raymond Yau
     [not found]               ` <AANLkTik7mD1DAVWkOwM7sNu0EfgGApvzX9WRXWBOO4PI@mail.gmail.com>
2010-05-25  8:45                 ` Clemens Ladisch
2010-05-25 13:51                   ` Raymond Yau
2010-05-25 14:36                     ` Clemens Ladisch
2010-05-25 23:00                       ` Raymond Yau
2010-05-27  0:20                       ` Raymond Yau
2010-05-28 13:04                       ` Raymond Yau
2010-05-28 14:10                         ` Clemens Ladisch
2010-05-29  1:31                           ` Raymond Yau
2010-05-21 13:16           ` James Courtier-Dutton
2010-05-25  8:21             ` Clemens Ladisch
2010-06-09  6:19             ` Raymond Yau
2010-05-22  9:24           ` Raymond Yau
2010-05-20  9:20   ` Sebastian H.

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=4C0DDE4D.9070201@gmx.de \
    --to=vand2@gmx.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=superquad.vortex2@gmail.com \
    /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.