Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with alsa with via82xx
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
DjCoke
n00b
n00b


Joined: 21 Mar 2004
Posts: 7

PostPosted: Sun Mar 21, 2004 5:41 pm    Post subject: Problem with alsa with via82xx Reply with quote

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
View user's profile Send private message
netrider
n00b
n00b


Joined: 13 Mar 2004
Posts: 2

PostPosted: Sun Mar 21, 2004 11:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
DjCoke
n00b
n00b


Joined: 21 Mar 2004
Posts: 7

PostPosted: Mon Mar 22, 2004 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
DjCoke
n00b
n00b


Joined: 21 Mar 2004
Posts: 7

PostPosted: Mon Mar 22, 2004 10:17 am    Post subject: Reply with quote

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 :roll:

Greetz
DjCoke
Back to top
View user's profile Send private message
DjCoke
n00b
n00b


Joined: 21 Mar 2004
Posts: 7

PostPosted: Mon Mar 22, 2004 12:51 pm    Post subject: Reply with quote

Could someone tell me also how i can now save the volume at reboot time ?

Greetz
DjCoke
Back to top
View user's profile Send private message
DjCoke
n00b
n00b


Joined: 21 Mar 2004
Posts: 7

PostPosted: Thu Mar 25, 2004 1:15 pm    Post subject: Reply with quote

anyone ??
Back to top
View user's profile Send private message
srs5694
Guru
Guru


Joined: 08 Mar 2004
Posts: 434
Location: Woonsocket, RI

PostPosted: Thu Mar 25, 2004 5:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
DjCoke
n00b
n00b


Joined: 21 Mar 2004
Posts: 7

PostPosted: Fri Mar 26, 2004 8:28 am    Post subject: Reply with quote

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
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