Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60117 - alsa-utils 1.0.5: alsasound fails to restore VIA DXS mixer levels
Summary: alsa-utils 1.0.5: alsasound fails to restore VIA DXS mixer levels
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 60118 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-11 22:52 UTC by gna
Modified: 2004-12-29 05:25 UTC (History)
1 user (show)

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


Attachments
alsasound state file (asound.state,8.77 KB, text/plain)
2004-08-12 00:38 UTC, gna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gna 2004-08-11 22:52:51 UTC
/etc/init.d/alsasound fails to restore the four VIA DXS mixer levels on a reboot. All the other mixer levels are restored correctly. So every time I reboot I need to run alsamixer to restore the VIA DXS levels manually. After that using aplay works. This problem does not occur if I do /etc/init.d/alsasound restart. Other than this problem alsa seems to be working fine.

mobo:         Abit KV7
northbridge:  VIA KT600
southbridge:  VIA VT8237

I am using the motherboard audio and alsa drivers from the gentoo-dev-sources 2.6.7-r11 kernel compiled as modules.

relevant output of lspci -v
-----------------------------
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
        Subsystem: ABIT Computer Corp.: Unknown device 1408
        Flags: medium devsel, IRQ 22
        I/O ports at dc00
        Capabilities: [c0] Power Management version 2

relevant content of /etc/modules.d/alsa
-----------------------------------------
alias snd-card-0 snd-via82xx
options snd-via82xx dxs_support=4

The dxs_support parameter is needed to work around hardware problems

lsmod output
------------------------------------------------------
Module                  Size  Used by
nfsd                   90888  8
exportfs                5184  1 nfsd
lockd                  58248  2 nfsd
sunrpc                131748  2 nfsd,lockd
ehci_hcd               25924  0
uhci_hcd               28688  0
snd_via82xx            23684  0
snd_ac97_codec         65860  1 snd_via82xx
snd_mpu401_uart         6144  1 snd_via82xx
snd_rawmidi            20580  1 snd_mpu401_uart
snd_seq_oss            31616  0
snd_seq_midi_event      6272  1 snd_seq_oss
snd_seq                49744  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6792  3 snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss            49576  0
snd_pcm                85512  2 snd_via82xx,snd_pcm_oss
snd_page_alloc          9032  2 snd_via82xx,snd_pcm
snd_timer              21572  2 snd_seq,snd_pcm
snd_mixer_oss          17728  1 snd_pcm_oss
snd                    48228  12 snd_via82xx,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               7328  1 snd
psmouse                18056  0

# emerge info
Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.3.3, glibc-2.3.4.20040619-r1, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://linux.nctu.net/dists/gentoo/ http://www.zentek-international.com/mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa apache2 apm arts avi berkdb bzlib cdr cjk crypt cups doc dvd encode esd ethereal fbcon foomaticdb freetype gdbm gif glade gmp gnome gpg gphoto2 gpm gtk gtk2 imap imlib innodb jabber java jpeg kde ldap libg++ libwww mad maildir mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pda pdflib perl png postgres ppds python qt quicktime radeon readline samba scanner sdl slang speedo spell sse ssl svga tcpd tiff truetype type1 unicode usb videos x86 xml2 xmms xv yahoo zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-08-11 23:40:53 UTC
*** Bug 60118 has been marked as a duplicate of this bug. ***
Comment 2 gna 2004-08-12 00:37:21 UTC
sorry about posting the bug twice. I thought I had stopped it in time but obviously not.

I will include the extra information from Bug 60118 here as well

I forgot to say I am using:
alsa-lib 1.0.5-r3
alsa-headers 1.0.5a
alsa-utils-1.0.5

I am not using other alsa packages


Comment 3 gna 2004-08-12 00:38:41 UTC
Created attachment 37268 [details]
alsasound state file
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-29 03:34:44 UTC
Can you please open a bug report upstream and let me know the bug number so I can follow it?  Thanks.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-05 15:52:24 UTC
please report this upstream and let me know the bug #.  I cannot reproduce this as I don't have your hardware.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-15 11:36:44 UTC
file the bug report upstream.
Comment 7 gna 2004-09-15 19:37:45 UTC
Sorry for the delay.

I was doing some searching in the upstream bugs database before submitting the bug. I found this bug https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000346
which seems like a duplicate of what I am reporting.

I tried the first piece of advice which was to try to restore the levels using alsactl restore. This restored the correct levels after a reboot. The same was true for the original reporter.

The above bug claims it is a gentoo specific problem. I had a look at /etc/init.d/alsasound but nothing sticks out to me as wrong. But my shell scripting is not very good.

$ cat /proc/asound/cards
returns
0 [rev60          ]: VIA8233 - VIA 823x rev60
                     VIA 823x rev60 at 0xdc00, irq 22

$ CARDS="$(cat /proc/asound/cards | awk '/: / { print $1 }')"
$ echo $CARDS
returns
0

both of which seem ok

I am now using gentoo-dev-sources-2.6.8-r1
but this seems to make no difference
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-04 01:46:48 UTC
i don't see how it restores some, but not all of the volumes...  I can't reproduce this at all...
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-15 02:45:52 UTC
the only thing I can say is that I have a via chipset, and it's working for me... unless you can provide me with a patch, there's nothing I can do. =(
Comment 10 gna 2004-12-29 05:25:53 UTC
I have just found out that this is a problem with kde rather than with alsasound. The boot process is restoring the mixer levels correctly. Then when kde starts it is setting the four VIA DXS levels to zero. The other mixer levels are unchanged by kde.  There is sound for the first half of the kde splash screen and then it dies. I didn't notice this before because normally I access the desktop from vnc.  

Googling finds quite few people with this problem on various distros. For example see SiegeX's post halfway down in http://dot.kde.org/1070894366/1071099818/

currently I am using gentoo-dev-sources 2.6.9-r9, alsa-utils 1.0.6 and kde 3.3.1