Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38284 - alsa-driver-0.9.8 did not install all required modules with "ALSA_CARDS=au8830"
Summary: alsa-driver-0.9.8 did not install all required modules with "ALSA_CARDS=au8830"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 06:52 UTC by Rick Morra
Modified: 2004-02-08 05:40 UTC (History)
1 user (show)

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


Attachments
Output from lsmod with Turtle Beach Montego II functioning properly (lsmod.out,2.03 KB, text/plain)
2004-02-02 15:35 UTC, Rick Morra
Details
Output from `qpkg -l alsa-driver` with ALSA_CARDS="au8830 mpu401" (qpkg-l,4.90 KB, text/plain)
2004-02-03 07:33 UTC, Rick Morra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Morra 2004-01-15 06:52:27 UTC
When I emerge alsa-driver-0.9.8 with the environment variable "ALSA_CARDS=au8830", the driver does not load. I get 3 error messages on boot regarding unresolved dependencies: snd_mpu401_uart_new_R454a8c97, snd_mpu401_uart_interrupt_Rff6d4aa3, and snd_ac97_mixer_R52d031e0.

When emerged without the ALSA_CARDS variable the driver loads and works (but I just made a hundred useless drivers).

I am using a Turtle Beach Montego II sound card, Gentoo

Reproducible: Always
Steps to Reproduce:
1. run: 'ALSA_CARDS=au8830 emerge alsa-driver'
2. Edit line in '/etc/modules.d/alsa': alias snd-card-0 snd-au8830
3. run 'modules-update'


Actual Results:  
'depmod' complained of 'unresolved dependencies' for 'snd-ac97' and
'snd-mpu401_uart'. The modules were not found under '/lib/modules'

Expected Results:  
Emerge would install the required modules. (As is the case when
'ALSA_CARDS=au8830' is not defined.)

Sound card: Turtle Beach Montego II A3D

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r4)
=================================================================
System uname: 2.4.22-gentoo-r4 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium2 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium2 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.247.13/sites/www.ibiblio.org/gentoo/
ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/
http://mirrors.tds.net/gentoo http://gentoo.noved.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aavm alsa apm arts avi berkdb crypt cups encode esd evms2 fam foomaticdb
gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod
motif mozcalendar mozilla mozxmlterm mpeg ncurses nls oggvorbis opengl oss pam
pdflib perl png ppds python qt quicktime readline samba sdl slang spell ssl svga
tcltk tcpd tiff truetype unicode usb wmf x86 xml xml2 xmms xv zlib"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-02 10:46:58 UTC
Can you please provide us with the output of running 'lsmod' when the driver is properly loaded?

Thanks.
Comment 2 Rick Morra 2004-02-02 15:35:37 UTC
Created attachment 24845 [details]
Output from lsmod with Turtle Beach Montego II functioning properly

Here's the lsmod output with the driver working properly.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-02 21:54:19 UTC
Can you please try 

$ ALSA_CARDS="au8830 mpu401" emerge alsa-driver

Hopefully that pulls in the right drivers.  If not, can you run:

$ qpkg -l alsa-driver

qpkg is in gentoolkit if you don't have it already
Comment 4 Rick Morra 2004-02-03 07:33:30 UTC
Created attachment 24887 [details]
Output from `qpkg -l alsa-driver` with ALSA_CARDS="au8830 mpu401"
Comment 5 Rick Morra 2004-02-03 07:36:21 UTC
Tried `ALSA_CARDS="au8830 mpu401" emerge alsa-drivers`.

The mpu401 drivers were pulled in, but I still get an error when the alsa-driver tries to load: "...snd-au8830.o: unresolved symbol snd_ac97_mixer_R52d031e0". Then snd-au8830.o fails to load.

It appears that the missing module is /lib/modules/2.4.22-gentoo-r5/kernel/sound/pci/ac97/snd-ac97-codec.o.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-03 11:11:53 UTC
Ok.  Was this working in other versions of alsa (where you just set ALSA_CARDS=au8830), or is this the only broken version?
Comment 7 Rick Morra 2004-02-03 11:37:35 UTC
Symptoms:
1) ALSA_CARDS undefined: au8830.o loads

2) ALSA_CARDS=au8830: au8830.0 does not load due to unresolved dependencies for mpu401 and ac97

3) ALSA_CARDS="au8830 mpu401": au8830.o does not load due to unresolved dependencies for ac97
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-03 20:59:48 UTC
Right, but are other versions of alsa affected by this problem?
Comment 9 Rick Morra 2004-02-04 12:31:10 UTC
I don't know about other versions. I'm new to Gentoo, and this is my first version of alsa-driver.
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-04 14:05:19 UTC
ok thanks.  I'll look into it further...
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-08 02:11:06 UTC
A fix has been committed to portage and should be on your rsync mirrors shortly.  To verify that you have the fix after you 'emerge sync', please make sure you have this file /usr/portage/media-sound/alsa-driver/files/alsa-driver-0.9.8-au-fix.patch

If that file is there, please emerge alsa-driver with ALSA_CARDS=au8830

Thanks.
Comment 12 Rick Morra 2004-02-08 05:40:13 UTC
Ran `ALSA_CARDS=au8830 emerge alsa-driver` on patched version.  The drivers loaded on reboot, and all is well.

Thanks!