View previous topic :: View next topic |
Author |
Message |
DjCoke n00b


Joined: 21 Mar 2004 Posts: 7
|
Posted: Sun Mar 21, 2004 5:41 pm Post subject: Problem with alsa with via82xx |
|
|
Hey this is a really a weaird problem i installed alsa exactly like in the alsa howto from gentoo and whenever i start the alsasound script then the sound don't works i get this message whenever a try to use aplay
Code: |
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
CP629087-A linux-2.4.22-gentoo-r7 # lsmod
Module Size Used by Not tainted
snd-pcm-oss 39524 0 (unused)
snd-mixer-oss 13264 0 [snd-pcm-oss]
snd-via82xx 14176 0 (autoclean)
snd-pcm 66784 0 (autoclean) [snd-pcm-oss snd-via82xx]
snd-mpu401-uart 4032 0 (autoclean) [snd-via82xx]
snd-rawmidi 15200 0 (autoclean) [snd-mpu401-uart]
snd-ac97-codec 42232 0 (autoclean) [snd-via82xx]
snd-page-alloc 6420 0 (autoclean) [snd-via82xx snd-pcm]
snd-seq-oss 28384 0 (unused)
snd-seq-midi-event 4128 0 [snd-seq-oss]
snd-seq 43568 2 [snd-seq-oss snd-seq-midi-event]
snd-timer 16644 0 [snd-pcm snd-seq]
snd-seq-device 4276 0 [snd-rawmidi snd-seq-oss snd-seq]
snd 34948 0 [snd-pcm-oss snd-mixer-oss snd-via82xx snd-pcm snd-mpu401-uart snd-rawmidi snd-ac97-codec snd-seq-oss snd-seq-midi-event snd-seq snd-timer snd-seq-device]
soundcore 4644 6 [snd]
rtc 7880 0 (autoclean)
|
Everything is loaded normally.... but no sound
But when i do manually
Code: |
modprobe snd-via82xx && modprobe snd-pcm-oss && modprobe snd-mixer-oss && modprobe snd-seq-oss && amixer set Master 100 unmute && amixer set PCM 100 unmute
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
CP629087-A linux-2.4.22-gentoo-r7 # lsmod
Module Size Used by Not tainted
snd-seq-oss 28384 0 (unused)
snd-seq-midi-event 4128 0 [snd-seq-oss]
snd-seq 43568 2 [snd-seq-oss snd-seq-midi-event]
snd-pcm-oss 39524 0 (unused)
snd-mixer-oss 13264 0 [snd-pcm-oss]
snd-via82xx 14176 0
snd-pcm 66784 0 [snd-pcm-oss snd-via82xx]
snd-timer 16644 0 [snd-seq snd-pcm]
snd-mpu401-uart 4032 0 [snd-via82xx]
snd-rawmidi 15200 0 [snd-mpu401-uart]
snd-seq-device 4276 0 [snd-seq-oss snd-seq snd-rawmidi]
snd-ac97-codec 42232 0 [snd-via82xx]
snd 34948 0 [snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-via82xx snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device snd-ac97-codec]
soundcore 4644 6 [snd]
snd-page-alloc 6420 0 [snd-via82xx snd-pcm]
rtc 7880 0 (autoclean)
|
The sound works.
As you can see the alsasound script loads other modules then mine mannually configured command...
I dont know how to change the alsascript to my convinience
Thanx for any tips...
Greetz
DjCoke |
|
Back to top |
|
 |
netrider n00b

Joined: 13 Mar 2004 Posts: 2
|
Posted: Sun Mar 21, 2004 11:05 pm Post subject: |
|
|
yo can try add it to the modules.autoload
nano -w /etc/modules.autoload.d/kernel-2.4 or your kernel version
and just add a line with your module name |
|
Back to top |
|
 |
DjCoke n00b


Joined: 21 Mar 2004 Posts: 7
|
Posted: Mon Mar 22, 2004 10:08 am Post subject: |
|
|
I tried that and well now everytime i start X with KDE i got the same thing.
Maybe KDE loads modules as well ??
How can i prevent that ?
Somehow my system want to load modules which he don't need
Greetz
DjCoke |
|
Back to top |
|
 |
DjCoke n00b


Joined: 21 Mar 2004 Posts: 7
|
Posted: Mon Mar 22, 2004 10:17 am Post subject: |
|
|
Well it works now
I recompiled the alsa-driver before and then i load the modules in autoload and it works fin now
But i still can't get the modules working withe the standard alsasound script weird though
Thanx
Greetz
DjCoke |
|
Back to top |
|
 |
DjCoke n00b


Joined: 21 Mar 2004 Posts: 7
|
Posted: Mon Mar 22, 2004 12:51 pm Post subject: |
|
|
Could someone tell me also how i can now save the volume at reboot time ?
Greetz
DjCoke |
|
Back to top |
|
 |
DjCoke n00b


Joined: 21 Mar 2004 Posts: 7
|
Posted: Thu Mar 25, 2004 1:15 pm Post subject: |
|
|
anyone ?? |
|
Back to top |
|
 |
srs5694 Guru

Joined: 08 Mar 2004 Posts: 434 Location: Woonsocket, RI
|
Posted: Thu Mar 25, 2004 5:34 pm Post subject: |
|
|
To save the mixer settings, type "alsactl store" as root. If you want to do this automatically at shutdown, you'd need to modify a shutdown script. In fact, the /etc/init.d/alsasound script already has such a call, so in theory, Gentoo should be saving your ALSA mixer settings at every shutdown, assuming that script is part of your current runlevel. If it's not, try adding it by typing "rc-update --add alsasound default" as root. |
|
Back to top |
|
 |
DjCoke n00b


Joined: 21 Mar 2004 Posts: 7
|
Posted: Fri Mar 26, 2004 8:28 am Post subject: |
|
|
Well as you see in the posts before the alsasound script doesn't work correctly for me...
So how could i make my own script ?
Greetz
DjCoke |
|
Back to top |
|
 |
|