Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page ALSA drivers (general question)
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 01-03-2007   #1 (permalink)
soccercisco
Just Joined!
 
soccercisco's Avatar
 
Join Date: Dec 2006
Location: So. Cal
Posts: 98
Send a message via AIM to soccercisco Send a message via MSN to soccercisco
[solved] ALSA drivers for Soundblaster card. /dev/snd dissapears on boot.

hi,

I am having trouble maintaining my sound configuration with the ALSA drivers (on Etch):

every time I boot I need to do the following:
zabala@terra:/usr/share/alsa-base$ sudo ./snddevices
zabala@terra:/usr/share/alsa-base$ sudo alsaconfig
zabala@terra:/usr/share/alsa-base$ alsamixer

Or else my sound card won't work. Though, I get perfect sound after these commands; I just do not want to do this everytime I boot onto the system.

I tried adding the virtual links to the rcX.d directories for my runlevels, but that didn't work.

Info:
Code:
Card: Audigy 2 ZS [SB0350]
Chip: SigmaTel STAC9721,23   
driver
From ... # lsmod | grep snd

Code:
snd_mixer_oss          15200  0
snd_emu10k1_synth       6944  0
snd_emux_synth         30720  1 snd_emu10k1_synth
snd_seq_virmidi         6944  1 snd_emux_synth
snd_seq_midi_emul       5952  1 snd_emux_synth
snd_seq_dummy           3844  0
snd_seq_oss            28768  0
snd_seq_midi            8192  0
snd_seq_midi_event      7008  3 snd_seq_virmidi,snd_seq_oss,snd_seq_midi
snd_seq                45680  9 snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_emu10k1           102656  1 snd_emu10k1_synth
snd_rawmidi            22560  3 snd_seq_virmidi,snd_seq_midi,snd_emu10k1
snd_ac97_codec         83104  1 snd_emu10k1
snd_ac97_bus            2400  1 snd_ac97_codec
snd_seq_device          7820  8 snd_emu10k1_synth,snd_emux_synth,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_emu10k1,snd_rawmidi
snd_util_mem            4672  2 snd_emux_synth,snd_emu10k1
snd_hwdep               8836  2 snd_emux_synth,snd_emu10k1
snd_pcm                68644  2 snd_emu10k1,snd_ac97_codec
snd_page_alloc          9640  2 snd_emu10k1,snd_pcm
snd_timer              20996  3 snd_seq,snd_emu10k1,snd_pcm
snd                    47012  12 snd_mixer_oss,snd_emux_synth,snd_seq_virmidi,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_seq_device,snd_hwdep,snd_pcm,snd_timer
soundcore               9248  1 snd
Cheers,
__________________
- z-bot
=========================
Linux Rules!

Last edited by soccercisco; 01-10-2007 at 03:34 AM. Reason: problem solved. chose more appropriate title for others to find.
soccercisco is offline   Reply With Quote
Old 01-03-2007   #2 (permalink)
iwanabeguru
Linux User
 
Join Date: Feb 2006
Posts: 411
Send a message via MSN to iwanabeguru
hi i saw it on an another topic
try
alsactl store
iwanabeguru is offline   Reply With Quote
Old 01-03-2007   #3 (permalink)
soccercisco
Just Joined!
 
soccercisco's Avatar
 
Join Date: Dec 2006
Location: So. Cal
Posts: 98
Send a message via AIM to soccercisco Send a message via MSN to soccercisco
thx 4 the help!

actually alsactl store (and restore) deals with the alsamixer configuration and not with the modules.

regards,
__________________
- z-bot
=========================
Linux Rules!
soccercisco is offline   Reply With Quote
Old 01-10-2007   #4 (permalink)
soccercisco
Just Joined!
 
soccercisco's Avatar
 
Join Date: Dec 2006
Location: So. Cal
Posts: 98
Send a message via AIM to soccercisco Send a message via MSN to soccercisco
Ok, so I am on my way to figuring this out. I began to see what the heck is going on, and here is what I have found:

1. after the system booted I had no sound, so I went to the '/dev' directory and found that the '/dev/snd' directory didn't exist.

2. so I 'cd' into '/usr/share/alsa-base/' and executed './snddevices' which is a long script to post, but this is the output:

Code:
Creating mixer?...done.
Creating sequencer...done.
Creating midi0?...done.
Creating dsp?...done.
Creating audio?...done.
Creating sndstat...done.
Creating music...done.
Creating dmmidi?...done.
Creating dmfm?...done.
Creating amixer?...done.
Creating adsp?...done.
Creating amidi?...done.
Creating admmidi?...done.
Creating snd/control?...done.
Creating snd/seq...done.
Creating snd/timer...done.
Creating snd/hw??...done.
Creating snd/midi??...done.
Creating snd/pcm??p...done.
Creating snd/pcm??c...done.
Creating aload?...done.
Creating aloadSEQ...done.
3. then I went back to '/dev' and what do you know, there automagically lies the '/dev/snd' directory

4. the content at all times (that is, before and after the execution of snddevices) of 'ls -1a /lib/udev' is:
Code:
.
..
alsa-utils
check_driver
in alsa-utils I find the script:
Code:
#!/bin/sh -e
#
# udev script for alsa-utils

(
        . /lib/udev/hotplug.functions
        wait_for_file /usr/sbin/alsactl
        DEV_BASENAME="${DEVNAME##*/}"
        N="${DEV_BASENAME#controlC}"
        exec /etc/init.d/alsa-utils start $N
) &

So with this new info, can somebody tell me why my /dev/snd dissapears everytime I boot.

Thank you in advance.
__________________
- z-bot
=========================
Linux Rules!
soccercisco is offline   Reply With Quote
Old 01-10-2007   #5 (permalink)
soccercisco
Just Joined!
 
soccercisco's Avatar
 
Join Date: Dec 2006
Location: So. Cal
Posts: 98
Send a message via AIM to soccercisco Send a message via MSN to soccercisco
Cool... Problem solved.

1. So I decided to check if udev had been updated and did an apt-get install udev

2. I turned out that this operation had to remove hotplug to install udev, so I selected 'Y'.

3. It then instructed me to purge the removal of hotplug since it had found a folder in init.d

4. Since I wasn't able to purge something that already had been removed by (2.) I apt-get install hotplug (which removed udev) and immediately did an apt-get remove --purge hotplug

5. Finally I did apt-get install udev and this time around it didn't say anything about the hotplug folder.

6. So I tried the procedure described earlier (./snddevices.... etcetera) and rebooted the system... voila... I got Sound @ boot!

Thanks to all 4 the help!
__________________
- z-bot
=========================
Linux Rules!
soccercisco is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 05:05 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0