LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-18-2004, 07:26 AM   #1
LovingIt
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian Unstable with 2.4.27
Posts: 2

Rep: Reputation: 0
Alsa on Debian sarge with AC97


Trying to get alsa to go...

My system is Debian Sarge with a 2.4.27 kernel. I'm using KDE 3.3 and at the moment sound works fine with OSS despite my efforts to stop OSS starting in the first place. alsaconf successfully finds my soundcard listing it as follows:

Quote:
intel8x0 Intel Corp. 82801BA/BAM AC'97 Aucio (rev 02)
It even goes on to say :

Quote:
Loading driver...
Starting ALSA...done.
Setting default volumes...

===============================================================================

Now ALSA is ready to use.
For adjustment of volumes, use your favorite mixer.

Have a lot of fun!
This would be fantastic if ALSA actually worked afterwards but it doesnt - XMMS for instance gives this error if I try to play anything:

Quote:
Couldn't open audio

Please check that:
Your soundcard is configured properly
You have the correct output plugin selected
No other program is blocking the soundcard
However as I said it happily plays using OSS which makes me think perhaps OSS is stealing the soundcard from ALSA - I have followed instructions to add a 'skip i810-audio' line to my 'discover.conf' file.

Anyways, some other info:

Output of 'cat /proc/pci'

Quote:
# cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 2).
Bus 0, device 30, function 0:
PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev 2).
Master Capable. No bursts. Min Gnt=14.
Bus 0, device 31, function 0:
ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 2).
Bus 0, device 31, function 1:
IDE interface: Intel Corp. 82801BA IDE U100 (rev 2).
I/O at 0xb800 [0xb80f].
Bus 0, device 31, function 2:
USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 2).
IRQ 10.
I/O at 0xb400 [0xb41f].
Bus 0, device 31, function 3:
SMBus: Intel Corp. 82801BA/BAM SMBus (rev 2).
IRQ 11.
I/O at 0xe800 [0xe80f].
Bus 0, device 31, function 4:
USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 2).
IRQ 9.
I/O at 0xb000 [0xb01f].
Bus 0, device 31, function 5:
Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio (rev 2).
IRQ 11.
I/O at 0xe000 [0xe0ff].
I/O at 0xe100 [0xe13f].
Bus 1, device 9, function 0:
VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev 178).
IRQ 5.
Master Capable. Latency=64. Min Gnt=5.Max Lat=1.
Non-prefetchable 32 bit memory at 0xed000000 [0xedffffff].
Prefetchable 32 bit memory at 0xf0000000 [0xf7ffffff].
Bus 1, device 10, function 0:
Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 8).
IRQ 9.
Master Capable. Latency=64. Min Gnt=8.Max Lat=56.
Non-prefetchable 32 bit memory at 0xec800000 [0xec800fff].
I/O at 0xd800 [0xd83f].
Non-prefetchable 32 bit memory at 0xec000000 [0xec0fffff].
Bus 1, device 11, function 0:
Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev17).
IRQ 9.
Master Capable. Latency=64. Min Gnt=16.Max Lat=40.
Prefetchable 32 bit memory at 0xef000000 [0xef000fff].
Bus 1, device 11, function 1:
Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 17).
IRQ 9.
Master Capable. Latency=64. Min Gnt=4.Max Lat=255.
Prefetchable 32 bit memory at 0xee800000 [0xee800fff].
Output of 'cat /etc/modules.conf'

Quote:
# cat /etc/modules.conf
### This file is automatically generated by update-modules"
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modutils and read
# the manpage for update-modules.
#
### update-modules: start processing /etc/modutils/0keep
# DO NOT MODIFY THIS FILE!
# This file is not marked as conffile to make sure if you upgrade modutils
# it will be restored in case some modifications have been made.
#
# The keep command is necessary to prevent insmod and friends from ignoring
# the builtin defaults of a path-statement is encountered. Until all other
# packages use the new `add path'-statement this keep-statement is essential
# to keep your system working
keep

### update-modules: end processing /etc/modutils/0keep

### update-modules: start processing /etc/modutils/actions
# Special actions that are needed for some modules

# The BTTV module does not load the tuner module automatically,
# so do that in here
post-install bttv insmod tuner
post-remove bttv rmmod tuner


### update-modules: end processing /etc/modutils/actions

### update-modules: start processing /etc/modutils/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 h t t p : / / w w w . k e r n e l i . o r g /)
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


### update-modules: end processing /etc/modutils/aliases

### update-modules: start processing /etc/modutils/alsa-base
#above snd-pcm snd-pcm-oss
#above snd-mixer snd-mixer-oss
#above snd-seq snd-seq-oss

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.6 ---
alias char-major-116 snd
alias char-major-14 soundcore
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
options snd device_mode=0660
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
post-install snd-intel8x0 /usr/lib/alsa/modprobe-post-install
# --- END: Generated by ALSACONF, do not edit. ---


### update-modules: end processing /etc/modutils/alsa-base

### update-modules: start processing /etc/modutils/apm
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm

### update-modules: end processing /etc/modutils/apm

### update-modules: start processing /etc/modutils/paths
# This file contains a list of paths that modprobe should scan,
# beside the ones that are compiled into the modutils tools
# themselves.


### update-modules: end processing /etc/modutils/paths

### update-modules: start processing /etc/modutils/setserial
#
# This is what I wanted to do, but logger is in /usr/bin, which isn't loaded
# when the module is first loaded into the kernel at boot time!
#
#post-install serial /etc/init.d/setserial start | logger -p daemon.info -t "setserial-module reload"
#pre-remove serial /etc/init.d/setserial stop | logger -p daemon.info -t "setserial-module uload"
#
alias /dev/tts serial
alias /dev/tts/0 serial
alias /dev/tts/1 serial
alias /dev/tts/2 serial
alias /dev/tts/3 serial
post-install serial /etc/init.d/setserial modload > /dev/null 2> /dev/null
pre-remove serial /etc/init.d/setserial modsave > /dev/null 2> /dev/null

### update-modules: end processing /etc/modutils/setserial

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

### update-modules: end processing /etc/modutils/arch/i386
Output of 'cat /proc/modules'

Quote:
# cat /proc/modules
nls_cp437 4348 2 (autoclean)
vfat 10540 1 (autoclean)
fat 31960 0 (autoclean) [vfat]
snd-seq 37904 0 (autoclean)
snd-seq-device 4000 0 (autoclean) [snd-seq]
parport_pc 23880 1 (autoclean)
lp 6724 0
parport 26504 1 [parport_pc lp]
apm 9868 2 (autoclean)
af_packet 13032 1 (autoclean)
usb-storage 65088 0 (unused)
printer 8000 0
mousedev 4148 1
scanner 10848 0 (unused)
hid 21220 0 (unused)
input 3648 0 [mousedev hid]
jedec_probe 10528 0 (autoclean)
gen_probe 1904 0 (autoclean) [jedec_probe]
chipreg 761 0 [jedec_probe]
tuner 10344 1 (autoclean)
tvaudio 13608 0 (autoclean) (unused)
bttv 95744 0 (unused)
i2c-algo-bit 7688 1 [bttv]
i2c-core 13508 0 [tuner tvaudio bttv i2c-algo-bit]
videodev 6464 2 [bttv]
snd-bt87x 5320 0
snd-pcm 59816 0 [snd-bt87x]
snd-timer 14148 0 [snd-seq snd-pcm]
snd 33764 0 [snd-seq snd-seq-device snd-bt87x snd-pcm snd-timer]
snd-page-alloc 4940 0 [snd-seq snd-seq-device snd-bt87x snd-pcm snd-timer snd]
usb-uhci 23344 0 (unused)
usbcore 62924 1 [usb-storage printer scanner hid usb-uhci]
i810_audio 24444 0
ac97_codec 13300 0 [i810_audio]
soundcore 3940 2 [bttv snd i810_audio]
ide-scsi 10032 0
e100 50036 1
sd_mod 11756 0 (unused)
scsi_mod 95012 3 [usb-storage ide-scsi sd_mod]
ide-cd 31264 0
cdrom 29828 0 [ide-cd]
rtc 6440 0 (autoclean)
ext3 81068 1 (autoclean)
jbd 42468 1 (autoclean) [ext3]
ide-detect 288 0 (autoclean) (unused)
ide-disk 16736 3 (autoclean)
piix 9096 1 (autoclean)
ide-core 108504 3 (autoclean) [usb-storage ide-scsi ide-cd ide-detect ide-disk piix]
unix 14928 134 (autoclean)
Finally the output of 'ls -L -l /dev/dsp*'

Quote:
# ls -L -l /dev/dsp*
crw-rw---- 1 root audio 14, 3 2004-10-18 05:54 /dev/dsp
crw-rw---- 1 root audio 14, 3 2004-10-18 05:54 /dev/dsp0
crw-rw---- 1 root audio 14, 19 2004-10-18 05:54 /dev/dsp1
crw-rw---- 1 root audio 14, 35 2004-10-18 05:54 /dev/dsp2
crw-rw---- 1 root audio 14, 51 2004-10-18 05:54 /dev/dsp3

I'm pretty sure the problem is something to do with the starting\stopping of modules - I dont know if 'i810_audio' should be there at all and i'm certain that this:

snd-bt87x 5320 0
snd-pcm 59816 0 [snd-bt87x]
snd-timer 14148 0 [snd-seq snd-pcm]
snd 33764 0 [snd-seq snd-seq-device snd-bt87x snd-pcm snd-timer]
snd-page-alloc 4940 0 [snd-seq snd-seq-device snd-bt87x snd-pcm snd-timer snd]

Is bad business.

So please someone help me - i've been using linux for about three days and i've googled myself silly.

Many thanks - if theres any more info you need just ask

James
 
Old 10-18-2004, 06:33 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
I'd try just adding the i810_audio and the ac97_codec modules to your /etc/hotplug/blacklist file. Hope it helps.
good luck.
 
Old 10-23-2004, 06:30 AM   #3
LovingIt
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian Unstable with 2.4.27
Posts: 2

Original Poster
Rep: Reputation: 0
Didn't work, however I just upgraded to the 2.6.7 kernel and now it just works.

Bizarre.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sarge debian alsa sound problem lvgandhi Debian 3 06-11-2005 12:35 PM
Keeping ALSA Config in Debian Sarge pharcyde Linux - Newbie 2 04-01-2005 01:28 PM
ALSA MIDI on Debian Sarge sulfa Linux - Software 1 12-16-2004 03:21 PM
ALSA: No sound [Debian Sarge, stock 2.4.25, ICH5] sulfa Linux - Software 5 12-06-2004 06:30 AM
Debian, ALSA, AC97 = no sound Caidence Linux - Hardware 2 07-24-2003 02:52 PM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration