Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA, dev/dsp and 2.6.......again (SOLVED!)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Sun Oct 12, 2003 1:29 am    Post subject: ALSA, dev/dsp and 2.6.......again (SOLVED!) Reply with quote

Ok...let me start by saying that yes, I've thoroughly searched the forums and have read, tried, and failed to get my soundcard going. I think I've read every thread there is that contains any bit of info concerning this problem. And yes, I've gone through the Gentoo ALSA page too. I've even gone through the ALSA homepage instructions for the ens1370 and tried to follow exactly what they've done...but once again, their instructions are not exactly geared for a Gentoo/Portage/2.6 situation.

The sound card is a CL SB PCI128 (ens1370).

The main issue is that even though I want to just use ALSA, the KDE sound config still yells at me that I don't have a /dev/dsp. From what I can tell, I don't want to use OSS and have done whatever I've read in my searching to do to just get ALSA going on its own.

I don't even know where to begin as far as explaining what all I've done. The best resource has been the Gentoo-ALSA guide....but it was meant for non-2.6 kernels. ie, can't emerge alsa-kernel with 2.6...and therefore the instructions fall apart at that point.

I've configured the kernel (2.6-test6) for all the little details I've read....installed as module, have devfs support, but I'm hoping someone will prompt me with some questions to see if I have in fact set the kernel config up correctly.

I've emerged all the ~x86 ALSA stuff I can. I realize that ALSA is suppose to be built into the 2.6 kernel and all. One issue I can't figure out is what is suppose to happen with the ens1370.c file. That is my soundcard driver (uncompiled of course). I can't seem to find an ens1370.o file anywhere so it appears that something is left undone in this dept.

I CAN start alsasound successfully tho....so at least _something_ is working.

I swear I've NEVER had a linux install that didn't give me trouble installing a sound card. What is it with linux and sound? Another closed-source driver issue? :roll:


Last edited by ck42 on Mon Oct 13, 2003 5:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Sun Oct 12, 2003 1:01 pm    Post subject: Reply with quote

I'll had the same problem some time ago...

i'll did some debugging and found out that if you remove the oss USE flag, then gentoo removes the /dev/sound/dsp device.

so you HAVE to have both ALSA and OSS in your USE flags.
then recompile ALSA.
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Sun Oct 12, 2003 1:01 pm    Post subject: Reply with quote

Did you enable OSS emulation in the ALSA section? You need that for kde to work with sound I believe.
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Sun Oct 12, 2003 4:04 pm    Post subject: Reply with quote

jaska: yes, OSS emulation is selected in the kernel.

GentooBox:

Interesting. This is something that I HAVE NOT run across yet.
But, being the total newbie to Gentoo that I am, I'm _only_ familiar with the USE flags in the sense that I kinda know what they do. I don't, however, know how to use them.
Could you please give me the correct command to do this?

something like USE="alsa -oss" maybe??

Then at that point, do I need to go back and re-emerge all the alsa stuff? Remeber too that I'm using the 2.6 kernel...which means I can't re-emerge the alsa-driver. So, does this mean I need to also recompile the kernel in order to recompile the alsa-driver built into the kernel?

I feel like Cpt. Dillan Hunt: "It's never easy..."
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Sun Oct 12, 2003 5:53 pm    Post subject: Reply with quote

if you reemerge alsa, then it starts to reemerge the 2.6 kernel.

i dont know what you should reemerge in 2.6 kernel.
but try reemerge alsa-utils and alsa-libs.

a cool tool to configure your useflags with: ufed

Code:

emerge ufed

then type ufed in the term and make sure that oss and alsa is selected as USE flags.
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Sun Oct 12, 2003 6:07 pm    Post subject: Reply with quote

ufed: Kick-arse!!! thnx for that one :)

It looks like alsa and oss were already both selected.

I still don't see a /dev/dsp. But, I haven't remereged anthing yet. I'll try that next and see what happens.

edit: Ok...remerged utils and lib. updated modules. Still no dev/dsp.
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Sun Oct 12, 2003 8:09 pm    Post subject: Reply with quote

are you sure that you mean /dev/dsp ? and not /dev/sound/dsp ?

cus, if you mean /dev/dsp. then you app looks for the sound device the wrong place.

you'll need to make a symlink (dont know if thats the right way to do it.)

Code:
ln -s /dev/sound/dsp /dev/dsp


try it out...
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Sun Oct 12, 2003 8:10 pm    Post subject: Reply with quote

oh.... by the way:

first make sure that you have /dev/sound/dsp
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Sun Oct 12, 2003 8:23 pm    Post subject: Reply with quote

sound # ls -la
total 0
drwxr-xr-x 1 root root 0 Dec 31 1969 .
drwxr-xr-x 1 root root 0 Dec 31 1969 ..
crw------- 1 chris audio 14, 1 Dec 31 1969 sequencer
crw------- 1 chris audio 14, 8 Dec 31 1969 sequencer2


Nope, not there. :?

what's up with the 1969 year???
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Sun Oct 12, 2003 8:33 pm    Post subject: Reply with quote

Dec 31 1969 - isent that the year the unix time started ?

well... it sounds like you forgot something in your kernel config.
this is my /usr/src/linux/.config

# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_RTCTIMER is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set

i made a symlink from /usr/src/linux-2.6.0-test7-bk2/ to /usr/src/linux
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Sun Oct 12, 2003 9:02 pm    Post subject: Reply with quote

Here's mine. The stuff loaded as modules must've been from somewhere that recommended to do that. I've recompiled the kernel prolly a dozen times trying to find the right combination of things.


# Sound
#
CONFIG_SOUND=m

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Sun Oct 12, 2003 9:09 pm    Post subject: Reply with quote

if you compile them as modules, then you need to insmod or modprobe them before you use them.

compile them into the kernel since you will use them often.

compile the kernel, mount /boot/ and move the new bzImage to the /boot partition.
then reboot and see if it works.
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
rabbit
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2003
Posts: 122
Location: Clarkson University

PostPosted: Sun Oct 12, 2003 9:14 pm    Post subject: Reply with quote

As a side note too -- I had a similar problem (though not with your card... I'm using emu10k1). After re-emerging alsa-driver and such, all I had to do was reboot. For some reason it doesn't create the simlink otherwise. I'm not sure if you can just create it manually, though mine looks like this:

Code:

lr-xr-xr-x    1 root     root            9 Oct 12 16:49 /dev/dsp -> sound/dsp
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Sun Oct 12, 2003 9:35 pm    Post subject: Reply with quote

Ok...kernel recompiled with all the stuff added *

Now, dmesg shows this part:

Advanced Linux Sound Architecture Driver Version 0.9.7 (Thu Sep 25 19:16:36 2003 UTC).
request_module: failed /sbin/modprobe -- snd-card-0. error = -16
ALSA device list:
No soundcards found.

I also saw some stuff about alsa-oss, mixer not loading or something.

lsmod also no longer shows the alsasound. In fact, lsmod shows NOTHING.
Back to top
View user's profile Send private message
rabbit
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2003
Posts: 122
Location: Clarkson University

PostPosted: Sun Oct 12, 2003 9:39 pm    Post subject: Reply with quote

Do you have your ALSA_CARDS="ens1370" variable set? I keep mine in make.conf for safety, but if you want to emerge drivers/such, you can just do:

Code:
ALSA_CARDS="ens1370" emerge alsa-driver
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Sun Oct 12, 2003 9:54 pm    Post subject: Reply with quote

rabbit:

actually, I did:
env ALSA_CARDS='ens1370' ACCEPT_KEYWORDS="~x86" emerge alsa-driver

and then did:
ACCEPT_KEYWORDS="~x86" emerge alsa-oss

the alsasound now starts again. But, still no dev/dsp or working sound.
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Mon Oct 13, 2003 12:25 am    Post subject: Reply with quote

ok....loaded everything back into the kernel as modules and unmerged everything alsa related and started from scratch.

Everything looks 'better'.....

lsmod is now showing
Module Size Used by
snd_seq_oss 34016 0
snd_seq_midi_event 6336 1 snd_seq_oss
snd_seq 57840 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6948 2 snd_seq_oss,snd_seq
snd_pcm_oss 49380 0
snd_pcm 93120 1 snd_pcm_oss
snd_page_alloc 9380 1 snd_pcm
snd_timer 23680 2 snd_seq,snd_pcm
snd_mixer_oss 17568 1 snd_pcm_oss
snd 48228 8 snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore 7360 1 snd

But...the part I'm getting stuck at is the 'amixer' step. It just gives me the error no matter what I do. I think it will do this if the INCORRECT soundcard driver is installed. But, how do I verify that the driver is the correct one? I know that it's an ens1370, but WHERE and HOW should this driver look and in which files should it be?

edit:

Just rebooted and saw a bunch of errors about sound stuff but it wasn't logged in the dmesg. Where can I see the record of the stuff that wasn't in the dmesg? or are those errors not logged anywhere?

edit2:

found the shift-PgUp feature :)
looks like the errors go something like this:

Loading snd-mixer-oss

Warning: Error inserting snd (lib/modules/2.6.0-test6/kernel/sound/acore/snd.o
Invalid module format

This goes on for Error inserting snd-mixer-oss
snd
soundmixer-oss
snd_timer
snd_pcm
snd_pcm_oss
etc, etc

then...........................................snd-ens1370 ****
etc, etc.

Then finally,

No mixer config in /etc/asound.state, you have to unmute your card ***(there is NO asound.state file when I looked)***

this seems to all be oss related. Hope this means something useful.
Back to top
View user's profile Send private message
blueworm
l33t
l33t


Joined: 09 May 2003
Posts: 962

PostPosted: Mon Oct 13, 2003 1:43 am    Post subject: Reply with quote

DO NOT emerge alsa-drivers with 2.6 series kernels!
The drivers are in the kernel unlike 2.4 series.
If you install alsa-driver it will overwrite the correct driver located in
/lib/modules/2.6.0test6/kernel/sound/pci .
If it complains about incorrect module format it is because
its the wrong driver. (2.4 driver u just emerged!)
2.6 driver will be called snd-ens1370.ko
Infact all 2.6 drivers have a .ko extension whereas 2.4 have a .o extension.

All you need to change when you configure the 2.6 kernel as far as the sound goes is the pci soundcard driver the default is snd-intel8x0, you will want to choose your soundcard snd-ens1370, select as module...
All the other sound related options are ok in there default settings do not touch them.
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Mon Oct 13, 2003 2:07 am    Post subject: Reply with quote

"will want to choose your soundcard snd-ens1370, select as module... "

As in, select it as a module in the kernel???? that driver isn't listed in the pci section in the kernel...believe me, I would've done that a LONG time ago.

So, should I unmerge the alsa-driver and then recompile the kernel so that the built-in alsa-driver resets itself?


edit:

I went ahead and unmerged anything alsa*
and
recompiled the kernel (didn't change anything - stuff still loaded as modules).

rebooted and get ONLY these errors now.

Loading snd-seq-oss
modprobe: FATAL: Module snd_ens1370 not found

Loading snd-ens1370
FATAL: Module snd_ens1370 not found

Loading: snd-seq-oss
FATAL: Module snd_seq_oss already in kernel
.
.
.
.No mixer config in /etc/asound.state. you have to unmute your card


So...got rid of all those other errors but left with these.
Not sure where to go from here.
Back to top
View user's profile Send private message
blueworm
l33t
l33t


Joined: 09 May 2003
Posts: 962

PostPosted: Mon Oct 13, 2003 9:07 am    Post subject: Reply with quote

Quote:
As in, select it as a module in the kernel???? that driver isn't listed in the pci section in the kernel...believe me, I would've done that a LONG time ago.

Yes it is in there kernel 2.6.0test6
Code:
make menuconfig

<Sound> <Advanced Linux Sound Architecture> <PCI devices> <(Creative) Ensoniq AudioPCI 1370>

You will need to have alsa-lib and alsa-util installed....
Back to top
View user's profile Send private message
gitarretyp
n00b
n00b


Joined: 22 Oct 2002
Posts: 36

PostPosted: Mon Oct 13, 2003 9:19 am    Post subject: Reply with quote

Quote:
rebooted and get ONLY these errors now.

Loading snd-seq-oss
modprobe: FATAL: Module snd_ens1370 not found


I too have these problems with 260test6 and haven't been able to resolve them properly (hopefully someone will speak-up here). I've been able to load the modules using insmod with the full path rather than simplying modprobing. You may try that.
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Mon Oct 13, 2003 1:02 pm    Post subject: Reply with quote

blueworm:

"<Sound> <Advanced Linux Sound Architecture> <PCI devices> <(Creative) Ensoniq AudioPCI 1370>

You will need to have alsa-lib and alsa-util installed...."

wow...uh, I definately do NOT have the ens1370 driver selection there. very strange!

This sounds like it could be the source of many of my problems. I DO have utils and lib installed.



Can anyone else confirm that the ens1370 driver is a selection in the 2.6-test6 kernel under:
<Sound> <Advanced Linux Sound Architecture> <PCI devices>

EDIT:

Ok...in the kernel .config file, in the sound PCI section, the ens1370 is NOT listed either.

BUT....in the /usr/src/linux/sound/pci dir, the ens1370.c *IS* there!

So...why would the menuconfig NOT list it as an option? Is there a way to just manually write this into the kernel .config file and compile the kernel?
Back to top
View user's profile Send private message
blueworm
l33t
l33t


Joined: 09 May 2003
Posts: 962

PostPosted: Mon Oct 13, 2003 2:42 pm    Post subject: Reply with quote

Do the following:-
Unpack a fresh kernel in your home directory for example.
Code:
tar -jxvf linux-2.6.0test6.tar.bz2

now do
Code:
make clean

and
Code:
make mrproper

Now
Code:
make menuconfig

NOW I promise you the driver will be where I said it would!!!
To cofigure the kernel for the sound go into the <Sound> dir
THE ONLY THING YOU CHANGE IS <Advanced Linux Sound Architecture> <PCI Devices> Un-select intel8x0 and in turn u select your soundcard as a module.
Now
Code:
emerge alsa-lib

Code:
emerge alsa-util

Now type this
Code:
# cp /etc/modules.autoload.d/kernel-2.5 /etc/modules.autoload.d/kernel-2.6

Now edit this new file and add the line
Code:
snd-ens1370

What this does is mount the module at boot.
Now edit /etc/modules.d/alsa and add this
Code:
alias char-major-116 snd
alias snd-card-0 snd-ens1370
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
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

What this does is dynamically add this to /etc/module.conf
Your sound card should now be fully operational.
The only problem you may have now is that its muted.
add these line to your /etc/conf.d/local.start
Code:
amixer set Master 100 unmute
amixer set PCM 100 unmute
amixer set Mic 100 unmute
amixer set Line 100 unmute
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Mon Oct 13, 2003 3:12 pm    Post subject: Reply with quote

blueworm:

Dl'd a fresh copy of test6, unpacked it, did the stuff...

and, menuconfig shows exactly what I've been seeing all along.....NO ens1370 listing under the <Sound> <Advanced...> <PCI> category.

seriously. :?
Back to top
View user's profile Send private message
blueworm
l33t
l33t


Joined: 09 May 2003
Posts: 962

PostPosted: Mon Oct 13, 2003 3:20 pm    Post subject: Reply with quote

Get 2.6.0test7 from www.kernel.org
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
Goto page 1, 2  Next
Page 1 of 2

 
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