Re: Loading new ALSA modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That was indeed the case. 

I was able to unload the remaining snd* modules and then use insmod to
loadup the modules generated by my compile of the alsa-drivers 1.0.14
drop. However I'm not getting any sound now, and some utilities such as
amixer and alsamixer are giving me Seg fault errors. What else do I need
to do inorder to get the drivers installed? What could I have done wrong
and how to debug it?

Here is the list of modules I was able to install:

snd_seq_oss            37248  0 
snd_seq_midi_event     11136  1 snd_seq_oss
snd_pcm_oss            49064  0 
snd_mixer_oss          22912  1 snd_pcm_oss
snd_hda_intel         249296  0 
snd_seq                56400  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device         12684  2 snd_seq_oss,snd_seq
snd_pcm                81924  2 snd_pcm_oss,snd_hda_intel
snd_page_alloc         14856  2 snd_hda_intel,snd_pcm
snd_timer              28676  2 snd_seq,snd_pcm
snd                    67392  8
snd_seq_oss,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_seq,snd_seq_devi
ce,snd_pcm,snd_timer
 
I figured that the mixer must be muted since I get no error, but also no
sound with aplay, but I can't set anything via the mixer:

brooke: aplay ../../sounds/testpcm1.wav 
Playing WAVE '../../sounds/testpcm1.wav' : Signed 16 bit Little Endian,
Rate
8000 Hz, Mono

brooke: amixer set Front 70 unmute                  
Simple mixer control 'Front',0
zsh: segmentation fault  amixer set Front 70 unmute

brooke: amixer scontrols          
Simple mixer control 'Headphone',0
Simple mixer control 'Line',0
Simple mixer control 'CD',0
Simple mixer control 'Mic',0
Simple mixer control 'Aux-In',0
Simple mixer control 'Capture',0
Simple mixer control 'Front',0
Simple mixer control 'Front Mic',0
Simple mixer control 'Input Source',0
Simple mixer control 'iSpeaker',0

Do I need to remove the device nodes and re-create them? Not sure where
to go from here... I'm also thinking about adding some good basic setup
instructions on the wiki as most of that seems to be either out of date
or just missing.

-Brooke

> -----Original Message-----
> From: Bill Unruh [mailto:unruh@xxxxxxxxxxxxxx] 
> Sent: Tuesday, August 14, 2007 11:43 AM
> 
> On Tue, 14 Aug 2007, Wallace, Brooke wrote:
> 
> > This may be a sily question, but I just compiled that 
> latest version of
> > Alsa drivers for my system and I'd like to load them and 
> test them out.
> >
> > The problem I have is that I've already got alsa drivers 
> installed (as
> > return by lsmod). So when I try to unload those modules I get a Seg
> > Fault error:
> >
> >> sudo modprobe -r snd_azx
> > sh: line1: 7204 Segmentation fault  /usr/sbin/alsactl store 
> >/dev/null
> > 2>&1
> 
> Hmm. Obviously your system is set up to run a script when 
> your modules is
> downloaded, and the program alsactl is problematic. Did you 
> install those
> new libraries etc. If so you seem to have a problem. 
> You could just do 
> rmmod snd_azx
> instead of using modprobe. If you look in /etc/modprobe.conf 
> or one of the
> files in /etc/modprobe.d/ you will presumably see that the 
> snd_azx module
> has a command to run alsactl befor unloading the module.
> 
> 
> >
> > Am I missing something here? What are the proper steps to unload a
> > module, and then load in a new version of the module?
> >
> > This doesn't seem to be covered in any documentation. Most 
> of what I can
> > find just talks about loading in new modules fro the first 
> time. Don't I
> > have to unload the old one first?
> >
> > The system is Redhat - linux 2.6.9-34.ELsmp
> >
> > The sound modules I want to unload are: snd_azx, snd_pcm_oss,
> > snd_mixer_oss, snd_pcm, snd_timer, snd, snd_page_alloc So I 
> can replace
> > them with the newwly compiled modules.
> >
> > Actually, it looks like snd_azx is no longer loaded.... 
> Still I'm a bit
> > confused about the error message. modprobe is not a shell script.
> >
> > Ok, I think the error must be because its trying to run my newwly
> > compiled version of alsactl. Guess I should have either not 
> installed
> > the new stuff, or unloaded the older modules first... Wish there was
> > more documentation on this stuff...
> >
> > -Brooke
> > 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux