All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Guthrie <gmane@colin.guthr.ie>
To: alsa-devel@alsa-project.org
Subject: Re: Bug in alsa-lib or alsamixer and amixer
Date: Wed, 16 Jun 2010 00:07:52 +0100	[thread overview]
Message-ID: <hv912l$j53$1@dough.gmane.org> (raw)
In-Reply-To: <AANLkTikawWMIPuuahzJuqnqHTW0MsRZWaP1c3O4pY8N7@mail.gmail.com>

'Twas brillig, and Raymond Yau at 15/06/10 23:29 did gyre and gimble:
> 2010/6/16 Colin Guthrie <gmane@colin.guthr.ie>
> 
>> 'Twas brillig, and Raymond Yau at 15/06/10 00:43 did gyre and gimble:
>>> +12dB(400%) is even larger than the software gain 150% of PA
>>
>> Software gain of PA 150% = ~+11dB, so not as different as you imply.
>>
>> I've explained the cubic mapping already, so please don't use arbitrary,
>> differently calculated percentages when comparing things. It's like
>> comparing apples to oranges.
>>
>> Col
>>
>>
> When I changed the volume slider of the gnome sound applet ( select
> perference ) in Fedora 13 to maximum (i.e. PA 150% )
> 
> Seem to be bug in amixer and alsamixer
> 
> alsamixer also change to 150% but press any key change back to 100%

The fact that any key changes it back to 100% is kinda expected. It's
not designed to handle values >100% so it makes sense that it clamps it.
Annoying, but it makes sense.

> The volume range is only from 0 to  65536
> 
> why did alsa-lib allow alsa-pulse plugin to set it outside the range ,
> alsamixer and amixer also display 150% ?
> 
> amixer -D pulse
> Simple mixer control 'Master',0
>   Capabilities: pvolume pswitch pswitch-joined
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 65536
>   Mono:
>   Front Left: Playback 98304 [150%] [on]
>   Front Right: Playback 98304 [150%] [on]


While I agree this could be thought of as a bug, it's actually the
nicest possible display for a system that has no concept of volumes > 100%.

That said, the correct fix would be a nice mechanism for marking the
100% mark. e.g. specifying the limits as a triplet, lower, normal (aka
100%) and max.

AFAIK, no such system is currently in place.

An alternative would be to scale the alsa volume control to the full
range, e.g. make 0 - 98304[1] the range it accepts. But this sucks as
the percentage shown in alsa is not the same as the percentage shown in
other GUIs.

In a practical sense, the current setup is probably less problematic
than the latter suggestion.

Col

[1] FWIW, this precice value will likely change. I've not yet actioned
it but it's likely to be fixed at +11dB which IIRC is slightly above
150%. 11dB is just a figure that we felt was "sensible" with regards to
GUI consistency and I'll try and push this out ot all the UIs I can.


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

  reply	other threads:[~2010-06-15 23:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-15 22:29 Bug in alsa-lib or alsamixer and amixer Raymond Yau
2010-06-15 23:07 ` Colin Guthrie [this message]
2010-06-16  0:41   ` Raymond Yau
2010-06-16  6:33   ` Raymond Yau
2010-06-16 21:47     ` Colin Guthrie
2010-06-16 22:09       ` Raymond Yau
2010-06-16 22:36         ` Colin Guthrie
2010-06-16 23:34           ` Raymond Yau
2010-06-17  7:15             ` James Courtier-Dutton
2010-06-19  0:39               ` Raymond Yau
2010-06-19  8:13                 ` Colin Guthrie

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='hv912l$j53$1@dough.gmane.org' \
    --to=gmane@colin.guthr.ie \
    --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 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.