Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa -- need help
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
newmario
n00b
n00b


Joined: 23 Mar 2004
Posts: 49

PostPosted: Tue Mar 23, 2004 3:36 pm    Post subject: alsa -- need help Reply with quote

Hi everybody,

my english isn't so good, i'am really new to gentoo and i need help with alsa


alsa freezes my computer

also if i start kde with arts installed, my computer crash.
or when i click play in xmms, crash.

i have installed alsa the same way like in the alsa guide, 4 times until now, but after every reinstall the same problem.
the modules seems to be correctly installed, alsa alsasound loaded the modules with success (no error report from alsasound).
alsamixer does also run.
my system is a xp 1800 with a terratec dmx fire 1024
alsa utils and alsa tools also installed, currently version 0.9.8 i think, but the error also occurs with alsa >= 1.0.2
my kernel version is 2.6.3-gentoo-r1

kernel config:

#
# Sound
#
CONFIG_SOUND=m

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_RTCTIMER is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# PCI devices
#
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
CONFIG_SND_CS46XX=m
# CONFIG_SND_CS46XX_NEW_DSP is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VX222 is not set

lsmod:

lsmod
Module Size Used by
snd_pcm_oss 49316 0
snd_mixer_oss 17664 1 snd_pcm_oss
bsd_comp 5504 0
snd_cs46xx 76420 0
snd_rawmidi 20640 1 snd_cs46xx
snd_seq_device 6792 1 snd_rawmidi
snd_pcm 84900 2 snd_pcm_oss,snd_cs46xx
snd_timer 21892 1 snd_pcm
snd_ac97_codec 59012 1 snd_cs46xx
gameport 3840 1 snd_cs46xx
snd_page_alloc 9604 2 snd_cs46xx,snd_pcm
snd 46564 8 snd_pcm_oss,snd_mixer_oss,snd_cs46xx,snd_rawmidi ,snd_seq_device,snd_pcm,snd_timer,snd_ac97_codec
cs46xx 64140 0
ac97_codec 17164 1 cs46xx
soundcore 7648 2 snd,cs46xx
rtc 10680 0
ppp_deflate 4992 2
zlib_deflate 21272 1 ppp_deflate
ppp_synctty 7808 0
ppp_async 10112 1
ppp_generic 26512 8 bsd_comp,ppp_deflate,ppp_synctty,ppp_async
slhc 6912 1 ppp_generic
supermount 35988 1
fglrx 201860 7
via_agp 5376 1


when i unload the sound modules with "alsasound stop":

bsd_comp 5504 0
cs46xx 64140 0
ac97_codec 17164 1 cs46xx
soundcore 7648 1 cs46xx
rtc 10680 0
ppp_deflate 4992 2
zlib_deflate 21272 1 ppp_deflate
ppp_synctty 7808 0
ppp_async 10112 1
ppp_generic 26512 8 bsd_comp,ppp_deflate,ppp_synctty,ppp_async
slhc 6912 1 ppp_generic
supermount 35988 1
fglrx 201860 7
via_agp 5376 1


my /etc/modules.autoload.d/kernel-2.6

via-agp
fglrx
supermount
ppp_generic
ppp_async
ppp_synctty
ppp_deflate



my /etc/modules.d:

alias snd-card-0 snd-cs46xx
alias sound-slot-0 snd-card-0


alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

output of alsasound start:

init.d # ./alsasound start
* Loading ALSA drivers...
* Using ALSA OSS emulation
* Loading: snd-mixer-oss
* Loading: snd-pcm-oss
* Loading: snd-seq-oss
* Running card-dependent scripts
* Restoring Mixer Levels [ ok ]
mariopc init.d #


modprobe.conf:

alias binfmt-204 binfmt_aout
alias binfmt-263 binfmt_aout
alias binfmt-264 binfmt_aout
alias binfmt-267 binfmt_aout
alias binfmt-387 binfmt_aout
alias binfmt-332 iBCS
alias binfmt--310 binfmt_java
alias block-major-1 rd
alias block-major-2 floppy
alias block-major-3 ide-probe-mod
alias block-major-7 loop
alias block-major-8 sd_mod
alias block-major-9 md
alias block-major-11 sr_mod
alias block-major-13 xd
alias block-major-15 cdu31a
alias block-major-16 gscd
alias block-major-17 optcd
alias block-major-18 sjcd
alias block-major-20 mcdx
alias block-major-22 ide-probe-mod
alias block-major-23 mcd
alias block-major-24 sonycd535
alias block-major-25 sbpcd
alias block-major-26 sbpcd
alias block-major-27 sbpcd
alias block-major-29 aztcd
alias block-major-32 cm206
alias block-major-33 ide-probe-mod
alias block-major-34 ide-probe-mod
alias block-major-37 ide-tape
alias block-major-44 ftl
alias block-major-46 pcd
alias block-major-47 pf
alias block-major-56 ide-probe-mod
alias block-major-57 ide-probe-mod
alias block-major-58 lvm-mod
alias block-major-88 ide-probe-mod
alias block-major-89 ide-probe-mod
alias block-major-90 ide-probe-mod
alias block-major-91 ide-probe-mod
alias block-major-93 nftl
alias block-major-97 pg
alias block-major-113 viocd
alias char-major-4 serial
alias char-major-5 serial

alias char-major-6 lp
alias char-major-9 st
alias char-major-10-0 busmouse
alias char-major-10-2 msbusmouse
alias char-major-10-3 atixlmouse
alias char-major-10-130 wdt
alias char-major-10-131 wdt
alias char-major-10-135 rtc
alias char-major-10-139 openprom
alias char-major-10-144 nvram
alias char-major-10-157 applicom
alias char-major-10-175 agpgart
alias char-major-10-184 microcode
alias char-major-10-200 tun
alias char-major-10-250 hci_vhci
alias char-major-13 input
alias char-major-13-0 joydev
alias char-major-13-32 mousedev
alias char-major-14 soundcore
alias char-major-19 cyclades
alias char-major-20 cyclades
alias char-major-21 sg
alias char-major-22 pcxx
alias char-major-23 pcxx
alias char-major-27 zftape
alias char-major-34 scc
alias char-major-35 tclmidi
alias char-major-36 netlink
alias char-major-37 ide-tape
alias char-major-48 riscom8
alias char-major-49 riscom8
alias char-major-57 esp
alias char-major-58 esp
alias char-major-63 kdebug
alias char-major-90 mtdchar
alias char-major-96 pt
alias char-major-99 ppdev
alias char-major-107 3dfx
alias char-major-108 ppp_generic
alias char-major-109 lvm-mod
alias char-major-161 ircomm-tty
alias char-major-171 raw1394
alias char-major-195 NVdriver
alias char-major-200 vxspec
alias char-major-206 osst
alias char-major-216 rfcomm
alias dos msdos
alias dummy0 dummy
alias dummy1 dummy
alias iso9660 isofs
alias md-personality-1 linear
alias md-personality-2 raid0
alias md-personality-3 raid1
alias md-personality-4 raid5
alias md-personality-7 multipath
alias net-pf-1 unix
alias net-pf-2 ipv4
alias net-pf-4 ipx
alias net-pf-5 appletalk
alias net-pf-15 af_key
alias net-pf-17 af_packet
alias net-pf-31 bluez
alias netalias-2 ip_alias
alias irlan0 irlan
alias irda-dongle-0 tekram
alias irda-dongle-1 esi
alias irda-dongle-2 actisys
alias irda-dongle-3 actisys
alias irda-dongle-4 girbil
alias irda-dongle-5 litelink
alias irda-dongle-6 airport
alias irda-dongle-7 old_belkin
alias bt-proto-0 l2cap
alias bt-proto-2 sco
alias bt-proto-3 rfcomm
alias bt-proto-4 bnep
alias plip0 plip
alias plip1 plip
alias tunl0 ipip
alias cipcb0 cipcb
alias cipcb1 cipcb
alias cipcb2 cipcb
alias cipcb3 cipcb
alias ppp0 ppp
alias ppp1 ppp
alias slip0 slip
alias slip1 slip
alias tty-ldisc-1 slip
alias tty-ldisc-3 ppp_async
alias tty-ldisc-11 irtty
alias tty-ldisc-14 ppp_synctty
alias tty-ldisc-15 hci_uart
alias ppp-compress-18 ppp_mppe
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
alias parport_lowlevel parport_pc
alias usbdevfs usbcore
alias xfrm-type-2-50 esp4
alias xfrm-type-2-51 ah4
alias xfrm-type-2-108 ipcomp
alias xfrm-type-10-50 esp6
alias xfrm-type-10-51 ah6
alias xfrm-type-10-108 ipcomp6
alias cipher_null crypto_null
alias digest_null crypto_null
alias compress_null crypto_null
alias sha384 sha512
alias char-major-81 bttv
alias /dev/ppp ppp_generic
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
alias char-major-89 i2c-dev
alias /dev/nvidiactl NVdriver
alias snd-card-0 snd-cs46xx
alias sound-slot-0 snd-cs46xx
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
alias binfmt-0064 binfmt_aout
alias tty-ldisc-13 n_hdlc
alias net-pf-24 pppoe
options sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
install /dev/svga /sbin/modprobe svgalib_helper; /bin/true
install binfmt-0000 /bin/true
install char-major-10 /bin/true
install char-major-10-1 /bin/true
install dummy0 /sbin/modprobe -o dummy0 --ignore-install dummy
install dummy1 /sbin/modprobe -o dummy1 --ignore-install dummy
install eth0 /bin/true
install net-pf-10 /bin/true
install net-pf-19 /bin/true
install net-pf-3 /bin/true
install net-pf-6 /bin/true
install scsi_hostadapter /bin/true


i have also run the MAKEDEV.snd script, but also no success.


i hope, anybody can help me, i have no idea, since 2 days i work to get alsa work and nothing
happens than crashes.
Back to top
View user's profile Send private message
Kabuto
l33t
l33t


Joined: 01 Aug 2002
Posts: 701

PostPosted: Tue Mar 23, 2004 5:37 pm    Post subject: Reply with quote

lsmod output:
[...]
cs46xx 64140 0
ac97_codec 17164 1 cs46xx
soundcore 7648 2 snd,cs46xx

By this it look like you are loading OSS also.
Back to top
View user's profile Send private message
newmario
n00b
n00b


Joined: 23 Mar 2004
Posts: 49

PostPosted: Tue Mar 23, 2004 5:58 pm    Post subject: Reply with quote

yes, but but without oss it crashes also.
Back to top
View user's profile Send private message
newmario
n00b
n00b


Joined: 23 Mar 2004
Posts: 49

PostPosted: Tue Mar 23, 2004 6:02 pm    Post subject: Reply with quote

maybe anybody can tell me some debug programs like strace or log files with debug output from alsa.
/etc/messages and strace say nothing.
Back to top
View user's profile Send private message
Kabuto
l33t
l33t


Joined: 01 Aug 2002
Posts: 701

PostPosted: Tue Mar 23, 2004 6:08 pm    Post subject: Reply with quote

You can't have OSS and Alsa loaded at the same time. You have to pick one or the other. (This doesn't have anything to do with Alsa's OSS Emulation)
Back to top
View user's profile Send private message
newmario
n00b
n00b


Joined: 23 Mar 2004
Posts: 49

PostPosted: Tue Mar 23, 2004 6:13 pm    Post subject: one strange thing Reply with quote

make modules_install always install snd-ac97-codec.ko,
but i did not choose this option in the kernel config.



Kernel: arch/i386/boot/bzImage is ready
Building modules, stage 2.
MODPOST
LD [M] sound/soundcore.ko
INSTALL drivers/net/bsd_comp.ko
INSTALL drivers/input/gameport/gameport.ko
INSTALL drivers/net/ppp_async.ko
INSTALL drivers/net/ppp_deflate.ko
INSTALL drivers/net/ppp_generic.ko
INSTALL drivers/net/ppp_synctty.ko
INSTALL drivers/char/rtc.ko
INSTALL drivers/net/slhc.ko
INSTALL sound/pci/ac97/snd-ac97-codec.ko <--- !
INSTALL sound/pci/cs46xx/snd-cs46xx.ko
INSTALL sound/drivers/snd-dummy.ko
INSTALL sound/core/oss/snd-mixer-oss.ko
INSTALL sound/core/snd-page-alloc.ko
INSTALL sound/core/oss/snd-pcm-oss.ko
INSTALL sound/core/snd-pcm.ko
INSTALL sound/core/snd-rawmidi.ko
INSTALL sound/core/seq/snd-seq-device.ko
INSTALL sound/core/seq/snd-seq-midi-event.ko
INSTALL sound/core/seq/snd-seq-midi.ko
INSTALL sound/core/seq/oss/snd-seq-oss.ko
INSTALL sound/core/seq/snd-seq.ko
INSTALL sound/core/snd-timer.ko
INSTALL sound/core/snd.ko
INSTALL sound/soundcore.ko
INSTALL fs/supermount/supermount.ko
INSTALL drivers/char/agp/via-agp.ko
INSTALL lib/zlib_deflate/zlib_deflate.ko


maybe this is the problem, i don't know, from where this module comes from.
Back to top
View user's profile Send private message
Kabuto
l33t
l33t


Joined: 01 Aug 2002
Posts: 701

PostPosted: Tue Mar 23, 2004 6:38 pm    Post subject: Reply with quote

ac97_codec that I showed is OSS. the snd_ac97_codec is Alsa. You can see in the lsmod:
snd_cs46xx 76420 0 <- Alsa driver
snd_rawmidi 20640 1 snd_cs46xx
snd_seq_device 6792 1 snd_rawmidi
snd_pcm 84900 2 snd_pcm_oss,snd_cs46xx
snd_timer 21892 1 snd_pcm
snd_ac97_codec 59012 1 snd_cs46xx
gameport 3840 1 snd_cs46xx
snd_page_alloc 9604 2 snd_cs46xx,snd_pcm
snd 46564 8 snd_pcm_oss,snd_mixer_oss,snd_cs46xx,snd_rawmidi ,snd_seq_device,snd_pcm,snd_timer,snd_ac97_codec
cs46xx 64140 0 <- OSS drivers here and below
ac97_codec 17164 1 cs46xx
soundcore 7648 2 snd,cs46xx
Back to top
View user's profile Send private message
newmario
n00b
n00b


Joined: 23 Mar 2004
Posts: 49

PostPosted: Tue Mar 23, 2004 7:21 pm    Post subject: Reply with quote

ok, the oss modules are away, but it crashes again,



bash-2.05b$ lsmod
Module Size Used by
bsd_comp 5504 0
snd_seq_midi 6688 0
snd_cs46xx 76420 0
snd_rawmidi 20640 2 snd_seq_midi,snd_cs46xx
snd_ac97_codec 59012 1 snd_cs46xx
gameport 3840 1 snd_cs46xx
snd_seq_oss 32256 0
snd_seq_midi_event 6528 2 snd_seq_midi,snd_seq_oss
snd_seq 51472 5 snd_seq_midi,snd_seq_oss,snd_seq_midi_event
snd_seq_device 6792 4 snd_seq_midi,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss 49316 0
snd_pcm 84900 2 snd_cs46xx,snd_pcm_oss
snd_page_alloc 9604 2 snd_cs46xx,snd_pcm
snd_timer 21892 2 snd_seq,snd_pcm
snd_mixer_oss 17664 1 snd_pcm_oss
snd 46564 12 snd_seq_midi,snd_cs46xx,snd_rawmidi,snd_ac97_codec,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore 7648 1 snd
rtc 10680 0
ppp_deflate 4992 2
zlib_deflate 21272 1 ppp_deflate
ppp_synctty 7808 0
ppp_async 10112 1
ppp_generic 26512 8 bsd_comp,ppp_deflate,ppp_synctty,ppp_async
slhc 6912 1 ppp_generic
supermount 35988 1
fglrx 201860 7
via_agp 5376 1


:?:
i'am confused, because i can start the alsamixer, kmix etc. and all show the correct sound card.
Back to top
View user's profile Send private message
newmario
n00b
n00b


Joined: 23 Mar 2004
Posts: 49

PostPosted: Tue Mar 23, 2004 7:27 pm    Post subject: Reply with quote

a error message

bash-2.05b$ aplay /usr/kde/3.2/share/sounds/pop.wav
Playing WAVE '/usr/kde/3.2/share/sounds/pop.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
ALSA lib pcm_hw.c:523:(snd_pcm_hw_drain) SNDRV_PCM_IOCTL_DRAIN failed: Input/output error

:)

what does this mean ?

alsa lib error ?
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Tue Mar 23, 2004 9:25 pm    Post subject: Reply with quote

I don't know why, btu I've heard some people say it works better if ALSA just gets built directly into the kernel.
_________________
jabber: MighMoS@jabber.org

localhost # export HOME=`which heart`
Back to top
View user's profile Send private message
newmario
n00b
n00b


Joined: 23 Mar 2004
Posts: 49

PostPosted: Wed Mar 24, 2004 12:31 pm    Post subject: Reply with quote

when i compilte the sound into the kernel, do i need to edit the alsa.conf and run modules-update ?
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Wed Mar 24, 2004 8:01 pm    Post subject: Reply with quote

You shouldn't have to.
_________________
jabber: MighMoS@jabber.org

localhost # export HOME=`which heart`
Back to top
View user's profile Send private message
newmario
n00b
n00b


Joined: 23 Mar 2004
Posts: 49

PostPosted: Wed Mar 24, 2004 10:49 pm    Post subject: update Reply with quote

now i have compiled all into the kernel instead of using modules

its strange, if i try using aplay after booting with set the volume and unmute via amixer$
the following error appears

Playing wave '/usr/kde/3.2/share/sounds/pop.wav' : Signed 16 bit Little Endian
Rate 44100 Mono
ALSA LIB pcm_hw.c: 523:(snd_pcm_hw_drain) SNDRV_PCM_IOCTL_DRAIN failed : Input/$

when i directly call aplay with pop.wav after the first try, the computer crash$

maybe my computer components the problem ? via k7vt2, xp 1800.
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