Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282802 - Kernel 2.6.30-gentoo-r4: Sound volume is much to low
Summary: Kernel 2.6.30-gentoo-r4: Sound volume is much to low
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-26 13:51 UTC by Kai Wüstermann
Modified: 2009-09-03 13:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg for kernel-2.6.29-gentoo-r5 (2.6.29-gentoo-r5,19.28 KB, text/plain)
2009-09-01 11:56 UTC, Kai Wüstermann
Details
dmesg for kernel-2.6.30-gentoo-r5 (2.6.30-gentoo-r5,19.74 KB, text/plain)
2009-09-01 12:23 UTC, Kai Wüstermann
Details
dmesg for kernel-2.6.30-gentoo-r4 (2.6.30-gentoo-r4,19.90 KB, text/plain)
2009-09-01 12:33 UTC, Kai Wüstermann
Details
alsa-info.txt for kernel-2.6.29-gentoo-r5 (alsa-info.txt.fVPyrGdZNA,20.23 KB, text/plain)
2009-09-01 17:10 UTC, Kai Wüstermann
Details
alsa-info.txt for kernel-2.6.30-gentoo-r5 (alsa-info.txt.MD2dvxHsdr,20.19 KB, text/plain)
2009-09-01 17:16 UTC, Kai Wüstermann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Wüstermann 2009-08-26 13:51:19 UTC
After updating from Kernel 2.6.29-gentoo-r5 the sound volume is much to low. I just can hear something when all volume controls are on highest level. (Starting again with the old Kernel my neighbors got a heart attack.)


Reproducible: Always




Installed alsa-lib: 1.0.20-r1

# lsmod | grep snd
snd_seq_oss            26176  0 
snd_seq_midi_event      6708  1 snd_seq_oss
snd_seq                44976  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            35680  0 
snd_mixer_oss          14644  1 snd_pcm_oss
snd_via82xx            21736  5 
snd_ac97_codec        102520  1 snd_via82xx
ac97_bus                1524  1 snd_ac97_codec
snd_pcm                65596  4 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              19352  2 snd_seq,snd_pcm
snd_page_alloc          8540  2 snd_via82xx,snd_pcm
snd_mpu401_uart         6420  1 snd_via82xx
snd_rawmidi            20704  1 snd_mpu401_uart
snd_seq_device          6720  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    52900  20 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device

# dmesg | grep VIA
VIA 82xx Audio 0000:00:11.5: PCI INT C -> Link[LNKC] -> GSI 5 (level, low) -> IRQ 5
VIA 82xx Audio 0000:00:11.5: setting latency timer to 64

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-mobile_AMD_Athlon-tm-_XP_2400+-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 26 Aug 2009 09:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/texmf-site/tex/latex/html /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-de /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups cupsddk dbus dri dts dvd dvi eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gimp gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg latex libnotify lyx mad midi mikmod mmx mono mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd pulseaudio python qt3support quicktime radeon readline reflection scanner sdl session spell spl ssl startup-notification svg symlink sysfs tcpd theora thunar tiff truetype unicode usb vorbis win32codecs wmf x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kai Wüstermann 2009-08-31 16:45:49 UTC
I just tried kernel 2.6.30-gentoo-r5. It has the same problem.

Kai Wüstermann
Comment 2 George Kadianakis (RETIRED) gentoo-dev 2009-08-31 17:56:14 UTC
(In reply to comment #1)
> I just tried kernel 2.6.30-gentoo-r5. It has the same problem.
> 
> Kai Wüstermann
> 

Until the ALSA team replies with a more sophisticated comment, could we have the dmesg output after a boot with:
a) 2.6.29-gentoo-r5
b) 2.6.30-gentoo-r4
?

Also, don't forget to lower your volume before booting with the latter to avoid waking up your poor neighbours.

Thanks!
Comment 3 Kai Wüstermann 2009-09-01 11:56:17 UTC
Created attachment 202861 [details]
dmesg for kernel-2.6.29-gentoo-r5
Comment 4 Kai Wüstermann 2009-09-01 12:23:44 UTC
Created attachment 202862 [details]
dmesg for kernel-2.6.30-gentoo-r5
Comment 5 Kai Wüstermann 2009-09-01 12:33:49 UTC
Created attachment 202863 [details]
dmesg for kernel-2.6.30-gentoo-r4
Comment 6 Kai Wüstermann 2009-09-01 12:37:34 UTC
I put it to the attachment.

Sorry for the wrong order.

Kai Wüstermann
Comment 7 Brayan Arraes (YacK) 2009-09-01 12:43:25 UTC
can you reproduce the bug in both kernel 
Comment 8 Kai Wüstermann 2009-09-01 12:48:12 UTC
(In reply to comment #7)
> can you reproduce the bug in both kernel 
> 

Yes, the bug is in both kernels 2.6.30-r4 and 2.6.30-r5.
Comment 9 George Kadianakis (RETIRED) gentoo-dev 2009-09-01 16:51:02 UTC
Hello there,

first of all I want you to open a: "alsamixer -V all" and play around with everything. Check out this thread, for example: http://bbs.archlinux.org/viewtopic.php?id=74691 

Now, I'd also like you to run this script: http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh and attach us the output. It's an ALSA debugging script that spits out really useful info, kernel and alsa related.

Finally, a copy of your /proc/interrupts would be nice :)

Thanks!
Comment 10 Kai Wüstermann 2009-09-01 17:10:17 UTC
Created attachment 202884 [details]
alsa-info.txt for kernel-2.6.29-gentoo-r5
Comment 11 Kai Wüstermann 2009-09-01 17:16:00 UTC
Created attachment 202885 [details]
alsa-info.txt for kernel-2.6.30-gentoo-r5
Comment 12 Kai Wüstermann 2009-09-01 17:25:32 UTC
(In reply to comment #9)

> first of all I want you to open a: "alsamixer -V all" and play around with
> everything. Check out this thread, for example:
> http://bbs.archlinux.org/viewtopic.php?id=74691 

I played with the mixers before. Booting the kernel-gentoo.2.6.29-r5 the sound plays right without changing the mixers. So I don't think the a problem with the mixer.

> Now, I'd also like you to run this script:
> http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh
> and attach us the output. It's an ALSA debugging script that spits out really
> useful info, kernel and alsa related.

It's attached for kernel 2.6.29-r5 and 2.6.30-r5. I used the script as normal user.
> 
> Finally, a copy of your /proc/interrupts would be nice :)

from Kernel 2.6.30-r5:
 cat /proc/interrupts 
           CPU0       
  0:     257046    XT-PIC-XT        timer
  1:       1426    XT-PIC-XT        i8042
  2:          0    XT-PIC-XT        cascade
  3:       7708    XT-PIC-XT        uhci_hcd:usb3
  5:    2700710    XT-PIC-XT        uhci_hcd:usb4, VIA8233
  7:          1    XT-PIC-XT        parport0
  8:          2    XT-PIC-XT        rtc0
  9:        174    XT-PIC-XT        acpi
 10:      12309    XT-PIC-XT        ehci_hcd:usb1
 11:       3641    XT-PIC-XT        uhci_hcd:usb2, eth0
 14:      25412    XT-PIC-XT        ide0
 15:       5279    XT-PIC-XT        ide1
NMI:          0   Non-maskable interrupts
LOC:          0   Local timer interrupts
SPU:          0   Spurious interrupts
TRM:          0   Thermal event interrupts
ERR:          0
MIS:          0

Comment 13 kfm 2009-09-01 18:14:05 UTC
Also reported in the Debian bug tracking system but with no resolution as of yet: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532613

Kai, while I'm not suggesting that this is related to the bug, I thought to point out that you should enable APIC support (CONFIG_X86_LOCAL_APIC) and attempt to use it, if feasible. It's interesting that the BIOS has elected to disable it but this can be overridden by passing "lapic" as a boot parameter. The XT-PIC is really quite archaic and not an ideal choice for 21st century hardware.
Comment 14 kfm 2009-09-01 18:51:41 UTC
I did some further digging and found the following post by Takashi Iwai in response to a user who complained of low volume in snd_via82xx as early as 2.6.30-rc6:

"Try to correct 'DXS Playback Volume' mixer elements. The dB range of these volumes were fixed recently to the correct values. If the old mixer value is restored using the dB value, it would be restored to a much lower value, which explains your symptom. Simply set these volumes to the max (i.e. 0dB) and never change unless you really need them."

Apparently, this resolved the matter for the user concerned. So, before the investigation leads elsewhere, you might try removing /etc/asound.state and/or adjusting the levels as described. In this case, the old value - while being undesirable - is still within bounds, so there is no rational way for the driver to make any correction in lieu of the fix.

Interestingly, Ubuntu opted to unmute and force the levels on the DXS controls in their init scripts:

http://launchpadlibrarian.net/2559258/alsa-utils_1.0.10-1ubuntu12.debdiff
Comment 15 Kai Wüstermann 2009-09-02 12:28:44 UTC
(In reply to comment #13)
> Also reported in the Debian bug tracking system but with no resolution as of
> yet: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532613
> 
> Kai, while I'm not suggesting that this is related to the bug, I thought to
> point out that you should enable APIC support (CONFIG_X86_LOCAL_APIC) and
> attempt to use it, if feasible. It's interesting that the BIOS has elected to
> disable it but this can be overridden by passing "lapic" as a boot parameter.
> The XT-PIC is really quite archaic and not an ideal choice for 21st century
> hardware.
> 


cat .config | grep APIC
CONFIG_X86_UP_APIC=y
CONFIG_X86_UP_IOAPIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y


Comment 16 Kai Wüstermann 2009-09-02 12:47:59 UTC
(In reply to comment #14)
> I did some further digging and found the following post by Takashi Iwai in
> response to a user who complained of low volume in snd_via82xx as early as
> 2.6.30-rc6:
> 
> "Try to correct 'DXS Playback Volume' mixer elements. The dB range of these
> volumes were fixed recently to the correct values. If the old mixer value is
> restored using the dB value, it would be restored to a much lower value, which
> explains your symptom. Simply set these volumes to the max (i.e. 0dB) and never
> change unless you really need them."
> 
> Apparently, this resolved the matter for the user concerned. So, before the
> investigation leads elsewhere, you might try removing /etc/asound.state and/or
> adjusting the levels as described. In this case, the old value - while being
> undesirable - is still within bounds, so there is no rational way for the
> driver to make any correction in lieu of the fix.
> 
> Interestingly, Ubuntu opted to unmute and force the levels on the DXS controls
> in their init scripts:
> 
> http://launchpadlibrarian.net/2559258/alsa-utils_1.0.10-1ubuntu12.debdiff
> 

I deleted my /etc/asound.state when I updated to media-libs/alsa-lib-1.0.20-r1 some time ago. 

I only have a /etc/modprobe.d/alsa.conf and a /etc/conf.d/alsasound without any mixer levels.

Comment 17 George Kadianakis (RETIRED) gentoo-dev 2009-09-03 05:57:27 UTC
One last pathetic attempt before we send this bug upstream:
Have you tried muting the IEC958 channel through alsamixer?
Comment 18 Kai Wüstermann 2009-09-03 12:53:05 UTC
I solved the problem. By comparing the alsa-info.txt I found this:

alsa-info.txt.fVPyrGdZNA for kernel-2.6.29-gentoo-r5:
Simple mixer control 'VIA DXS',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [-48.00dB]
  Front Right: Playback 31 [100%] [-48.00dB]

alsa-info.txt.MD2dvxHsdr for kernel-2.6.30-gentoo-r5 
Simple mixer control 'VIA DXS',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-99999.99dB]
  Front Right: Playback 0 [0%] [-99999.99dB]

The levels are different only, but I did not played with the mixer. I only booted the differend kernels.

Thank you for your help
Kai Wüstermann
Comment 19 Kai Wüstermann 2009-09-03 13:51:05 UTC
A last info:

I just booted the Kernel 2.6.29 for (I hope) the last time. After rebooting with Kernel 2.6.30 the mixerlevel VIA DXS was 0.

So I think the problem is solved, but it still is a bug.