Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA Emu10k1 Help Please
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
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Tue Mar 16, 2004 10:23 pm    Post subject: ALSA Emu10k1 Help Please Reply with quote

I has emu10k1 support for my audigy working perfectly in 2.6.3 until i rebooted my machine. when the kernel is booting i get the message

/dev/mixer does not exist please create it or load the correct modules to enable your cards mixer.

lsmod give me

Code:

Module                  Size  Used by
snd_emu10k1            65412  1
snd_rawmidi            20640  1 snd_emu10k1
snd_ac97_codec         58884  1 snd_emu10k1
snd_util_mem            3584  1 snd_emu10k1
snd_hwdep               7712  1 snd_emu10k1
snd_seq_oss            32256  0
snd_seq_midi_event      6272  1 snd_seq_oss
snd_seq                51984  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6920  4 snd_emu10k1,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss            48804  0
snd_pcm                85668  2 snd_emu10k1,snd_pcm_oss
snd_page_alloc          9476  2 snd_emu10k1,snd_pcm
snd_timer              22148  2 snd_seq,snd_pcm
snd_mixer_oss          17920  1 snd_pcm_oss
snd                    46820  15 snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_util_mem,snd_hwdep,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
nvidia               1701804  10


I also noticed in alsa mixer that 3 options were gone. something like
emu10k1 front, emu10k1 surrond and emu10k1 center

my kernel config looks like this:

<M> Advanced Linux Sound Architecture │ │
│ │ <M> Sequencer support │ │
│ │ < > Sequencer dummy client │ │
│ │ [*] OSS API emulation │ │
│ │ <M> OSS Mixer API │ │
│ │ <M> OSS PCM (digital audio) API │ │
│ │ [*] OSS Sequencer API

with emu10k1 compiled in as a module

Why would this just not work on a reboot?
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Tue Mar 16, 2004 11:01 pm    Post subject: Re: ALSA Emu10k1 Help Please Reply with quote

jlanza wrote:
I has emu10k1 support for my audigy working perfectly in 2.6.3 until i rebooted my machine. when the kernel is booting i get the message

/dev/mixer does not exist please create it or load the correct modules to enable your cards mixer.

lsmod give me

Code:

Module                  Size  Used by
snd_emu10k1            65412  1
snd_rawmidi            20640  1 snd_emu10k1
snd_ac97_codec         58884  1 snd_emu10k1
snd_util_mem            3584  1 snd_emu10k1
snd_hwdep               7712  1 snd_emu10k1
snd_seq_oss            32256  0
snd_seq_midi_event      6272  1 snd_seq_oss
snd_seq                51984  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6920  4 snd_emu10k1,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss            48804  0
snd_pcm                85668  2 snd_emu10k1,snd_pcm_oss
snd_page_alloc          9476  2 snd_emu10k1,snd_pcm
snd_timer              22148  2 snd_seq,snd_pcm
snd_mixer_oss          17920  1 snd_pcm_oss
snd                    46820  15 snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_util_mem,snd_hwdep,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
nvidia               1701804  10


I also noticed in alsa mixer that 3 options were gone. something like
emu10k1 front, emu10k1 surrond and emu10k1 center

my kernel config looks like this:

<M> Advanced Linux Sound Architecture │ │
│ │ <M> Sequencer support │ │
│ │ < > Sequencer dummy client │ │
│ │ [*] OSS API emulation │ │
│ │ <M> OSS Mixer API │ │
│ │ <M> OSS PCM (digital audio) API │ │
│ │ [*] OSS Sequencer API

with emu10k1 compiled in as a module

Why would this just not work on a reboot?



Hey there,


If you upgraded you kernel then you should also check and make certain that you have the same version of alsa-libs and alsa-tools and alsa-oss running also. That could be the problem you are having. I have an audigy 2 zs and have been running a 2.6.3 kernel until I put in a 2.6.4. I have had no problems but I do make sure that all of my alsa libs, not just kernel stuff, is up to date.


scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Tue Mar 16, 2004 11:08 pm    Post subject: Reply with quote

they are all the same,

why would this make a difference if all i did was reboot my machine?
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Tue Mar 16, 2004 11:15 pm    Post subject: Reply with quote

jlanza wrote:
they are all the same,

why would this make a difference if all i did was reboot my machine?


Sorry man,

I don't have an answer. That versioning burnt me before and I fixed that and sound was fixed for me. Did you do a 'make mrproper' on you new kernel before building it? Sometimes cleaning out the kernel source tree can make a difference.

scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Tue Mar 16, 2004 11:24 pm    Post subject: Reply with quote

i wasnt upgrading my kernel, it was my original one. i just haddent rebooted yet, and did and no alsa
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Tue Mar 16, 2004 11:30 pm    Post subject: Reply with quote

jlanza wrote:
i wasnt upgrading my kernel, it was my original one. i just haddent rebooted yet, and did and no alsa


Sorry man,
there is NO reason for that to happen then. Why did you reboot? What is the output of /etc/init.d/alsasound restart.

scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Tue Mar 16, 2004 11:46 pm    Post subject: Reply with quote

bash-2.05b# /etc/init.d/alsasound restart
* Unloading ALSA...
* Storing ALSA Mixer Levels
* Unloading modules [ ok ]
* 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 ]


ok now when i go to xmms instead of just playing a song and nothing coming out it gives me a message saying my soundcard isnt configured properly or i dont have the right plugin for output set up, which i do however emu10k1 is no longer a choice for a type of device, infact there is no devices available.

do i need to put anything into modulesautoload?
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Tue Mar 16, 2004 11:53 pm    Post subject: Reply with quote

jlanza wrote:
bash-2.05b# /etc/init.d/alsasound restart
* Unloading ALSA...
* Storing ALSA Mixer Levels
* Unloading modules [ ok ]
* 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 ]


ok now when i go to xmms instead of just playing a song and nothing coming out it gives me a message saying my soundcard isnt configured properly or i dont have the right plugin for output set up, which i do however emu10k1 is no longer a choice for a type of device, infact there is no devices available.

do i need to put anything into modulesautoload?



Hey there,

So it appears that you alsa is OK. Why don't you just read over these sites and double check all of your settings:

http://www.gentoo.org/doc/en/alsa-guide.xml

--and--

http://www.alsa-project.org/alsa-doc/index.php3?vendor=vendor-Creative_Labs#matrix

I have relied heavily on both of those sites for my alsa problems in the past and now everything is just fine.

scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Wed Mar 17, 2004 12:01 am    Post subject: Reply with quote

did you emerge the alsa driver or use the ones built into the kernel?

also when i emerge alsa-tools i get an error
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Wed Mar 17, 2004 12:30 am    Post subject: Reply with quote

jlanza wrote:
did you emerge the alsa driver or use the ones built into the kernel?

also when i emerge alsa-tools i get an error


2.6 kernels use the kernel drivers NOT the alsa-driver ebuilds.

I am just using alsa-lib, alsa-oss, and alsa-utils.


scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Wed Mar 17, 2004 12:41 pm    Post subject: Reply with quote

i still dont understand why i get

/dev/mixer not found

i have a dev mixer with chmod 777 permisions which is a sym link to /dev/sound/mixer which also has the same permisions...
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Wed Mar 17, 2004 5:58 pm    Post subject: Reply with quote

jlanza wrote:
i still dont understand why i get

/dev/mixer not found

i have a dev mixer with chmod 777 permisions which is a sym link to /dev/sound/mixer which also has the same permisions...


Hey there,

I don't have any idea why you can't find /dev/mixer but it is a sym link to /dev/sound/mixer. Maybe you have a problem with devfsd and not alsa ? I am not sure from what you have said thus far.

scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Thu Mar 18, 2004 4:45 am    Post subject: Reply with quote

lr-xr-xr-x 1 root root 11 Mar 17 13:01 /dev/mixer -> sound/mixer

yet i still get the error and none of my volumes get saved on shutdown?
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Thu Mar 18, 2004 5:00 am    Post subject: Reply with quote

jlanza wrote:
lr-xr-xr-x 1 root root 11 Mar 17 13:01 /dev/mixer -> sound/mixer

yet i still get the error and none of my volumes get saved on shutdown?



Hey there,

Pay particular attention to this:
Quote:

You should also verify that /etc/devfsd.conf has the alsa devices and permissions correctly registered.

Code Listing 2.11: /etc/devfsd.conf

# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660

Note: Notice that devfsd.conf sets /dev/sound permissions to be root.audio. Thus, for non-root users to use audio they will have to be part of the audio group.


I got that from the gentoo alsa guide. I bet that your user is not part of the audio group and I also bet that devfsd is not setup correctly either.

NOTE: If you change devfsd.conf, you MUST restart devfsd
/etc/init.d/devfsd restart

scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Thu Mar 18, 2004 6:40 am    Post subject: Reply with quote

bash-2.05b# more /etc/group | grep "audio"
audio::18:jlanza


which is ok

# the audio devices
LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660


which is ok

any other suggestions?
Back to top
View user's profile Send private message
Qubax
Guru
Guru


Joined: 19 Jul 2002
Posts: 451
Location: Tirol, Austria

PostPosted: Thu Mar 18, 2004 10:05 am    Post subject: Reply with quote

getting soundsettings stored:

try
Code:
amixer
or
Code:
alsamixer
to set your volume. afterwards use
Code:
alsactl store
to store the settings and put
Code:
alsactl restore
in your /etc/conf.d/local.start. this should ensure, that your volume-settings are restored.
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Fri Mar 19, 2004 5:27 pm    Post subject: Reply with quote

still didnt work

i think its because it still doesnt have a /dev/mixer :(
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Fri Mar 19, 2004 9:53 pm    Post subject: Reply with quote

jlanza wrote:
still didnt work

i think its because it still doesnt have a /dev/mixer :(


All right,

Here is my /etc/modules.d/alsa file:
Code:

# Alsa 0.9.X kernel modules' configuration file.

# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $
                                                                                                                                                               
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
                                                                                                                                                               
##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-emu10k1
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
                                                                                                                                                               
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss
                                                                                                                                                               
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
                                                                                                                                                               
# Set this to the correct number of cards.
options snd cards_limit=1


Try using this and then you MUST do an update-modules followed by a /etc/init.d/alsasound restart.

scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
TenPin
Guru
Guru


Joined: 26 Aug 2002
Posts: 500
Location: Kansas City

PostPosted: Sat Mar 20, 2004 2:33 pm    Post subject: Reply with quote

If you are going to load the sound modules at boot anyway, why not just build ALSA into the kernel ? I've always done this and it 'Just Works' TM.
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Sat Mar 20, 2004 6:01 pm    Post subject: Reply with quote

still no dice :(

Code:

bash-2.05b# modules-update
Warning: could not generate /etc/modprobe.conf!
bash-2.05b# /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Unloading ALSA...
 * Storing ALSA Mixer Levels
 * Unloading modules                                                     [ ok ]
 * 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 ]
bash-2.05b# alsamixer

alsamixer: function snd_ctl_open failed for default: No such device
bash-2.05b# lsmod
Module                  Size  Used by
snd_seq_oss            32256  0
snd_seq_midi_event      6272  1 snd_seq_oss
snd_seq                51984  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6920  2 snd_seq_oss,snd_seq
snd_pcm_oss            48804  0
snd_pcm                85668  1 snd_pcm_oss
snd_page_alloc          9476  1 snd_pcm
snd_timer              22148  2 snd_seq,snd_pcm
snd_mixer_oss          17920  1 snd_pcm_oss
snd                    46820  8 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
sr_mod                 13220  0
ide_scsi               12292  0
nvidia               1701804  10


http://filebox.vt.edu/users/jlanza/temp/snapshot1.png
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Sat Mar 20, 2004 6:22 pm    Post subject: Reply with quote

recompiling alsa into the kernel makes the /dev/mixer error go away however my mixer levels still dont save and load properly
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Sat Mar 20, 2004 8:24 pm    Post subject: Reply with quote

jlanza wrote:
recompiling alsa into the kernel makes the /dev/mixer error go away however my mixer levels still dont save and load properly


All right,

I have never seen this problem before: Warning: could not generate /etc/modprobe.conf!


Why don't you try and get that cleared up first. Fixing that could solve the rest of your problems.

scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
TenPin
Guru
Guru


Joined: 26 Aug 2002
Posts: 500
Location: Kansas City

PostPosted: Sat Mar 20, 2004 8:48 pm    Post subject: Reply with quote

jlanza wrote:
recompiling alsa into the kernel makes the /dev/mixer error go away however my mixer levels still dont save and load properly


I have a boot script that sets all my volume levels. I don't save them because I want them restored to the same thing every time I reboot.

Code:

#!/sbin/runscript

depend() {
    need bootmisc
}

start() {
    ebegin "Loading mixer settings"
        /usr/local/bin/nohups amixer sset Master 30%
        /usr/local/bin/nohups amixer sset PCM 60%
        /usr/local/bin/nohups amixer sset Surround 100%
        /usr/local/bin/nohups amixer sset Front 100%
        /usr/local/bin/nohups amixer sset Music 0%
        /usr/local/bin/nohups amixer sset "PCM Center" 0%
        /usr/local/bin/nohups amixer sset "PCM LFE" 0%
        /usr/local/bin/nohups amixer sset "PCM Front" 70%
        /usr/local/bin/nohups amixer sset "PCM Surround" 70%
        /usr/local/bin/nohups amixer sset LFE 0%
        /usr/local/bin/nohups amixer sset Center 0%       
    eend $? "Failed to load mixer settings"
}


nohups is just:
Code:
exec "$@" > /dev/null 2>&1
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Sat Mar 20, 2004 9:49 pm    Post subject: Reply with quote

should i just put that script in /etc/conf.d/local.start

and nohupps is the alias of that command at the bottom? If it is where should i alias to. I am pretty noobish when it comes to setting up scripts, if you could give me a deeper explanation of what i need to do to set it up that would be awesome :)

thanks man i appreciate it alot
Back to top
View user's profile Send private message
jlanza
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 109

PostPosted: Tue Mar 23, 2004 5:08 am    Post subject: Reply with quote

ok i think i got it, i figured out alsa was loading and saving fine, but so was kmix :), which overwrote my alsa settings each time

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