: fast repeated calls to adjust volume incrementally fail for multi channel control of SB Extigy
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2001>
======================================================================
Reported By: andersin
Assigned To:
======================================================================
Project: ALSA - utils Issue ID: 2001 Category: amixer Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 04-05-2006 00:06 CEST Last Modified: 08-01-2006 16:28 CEST
======================================================================
Summary: fast repeated calls to adjust volume incrementally
fail for multi channel control of SB Extigy
Description:
The SB Extigy has multiple channels which amixer reports as:
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right - Rear Left - Rear Right -
Front Center - Woofer
Limits: Playback 0 - 200
Mono:
Front Left: Playback 146 [73%] [on]
Front Right: Playback 146 [73%] [on]
Rear Left: Playback 146 [73%] [on]
Rear Right: Playback 146 [73%] [on]
Front Center: Playback 146 [73%] [on]
Woofer: Playback 146 [73%] [on]
repeated calls to amixer to incrementally adjust the volume make the volume "wobble". The volume stays at about the same value but goes slightly up and down on different speakers (can't quite pin down which ones, but the effect is noticeable).
The effect can be easily reproduced:
while ( true ); do amixer sset Master 2- & done;
Note the &. It is necessary, since
while ( true ); do amixer sset Master 2-; done;
will work just fine, however even here a small quirk can be observed. I let the above loop run and observe the volume through alsamixer. Now I issue in another shell amixer sset Master 150.
The volume does get set to the desired value on all controls associated with master (all 6 channels). However, sometimes (often for the last speakers) the volume gets reset to a lower value than it used to be before I use amixer.
Example:
channel 1 2 3 4 5 6
---------------------------------------------
values before control 100 100 100 100 100 100
values set by amixer 150 150 150 150 150 150
values for next step 148 148 148 98 98 98
How many channels are affected is up to chance, but the higher ones 5+6 have a higher chance of being subject to this issue so I guess it could be some race between the various amixer processes.
Note that this behavior is fine if I use a mono volume control.
======================================================================
----------------------------------------------------------------------
Raymond - 08-01-06 16:28
----------------------------------------------------------------------
Would you post the content of test.state after 'alsactl store -f test.state' ?
Issue History
Date Modified Username Field Change
======================================================================
04-05-06 00:06 andersin New Issue
08-01-06 16:28 Raymond Note Added: 0011375
======================================================================
-------------------------------------------------------------------------
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