Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA, cmi9880, built-in sound on mobo, no device detected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
hpxchan
n00b
n00b


Joined: 26 Aug 2004
Posts: 39

PostPosted: Fri Oct 08, 2004 10:42 pm    Post subject: ALSA, cmi9880, built-in sound on mobo, no device detected Reply with quote

Ok... I've looked all over the forums, and I can't seem to find a solution. I seeked Gentoo's ALSA guide, but that did no help, either.

I'm running an Intel P4 Prescott on an Asus P5AD2 Premium motherboard. The motherboard has built-in sound using the Azalia codec, I think. The driver that is used for that codec (?) is cmi9880, but it is only available for Windows. I have tried running the most recent driver for linux (which is pre-cmi9880), but to no avail.

Current /etc/modules.d/alsa:
Code:
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.2 2004/07/18 03:40:55 dragonheart Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 cmaudio
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
alias snd-card-0 cmaudio
# Set this to the correct number of cards.
options snd cards_limit=1


Current /etc/modules.conf:
Code:
### This file is automatically generated by modules-update
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modules.d and read
# the manpage for modules-update.
#
### modules-update: start processing /etc/modules.d/aliases
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off      # Unix
# alias net-pf-2 off      # IPv4
# alias net-pf-3 off      # Amateur Radio AX.25
# alias net-pf-4 off      # IPX
# alias net-pf-5 off      # DDP / appletalk
# alias net-pf-6 off      # Amateur Radio NET/ROM
# alias net-pf-9 off      # X.25
# alias net-pf-10 off      # IPv6
# alias net-pf-11 off      # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off      # Acorn Econet

alias char-major-10-175   agpgart
alias char-major-10-200   tun
alias char-major-81   bttv
alias char-major-108   ppp_generic
alias /dev/ppp      ppp_generic
alias tty-ldisc-3   ppp_async
alias tty-ldisc-14   ppp_synctty
alias ppp-compress-21   bsd_comp
alias ppp-compress-24   ppp_deflate
alias ppp-compress-26   ppp_deflate

# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0   loop_gen
alias loop-xfer-3   loop_fish2
alias loop-xfer-gen-10   loop_gen
alias cipher-2      des
alias cipher-3      fish2
alias cipher-4      blowfish
alias cipher-6      idea
alias cipher-7      serp6f
alias cipher-8      mars6
alias cipher-11      rc62
alias cipher-15      dfc2
alias cipher-16      rijndael
alias cipher-17      rc5

# Support for i2c and lm_sensors
alias char-major-89    i2c-dev

# Old nvidia support ...
alias char-major-195 NVdriver
alias /dev/nvidiactl char-major-195

### modules-update: end processing /etc/modules.d/aliases

### modules-update: start processing /etc/modules.d/alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.2 2004/07/18 03:40:55 dragonheart Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 cmaudio
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
alias snd-card-0 cmaudio
# Set this to the correct number of cards.
options snd cards_limit=1

### modules-update: end processing /etc/modules.d/alsa

### modules-update: start processing /etc/modules.d/i386
alias parport_lowlevel parport_pc
alias char-major-10-144 nvram
alias binfmt-0064 binfmt_aout
alias char-major-10-135 rtc

### modules-update: end processing /etc/modules.d/i386

### modules-update: start processing /etc/modules.d/nvidia
# Nvidia drivers support
alias char-major-195 nvidia
alias /dev/nvidiactl char-major-195

# To tweak the driver the following options can be used, note that
# you should be careful, as it could cause instability!!
#
#   To enable Side Band Adressing:  NVreg_EnableAGPSBA=1
#
#   To enable Fast Writes: NVreg_EnableAGPFW=1
#
# To enable both for instance, uncomment following line:
#
#options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1


### modules-update: end processing /etc/modules.d/nvidia

### modules-update: start processing /etc/modules.d/svgalib
probeall  /dev/svga  svgalib_helper

### modules-update: end processing /etc/modules.d/svgalib


When I run amixer, I get:
Code:
amixer: Mixer attach default error: No such device


Can someone shed a little light, please?

Thanks,
Chandler
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sat Oct 09, 2004 5:03 am    Post subject: Reply with quote

Nice mobo. I just now looked up its spec. 8)

This is a brand new chip. Support for it was only added in Alsa 1.0.6 so it's going to be flakey if you can even get it to work at all. Give it a couple months. It is going to take time before the driver is ready for general use.

You might try downloading and using alsa driver/lib 1.0.7rc1 from the alsa web site. They are the latest developement versions that are not available in portage, but don't get your hopes up too high, it may not make much of a difference.
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
hpxchan
n00b
n00b


Joined: 26 Aug 2004
Posts: 39

PostPosted: Sat Oct 09, 2004 7:02 am    Post subject: Reply with quote

FishB8 wrote:
Nice mobo. I just now looked up its spec. 8)

This is a brand new chip. Support for it was only added in Alsa 1.0.6 so it's going to be flakey if you can even get it to work at all. Give it a couple months. It is going to take time before the driver is ready for general use.

You might try downloading and using alsa driver/lib 1.0.7rc1 from the alsa web site. They are the latest developement versions that are not available in portage, but don't get your hopes up too high, it may not make much of a difference.

Thanks for the quick response!
I was wondering about compatibility with new hardware when I purchased... after all, it is my first shot at Linux. So far, though, the sound is really the only thing I have problems with. Getting the gigabit ethernet working was a trip, but at least its working now. Everything else was fine.

hpxchan
Back to top
View user's profile Send private message
drysidecarl
n00b
n00b


Joined: 20 Oct 2004
Posts: 3

PostPosted: Wed Oct 20, 2004 1:11 am    Post subject: Reply with quote

I fought this problem for a couple of months-I am doing a new install of Gentoo, kernel 2.6.7, SELinux, with an nforce2 motherboard. There is a script, snddevices, that needs to be run to create all of the device nodes for ALSA to work. I downloaded a copy from sourceforge of the script and ran it, then sound worked great, including under SELinux in enforcing mode. I am led to believe that this script exists in the alsa-drivers package, which is otherwise not needed for 2.6 kernels.
Back to top
View user's profile Send private message
nomind
Apprentice
Apprentice


Joined: 03 Feb 2005
Posts: 270

PostPosted: Tue Mar 22, 2005 11:51 pm    Post subject: Reply with quote

First off, a big thanks goes out to valueduser and masseya for their replies (and for pointing me here)!

I've managed to get everything detected with alsa 1.0.8. The output from alsaconf and amixer don't show any errors. Still, I can't get sound from my speakers. I think I have to fiddle with all of the settings; mute some, unmute others. I'll try doing that, and post back as soon as I see the light of success.
Back to top
View user's profile Send private message
hpxchan
n00b
n00b


Joined: 26 Aug 2004
Posts: 39

PostPosted: Fri May 06, 2005 2:50 am    Post subject: Reply with quote

Has anybody found a fix yet?

I've heard that the azx driver (or is it intel-hda?) works with this chipset. Right now, I'm recompiling my kernel without alsa built-in so I can pull in the latest sources from portage and try my luck.

The kernel built-in ALSA wouldn't recognize azx or intel-hda.

EDIT: It must be azx; alsa-drivers won't build with ALSA_CARDS="intel-hda" in make.conf .

Chandler
Back to top
View user's profile Send private message
hpxchan
n00b
n00b


Joined: 26 Aug 2004
Posts: 39

PostPosted: Fri May 06, 2005 3:22 am    Post subject: Reply with quote

I got it working. :D

First, I added alsa to my USE flags, and the following line to make.conf:
Code:
ALSA_CARDS="azx"


Then, I configured the kernel without ALSA built-in:
Code:
cd /usr/src/linux
make menuconfig
# Go to "Device Drivers" -> "Sound" -> "Advanced Linux Sound Architecture"
# Disable "Advanced Linux Sound Architecture" (press "n")
make && make modules_install
# Copy arch/i386/boot/bzImage, System.map, and .config to /boot


I emerged alsa-driver and alsa-utils

Then I ran alsaconf and selected the "azx" option. It added the following to /etc/modules.d/alsa :
Code:
alias snd-card-0 snd-azx
alias snd-slot-0 snd-azx


Then, added ALSA to the boot runlevel...
Code:
rc-update add alsasound boot


Reboot...

Then, configure the channels how you like with amixer
Code:
amixer set Surround 85% unmute

(etc)

Hope this helps somebody... unless I'm the last person to figure it out. :roll:

Chandler
Back to top
View user's profile Send private message
carnaby
n00b
n00b


Joined: 19 Jan 2005
Posts: 58
Location: seattle

PostPosted: Thu Jul 14, 2005 5:07 pm    Post subject: Reply with quote

helped me, that was very clear, thanks!

:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum