LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   ALSA hates me - a cry for help! (https://www.linuxquestions.org/questions/linux-hardware-18/alsa-hates-me-a-cry-for-help-113884/)

kleptophobiac 11-08-2003 04:59 PM

ALSA hates me - a cry for help!
 
I'm trying to get an ESS 1868 card working (as you can see from a thread some ways down) however, I'm now changing my approach.

I'm trying to use the alsa drivers to do this, since I see there is specific support via the es18xx driver.

I've configured, compiled, and installed everything as per this guide:
http://www.alsa-project.org/alsa-doc...&module=es18xx

When I get to this part:
Quote:

modprobe snd-es18xx;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss
I get this:
Code:

root@radioclient1:~# modprobe snd-es18xx
/lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o: init_module: No such device
/lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o: insmod /lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o failed
/lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o: insmod snd-es18xx failed
root@radioclient1:~#

now I don't quite know what to do

hw-tph 11-08-2003 05:50 PM

You probably need to pass configuration options to the snd-es18xx module. The list of options are available near the top of the page you provided an URL to.

This can be quite tricky and unless you're using music applications the advantages the Alsa provider provides over the kernel driver are somewhat limited. So if the sound works OK with the kernel driver and you don't need a specific Alsa feature you might be better off staying with the kernel driver.

I recently posted a little howto on getting the sound on a Thinkpad 600E working using Alsa at the VectorLinux forum here. You might want to look at it to get some ideas. Basically you need to supply hardware-specific parameters to the module so it will recognize the chip and be able to use it.

Håkan

kleptophobiac 11-08-2003 06:27 PM

Well, I tried using the built in kernel, and it didn't work. Here's the thread where I tried that.

http://www.linuxquestions.org/questi...hreadid=113565

How do I pass options via modprobe?

hw-tph 11-08-2003 06:47 PM

Errr...did you really read the Alsa docs for this module (the page you linked to)? ;)
It's all there - "Setting up modprobe and kmod support" is very helpful.

You should try passing command line options to the module first though, so you know that the options you're putting in modules.conf work - you can try something like modprobe snd-es18xx index=0 enable=1 mpu=0x330, and so on.

Håkan

kleptophobiac 11-08-2003 09:35 PM

Well excuse me for being a total newbie.

This is the first time I've ever used ISA sound, or sound at all, under linux. I've never had to use modprobe before. I'm off to go scrutinize the page I linked, and poke blindly in the dark until I break something.

kleptophobiac 11-08-2003 09:43 PM

Err...did you really read my post?

When I do the modprobe, it gives me those errors. I really don't see how the section of the document you're pointing to has any relevance. That is after the part that I am hanging up on. Also, what is towards the top of the page that should help... this?:

Quote:

The module options for snd-es18xx


description: "ESS ES18xx AudioDrive"

author: "Christian Fischbach , Abramo Bagnara "

license: "GPL"

parm: index int array (min = 1, max = 8), description "Index value for ES18xx soundcard."

parm: id string array (min = 1, max = 8), description "ID string for ES18xx soundcard."

parm: enable int array (min = 1, max = 8), description "Enable ES18xx soundcard."

parm: isapnp int array (min = 1, max = 8), description "ISA PnP detection for specified soundcard."

parm: port long array (min = 1, max = 8), description "Port # for ES18xx driver."

parm: mpu_port long array (min = 1, max = 8), description "MPU-401 port # for ES18xx driver."

parm: fm_port long array (min = 1, max = 8), description "FM port # for ES18xx driver."

parm: irq int array (min = 1, max = 8), description "IRQ # for ES18xx driver."

parm: dma1 int array (min = 1, max = 8), description "DMA 1 # for ES18xx driver."

parm: dma2 int array (min = 1, max = 8), description "DMA 2 # for ES18xx driver."
That's garbage to me. I don't know wtf that is. When I started working with computers at all (about three years ago) it was the wonderful age of pure PCI/AGP, and ISA had just finished dying.

faheyd 11-09-2003 12:52 AM

OK, Ok, let's try this.
Using the info from this link, http://www.linuxquestions.org/questi...02/10/4/33928, and your link http://www.alsa-project.org/alsa-doc...&module=es18xx and let's take a shot in the dark and try the following:

modprobe snd-es18xx isapnp=1 index=1 enable=1 io=220 irq=5 dma1=1 dma2=3 mpu_port=330 fm_port=388

and post exactly what it says.

hw-tph 11-09-2003 06:14 AM

Sorry for perhaps being harsh.

Modprobe will spit out evil error messages at you if you try to load a module which requires some parameters to be passed along with it, and you're not doing that or the parameters are incorrect. It can take a while to figure out what values you need to pass for the module to load correctly but it's certainly not impossible.

fahey's advice sounds good, so start with that and we can take it from there.

Håkan

kleptophobiac 11-09-2003 06:41 AM

Alright, I've never used modprobe before..... so here's to nothing!

Quote:

root@radioclient1:~# modprobe snd-es18xx isapnp=1 index=1 enable=1 io=220 irq=5 dma1=1 dma2=3 mpu_port=330 fm_port=388
Warning: ignoring io=220, no such parameter in this module
/lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o: init_module: No such device
/lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o: insmod /lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o failed
/lib/modules/2.4.22/kernel/sound/isa/snd-es18xx.o: insmod snd-es18xx failed
Is there some way to look at what settings the card should be? Or is it all guess and check?

Also, I don't think the io parameter is correct, should it be "port"?

hw-tph 11-09-2003 08:50 AM

Yes, it seems that there is no option called "io" anymore, so it's most likely port - in the example faheyd provided the value is the 220 port so try replacing "io" with "port" when you try to load the module.

Finding the correct values for the module parameters can be tricky, but it's mostly a case of trying to find the technical documents for your computer. What model and version is it? It helps a lot when you're Googling. :)

Håkan

kleptophobiac 11-09-2003 10:01 AM

Argh, this is a IBM 300GL, borrowed from my school for the weekend while I get the radio up.....

Why isn't there some nice way to detect this stuff? Isn't it called plug 'n play for a reason? I liked original ISA (jumpers own) and PCI soooo much better.

I tried it with port right after I posted the results of your command, but it didn't help at all.

kleptophobiac 11-09-2003 10:05 AM

I just went and checked the model number. It is a 6282-74U

hw-tph 11-09-2003 11:04 AM

I found the technical docs over at IBM's support site but they don't mention the sound much (IRQs 10 and 11 are only listed as PCI/ISA...).

I did, however, find this and it seems pretty helpful and straightforward:
http://bmiller.customer.netspace.net...s1868-2.4.html
I know it's not the Alsa route, but it seems like it's not out of the question to have the kernel detect and configure the soundcard without having to performa a voodoo ritual (or figure out the correct options for the Alsa module...). I thik you should consider trying that.

Håkan

kleptophobiac 11-09-2003 11:30 AM

I just gave up on the ESS 1868, and up in an ISA vibra16c. Seems to work. All I did was recompile alsa. argh... so unpredictable.

faheyd 11-09-2003 02:42 PM

Your welcome.


All times are GMT -5. The time now is 04:53 AM.