All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugtrack@alsa-project.org
To: alsa-devel@alsa-project.org
Subject: [ALSA - driver 0000408]: Volume control is chaotic
Date: Fri,  8 Oct 2004 12:24:08 +0200 (CEST)	[thread overview]
Message-ID: <20041008102408.198952A003@server.perex-int.cz> (raw)


A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000408
======================================================================
Reported By:                skamp
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Bug ID:                     408
Category:                   PCI - ice1724
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Distribution:               LFS 5.1.1, BLFS 5.1
Kernel Version:             2.4.26
======================================================================
Date Submitted:             07-27-2004 18:40 CEST
Last Modified:              10-08-2004 12:24 CEST
======================================================================
Summary:                    Volume control is chaotic
Description: 
Volume control doesn't work properly, with alsa-mixer as well as with
gnome-volume-control. As I figured out that line-out volume was controled
with DAC and DAC1 (how intuitive), I noticed that while sliding the
controls up and down increased and decreased the volume as expected,
modifying the master volume control afterwards made the volume jump to a
much lower level than expected: increasing or decreasing the master volume
even just a little bit makes the overall volume drop, even though it is
not mirrored by the controls.

Thus, setting DAC and DAC1 to 100% while Master was set to 82% resulted in
a quite high volume, but modifying the master volume to 84% or 80%
resulted in the drop. Setting master volume to 60% made the sound very
low, and setting it to 40% made it almost inaudible, until I changed DAC
and DAC1 by 2%.
======================================================================

----------------------------------------------------------------------
 skamp - 08-17-2004 04:33 CEST 
----------------------------------------------------------------------
Fixed with alsa-* 1.0.6, although the Master control is weird: you only get
full sound when you set Master to 0. Increasing Master decreases overall
volume very fast. This control is basically unusable.

----------------------------------------------------------------------
 tiwai - 08-18-2004 13:47 CEST 
----------------------------------------------------------------------
Could you try the attached patch?

----------------------------------------------------------------------
 skamp - 08-18-2004 15:20 CEST 
----------------------------------------------------------------------
patching file pci/ice1712/aureon.c
Hunk https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000001 FAILED at 273.
Hunk https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000002 FAILED at 305.
2 out of 2 hunks FAILED -- saving rejects to file
pci/ice1712/aureon.c.rej

I installed version 1.0.6 when it got out.

----------------------------------------------------------------------
 tiwai - 08-18-2004 15:32 CEST 
----------------------------------------------------------------------
It's a patch to alsa-kernel tree (in alsa-driver).  You'll likely
need to pass an appropriate -p option.

----------------------------------------------------------------------
 skamp - 08-18-2004 15:36 CEST 
----------------------------------------------------------------------
Oops, I issued patch -Np1 instead of patch -Np0. My bad.
The patch solves the issue, but Master still has to be set to 100%, so the
overall volume is way too low for that value. If I set Front to the
maximum as well, the volume is still quite bearable, and the sound to
noise ratio is very *low*. I know this card could blow my ears away, and
I'm far from being deaf ;-)

edited on: 08-18-04 15:36

----------------------------------------------------------------------
 tiwai - 08-18-2004 15:41 CEST 
----------------------------------------------------------------------
The problem of sensitivty is that the volume is defined in a wide
range.  In the second patch I changed the master volume to -64dB
from -128dB, but it's still fairly big.  If you choose 50%, it means
-32dB.  (Moreover, surround volumes are up to -101dB.)

This problem will be solved when we introduce the dB control.
For kernel OSS emulation, the problem will remain, though...

Anyway, I'll apply the patch then.  Thanks for testing.

----------------------------------------------------------------------
 ungod - 10-06-2004 22:10 CEST 
----------------------------------------------------------------------
I noticed somewhat the same thing with the Aureon 7.1 Space (Naturally as
they're quite identical). I supposed that the reason why the sound behaves
as it does is that the volume control is linear although sound amplitude
behaves logarithm.
Personally I've found other problems with the volume control. There is no
PCM volume control, the master volume only operates on digital sound etc.
So I've made a patch (for the CVS) which does a few changes in this
section (uploaded as aureon-volfix4.diff). It may need some changes here
and there though (no mute for LFE/Center):

Summary: Misc. volume fixes

 - Added mono mute function to Front/Rear/Side
 - Master volume is artificially made in software
 - Added PCM volume control (basically what was the master volume)
 - Front/Read/Side/LFE/Center is now logarithmic (and computed as <volume>
* <master volume> / <maximum volume>)

Signed-off-by: Peter Christensen <peter@developers.dk>

----------------------------------------------------------------------
 ungod - 10-07-2004 09:52 CEST 
----------------------------------------------------------------------
Did a few changes, so that the mutes actually operated on the analogue
sound too. aureon-volfix4.1.diff relaces aureon-volfix4.diff

Summary: Misc. volume fixes

 - Added mute function to Master/Front/Rear/Side/LFE/CEnter
 - Master volume is artificially made in software
 - Added PCM volume control (basically what was the master volume)
 - Front/Read/Side/LFE/Center is now logarithmic (and computed as <volume>
* <master volume> / <maximum volume>)

Signed-off-by: Peter Christensen <peter@developers.dk>

----------------------------------------------------------------------
 tiwai - 10-07-2004 14:43 CEST 
----------------------------------------------------------------------
Thanks for the patch.  It looks almost fine.

I changed the patch as attached (4.2.diff).

- fold and simplified too long lines
- small optimization for dac loop
- removed debug printk
- fixed a typo (% 1).

I'll apply it after you confirm that it works.

----------------------------------------------------------------------
 ungod - 10-07-2004 18:03 CEST 
----------------------------------------------------------------------
Well, I'm not perfect (especially not at certain times of the day). I'm not
supprised that I overlooked one of the debug messages and the silly %1.
Anyway it all work properly on my Space, and I am convinced that it also
works on the Sky and Universe, but that is up to skamp to figure out.

----------------------------------------------------------------------
 skamp - 10-07-2004 21:26 CEST 
----------------------------------------------------------------------
Volume seems to work fine now (I've tested it for about 20 minutes),
although I didn't test 5.1 output (I don't have a 5.1 system). PCM output
with headphone amp. on is great, but only if you mute line-in. Otherwise,
you can clearly hear static. BTW, switching headphone amp. on and off
produces a distinct "click" coming from the soundcard (I mean I can hear
*without* the headphones plugged in): is it *actually* turning a physical
switch on and off ??

One small bug: I get the following message when calling alsactl restore:
/usr/sbin/alsactl: set_control:757: missing control.30.value
"Control 30" is the capture switch. The /etc/asound.state file in fact
misses a "value" line for this control.

Otherwise, volume control seems to work fine now.

----------------------------------------------------------------------
 ungod - 10-08-2004 04:01 CEST 
----------------------------------------------------------------------
The click you hear is perfectly normal and is caused by the relay which
drives the headphone amp. You can see it on the card as a large white
box.

I believe the problem with mixer restoration is that the mixer now have
more mixer controls than previous, so the first time you attempt to
restore the mixer settings, it will do so based on the number of mixer
controls in the previous driver. I believe that calling "alsactl store"
should do the trick.

----------------------------------------------------------------------
 skamp - 10-08-2004 09:31 CEST 
----------------------------------------------------------------------
Since I was testing it, I obviously loaded/unloaded the modules several
times, thus called alsactl store / restore as well. It doesn't solve the
problem.

----------------------------------------------------------------------
 tiwai - 10-08-2004 12:24 CEST 
----------------------------------------------------------------------
Oh, capture switch is wrongly implemented.  It shouldn't work :)
Peter, was it intentional to replace wm_adc_mute_* callbacks?

Bug History
Date Modified  Username       Field                    Change              
======================================================================
07-27-04 18:40 skamp          New Bug                                      
07-27-04 18:40 skamp          File Added: aadebug                          
07-27-04 18:40 skamp          Distribution              => LFS 5.1.1, BLFS 5.1
07-27-04 18:40 skamp          Kernel Version            => 2.4.26          
07-27-04 18:52 skamp          Bug Monitored: skamp                         
08-17-04 04:33 skamp          Bugnote Added: 0001571                       
08-18-04 13:47 tiwai          Assigned To               => tiwai           
08-18-04 13:47 tiwai          Status                   new => assigned     
08-18-04 13:47 tiwai          Bugnote Added: 0001578                       
08-18-04 13:48 tiwai          File Added: aureon-volfix3.dif                    
08-18-04 15:20 skamp          Bugnote Added: 0001579                       
08-18-04 15:32 tiwai          Bugnote Added: 0001580                       
08-18-04 15:34 skamp          Bugnote Added: 0001581                       
08-18-04 15:36 skamp          Bugnote Edited: 0001581                      
08-18-04 15:41 tiwai          Bugnote Added: 0001583                       
10-06-04 22:10 ungod          Bugnote Added: 0002026                       
10-06-04 22:10 ungod          File Added: aureon-volfix4.diff                    
10-07-04 09:50 ungod          File Added: aureon-volfix4.1.diff                    
10-07-04 09:52 ungod          Bugnote Added: 0002028                       
10-07-04 14:43 tiwai          Bugnote Added: 0002032                       
10-07-04 14:44 tiwai          File Added: aureon-volfix4.2.diff                    
10-07-04 18:03 ungod          Bugnote Added: 0002035                       
10-07-04 21:26 skamp          Bugnote Added: 0002039                       
10-08-04 04:01 ungod          Bugnote Added: 0002042                       
10-08-04 09:31 skamp          Bugnote Added: 0002044                       
10-08-04 12:24 tiwai          Bugnote Added: 0002047                       
======================================================================


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

             reply	other threads:[~2004-10-08 10:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-08 10:24 bugtrack [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-11-22 13:44 [ALSA - driver 0000408]: Volume control is chaotic bugtrack
2004-10-19 14:30 bugtrack
2004-10-14 19:08 bugtrack
2004-10-13 16:51 bugtrack
2004-10-12 12:37 bugtrack
2004-10-11 10:16 bugtrack
2004-10-09  0:05 bugtrack
2004-10-08 23:21 bugtrack
2004-10-08  7:31 bugtrack
2004-10-08  2:01 bugtrack
2004-10-07 19:26 bugtrack
2004-10-07 16:03 bugtrack
2004-10-07 12:43 bugtrack
2004-10-07  7:52 bugtrack
2004-10-06 20:10 bugtrack
2004-08-18 13:41 bugtrack
2004-08-18 13:34 bugtrack
2004-08-18 13:32 bugtrack
2004-08-18 13:20 bugtrack
2004-08-18 11:47 bugtrack
2004-08-18 11:47 bugtrack
2004-08-17  2:33 bugtrack

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=20041008102408.198952A003@server.perex-int.cz \
    --to=bugtrack@alsa-project.org \
    --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.