Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Eliot Blennerhassett <linux@audioscience.com>
To: alsa-devel@lists.sourceforge.net
Cc: julian_cable@yahoo.com
Subject: Re: amixer bug
Date: Fri, 09 Mar 2007 10:24:38 +1300	[thread overview]
Message-ID: <45F07F16.7080909@audioscience.com> (raw)
In-Reply-To: <mailman.174113.1173383910.20110.alsa-devel@lists.sourceforge.net>

> From: Julian Cable <julian_cable@yahoo.com> Subject: [Alsa-devel]
> amixer bug

> amixer correctly indicates that the default 0 value is equivalent to
> 50%. If I set the value using the % syntax all is well:
> 
> 0% -> -100 25% -> -50 50% -> 0 100% -> 100
> 
> But if I use the absolute notation then it rejects negative numbers.
> 
> If I use the incremental notation something even stranger happens. If
> the current value is positive, all is well. If the current value is
> +5 and I decrement by 10 then it correctly sets to -5, but if the
> current value is -5 and I decrement by 10 it sets the value to +100
> (ie the maximum).
> 
> So there are two problems:
> 
> 1) negative numbers are not allowed on the command line

Try adding -- between the options and the parameters

aplay cset numid=1 -- -5

> 2) decrementing doesn't work when the current value is negative.

Perusing amixer source, the increment syntax only works for controls
identified as volumes.  Other integer controls don't support it.

> 
> I tried to raise this as a bug but I've forgotten my password and
> bugzilla refuses to send a reminder to my registered account (this
> one). cheers
> 
> Julian
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

       reply	other threads:[~2007-03-08 21:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.174113.1173383910.20110.alsa-devel@lists.sourceforge.net>
2007-03-08 21:24 ` Eliot Blennerhassett [this message]
2007-03-08 19:58 amixer bug Julian Cable

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=45F07F16.7080909@audioscience.com \
    --to=linux@audioscience.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=julian_cable@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox