Skip to contentSkip to conversation

: Some of the hardware volume controls have incorrect ranges

ALSA - driver 0001427 [email protected] 1 participant 1 message Sep 16, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1427>
======================================================================
Reported By: xolsonalsa
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   1427
Category:                   PCI - intel8x0
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             09-15-2005 22:45 CEST
Last Modified:              09-16-2005 14:03 CEST

======================================================================
Summary: Some of the hardware volume controls have incorrect
ranges
Description:
line, CD, mic, and aux controls work but have incorrect volume ranges for the hardware codec.
alsa-driver-1.0.10rc1
snd-intel8x0 driver
my hardware Asus P4SE m/b, SiS 7012 onboard card, C-Media CMI9738 codec my kernel is redhat linux 9, 2.4.20-31.9
excerpts below are from the output of amixer command, my comments after the ***
-----------------------------
Simple mixer control 'Master',0
Limits: Playback 0 - 31 *** (this one is correct)

Simple mixer control 'PCM',0 *** (this one is correct, no range, no hardware volume control, mute/unmute only)

Simple mixer control 'Line',0
Limits: Playback 0 - 31 *** (incorrect, hardware only supports 0 - 15)

Simple mixer control 'CD',0
Limits: Playback 0 - 31 *** (incorrect, hardware only supports 0 - 15)

Simple mixer control 'Mic',0
Limits: Playback 0 - 31 *** (incorrect, hardware only supports 0 - 15)

Simple mixer control 'PC Speaker',0
Limits: Playback 0 - 15 *** (probably correct, haven't tested)

Simple mixer control 'Aux',0
Limits: Playback 0 - 31 *** (incorrect, hardware only supports 0 - 15)
======================================================================

----------------------------------------------------------------------
xolsonalsa - 09-16-05 14:03
----------------------------------------------------------------------
I wrote the following patch for my own ac97_codec.c file feel free to use it if you wish:
---
/root/alsadriver1/alsa-driver-1.0.10rc1.orig/alsa-kernel/pci/ac97/ac97_codec.c

     2005-08-16 09:05:05.000000000 -0700
+++
/root/alsadriver1/alsa-driver-1.0.10rc1/alsa-kernel/pci/ac97/ac97_codec.c 
2005-09-16 04:06:33.000000000 -0700
@@ -1230,6 +1230,11 @@
                        return err;
        }
        check_volume_resolution(ac97, reg, &lo_max, &hi_max);

+
+ if ((ac97->id == AC97_ID_CM9738) && ((reg == AC97_MIC) || (reg ==
AC97_LINE) || (reg == AC97_CD) || (reg == AC97_AUX))) {
+ if (lo_max) lo_max = 15;
+ if (hi_max) hi_max = 15;
+ }

        if (lo_max) {
                sprintf(name, "%s Volume", pfx);
                if ((err = snd_ac97_cvol_new(card, name, reg, lo_max,

hi_max, ac97)) < 0)

Issue History
Date Modified Username Field Change
======================================================================
09-15-05 22:45 xolsonalsa New Issue
09-16-05 14:03 xolsonalsa Note Added: 0006243
======================================================================

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php