Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OK, I've been wrestling with this demon for over a week and a half now and my level of frustration has reached its peak.
The background is that I've been trying to get sound configured on an IBM Thinkpad 600 (2645-45U) with a Crystal Logic 4237b chip running RH 8.0 (2.4.18-14 and 2.4.20). I completely gave up on using the base drivers at the beginning and downloaded the ALSA drivers, libs, utils, tools, and OSS stuff. I have the latest stable (0.9.1). Despite what other individuals have done to make their machine work, mine refuses to install the snd-cs4236 module, giving the error "init_module: no such device", then offers the suggestion that the irq or IO parameters are incorrect.
Last night, I decided to reload Win98 and check out the posts and irq, etc. (BTW, it loaded beautifully and sound came up without any issues). Here is what I found:
I reloaded RH8 and both kernels with modulized sound (as recommended by Thomas Hood and others). All of the ALSA packages loaded great with no errors that I could see. Next, I attempted to run 'alsaconf'. Alsaconf could not detect the card, so I chose from a list of Legacy ISA cards (mine was there -- cs4235-9). When it probed it, the system locked.
Next, I directly edited modules.conf using both Thomas Hood's modules.conf configuration and the one at http://www.augart.com/thinkpad600/th...00-sound.html, using my irq's, etc. The 'augart' one just gives errors, but the other causes the system to lock completely. On reboot, I cannot use the 2.4.20 kernel until I move the modules.conf file out of the way.
I use and older thinkpad - 380XD, but I believe the sound card is the same or close. I fought with this a while and managed one day to find a link that showed how to do it.
First off you have to recompile the kernel because sound support has to be loaded as a module, it won't work if support is compiled directly into the kernel. Then in the sound options u need to select the correct OSS driver and have this compiled as a module as well.
Once the kernel is reconfigured, you should be able to load the driver from within sndconfig.
IIRC, the IO, DMA, IRQ options will have to be enterd by hand from within sndconfig. If you're dual booting with windows, get this info from the device manager to cut down on the guess work.
Hope this helps
steve
PS - I did get this working, but it started behaving badly (all sound was in slow motion - very wierd) But it did work fine for a while. I'll try to find that link and post it if I can.
Any how... Thanks for the info, Franklin. To answer some of your questions, yes, I compiled sound, OSS support, and cs423x as modules. Then I tried running sndconfig and selected cs423x using the settings you mentioned (and have tried previously). No dice. I keep getting errors from modprobe like:
/lib/modules/2.4.20/kernel/sound/snd-cs4232.o: init_module /lib/modules/2.4.20/kernel/sound/snd-cs4232.o: failed
/lib/modules/2.4.20/kernel/sound/snd-cs4232.o: init_module sound-slot-0: not found
I know this is getting me closer to haveing sound up and running, but I am stuck and don't know where to go from here. I've read up on modprobe, modules.conf, and other related items and can't seem to make them work right for me. I've even got the spec manual for the chip, but I don't know enough to make heads or tails of it.
As a last resort, I could load Win98 and go dual-boot, but I feel like I would be giving up on myself.
Just for ha ha's do an lsmod and see what you have loaded if anything.
On mine, lsmod lists the following sound-related modules:
cs4232
uart401
ad1848
sound
soundcore
Use this list and search through /lib/modules/2.4.20 and see if your missing any. Check kernel.conf to make sure all of these are compiled as modules. Remember, you have to compile sound support, OSS support, and the OSS driver - as well as uart401 etc all as modules.
I am almost certain that you must have missed one - only because I kept getting the same error untill I made certain all drivers were modularized. Of course, your soundcard may be different from mine - I think they might be the same tho.
Major pain in the AS3 - I've heard the 600 is a bear to get linux up and running on. Did you get the mwave modem to work? I can't even get that to work right in winbloze.
My lsmod varies depending on the kernel that I'm running, but I usually have soundcore loaded at a minium. I delved into the lib/modules/2.4.20 deeply over the last few days. I would try to load snd-cs4236 and watch the errors, looking for missing modules. I would locate them, then load using insmod, and finally try to load cs4236 again. When I finished, the list looked something like this:
This isn't the particular order I actually had to initialize them in, only the order I wrote them down. I created a script using to initialize these manually using insmod. When I finally get them all loaded, then I simply get the 'init_module: no such device" error followed by the hint to check ports and IRQs.
Last night I emailed Thomas Hood and quizzed him on the errors that I was getting. This is a portion of his response:
"Use PS2.EXE, not Windows, to select the resources used by
your sound hardware. Disable MPU-401 and joystick ports;
these aren't necessary. In the firmware setup program
("Easy Setup"), disable "Quick Boot". Reboot into Linux.
It is useful to have a kernel that supports access to the
PnP BIOS; this allows you to check that the hardware
resources have been set correctly. (See the "Resource
configuration tools" section of the tpctl home page http://tpctl.sourceforge.net/ .) Do not run sndconfig.
Use my /etc/modutils/sound as the sound part of your
/etc/modules.conf, but uncomment the line
"alias sndcard snd-cs4236" and double check that the
resources selected are the same ones you selected using
PS2.EXE. Make sure that these are the only sound configuration
lines in your /etc/modules.conf."
I downloaded the utility and was able to use a DOS boot floppy to bring up a DOS shell and run the program. It was kind of cool because it showed me the exact ports and IRQs of the card (and modem and parallel, etc). I noticed that it wasn't enabled, so I enabled it. Then I rebooted, verified that quick boot was disabled, then booted and recompiled the 2.4.20 kernel with everything under sound that could be modulized selected.
Still nothing. I guess I'll keep hammering at it until it breaks or I do.
I haven't tried the modem yet, but that's next on my list. Worst case with that is I yank the pcmica one from my Toshiba. I'm not so worried about that working. But, you might want to read some of the links on the linux-thinkpad site that talks about IBM having an MWave driver for Linux and maybe download the PS2 utility.
This may or may not apply to you. Never used Linux on a laptop or even seen that soundcard, but anyway...
When you mention ALSA, you also seem to mention OSS support in the kernel. You should not have this. If you want to install ALSA drivers then the only sound option you should enable in the kernel is Sound Support. Here's a quote from the LFS book on compiling it:
Quote:
Before installing the alsa-drivers note that in your kernel configuration you should have Sound Card Support (CONFIG_SOUND) enabled but nothing else in the Sound menu (with the possible exception of TV Card Mixer support. In particular you should not have OSS Sound Modules enabled as this will cause problems when loading the alsa driver modules.
Again, I'm not absolutely clear that this is the case, but it's worth trying it out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.