LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Closed Thread
  Search this Thread
Old 03-19-2003, 01:22 PM   #1
wvrhlu
Member
 
Registered: Mar 2003
Location: Eastern Panhandle of WV
Distribution: RH 7.3
Posts: 39

Rep: Reputation: 15
Angry Crystal Logic / IBM thinkpad sound issues


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:

Crystal PnP Audio System CODEC:
i/o 0530-0537
i/o 0388-038B
i/o 0220-0233
irq 10
dma1 01
dma2 00
---
Control registers
---
i/o 0538-053F
---
MPU 401
---
i/o 0330-0333
irq 09
---
Joystick
---
i/o 0200-0207

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.

At this point, I'm at a loss. I tried all of the suggestion in a previous post, to no avail:
http://www.linuxquestions.org/questi...threadid=48264

Anyone have ideas? I want to make this work if it kills me.
 
Old 03-19-2003, 01:57 PM   #2
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
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.
 
Old 03-19-2003, 02:07 PM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Sorry, I didn't read the whole post (duh)

Home with the flu..... brain aint workin.

I'll check out my laptop later and see how it's configured. Maybe I'll notice something.

steve

did you compile sound AND the OSS driver as modules or just sound?

sorry again
 
Old 03-19-2003, 02:44 PM   #4
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Just in case there's something here you can use....

IBM 380XD running RH7.3 with stock kernel 2.4.18-3

Crystal CS423x sound chip as driver through sndconfig.

Sound support and CS423x compiled as modules

I/O port = 0x530
IRQ = 5
DMA1 = 1
DMA2 = 0
MPU I/O = 0x330
MPU IRQ = 5

after entering the settings, a test sound is played that is barely perceptable to the human ear. accept settings.

It's not clear from the original post if you tried this driver or not. At least it's not clear to me in my current state ;-)

This may not help but, it gave me something to do besides blow my nose.

have fun.
 
Old 03-19-2003, 04:47 PM   #5
wvrhlu
Member
 
Registered: Mar 2003
Location: Eastern Panhandle of WV
Distribution: RH 7.3
Posts: 39

Original Poster
Rep: Reputation: 15
Hmm... My previous reply didn't post.

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.

Brian
 
Old 03-19-2003, 08:09 PM   #6
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
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.

Well good luck

I'll check in later
 
Old 03-20-2003, 12:52 PM   #7
wvrhlu
Member
 
Registered: Mar 2003
Location: Eastern Panhandle of WV
Distribution: RH 7.3
Posts: 39

Original Poster
Rep: Reputation: 15
Franklin,

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:

snd-timer
snd-seq-device
snd-rawmidi
snd-mpu401-uart
snd-hwdep
snd-page-alloc
snd-opl3-lib
snd-seq
snd-seq-midi-event
snd-pcm
snd-cs4231-lib
snd-cs4236-lib
snd-mixer-oss
snd-pcm-oss
snd-seq-oss

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.

Brian
 
Old 03-20-2003, 02:11 PM   #8
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Rep: Reputation: 15
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.
 
Old 03-20-2003, 02:23 PM   #9
wvrhlu
Member
 
Registered: Mar 2003
Location: Eastern Panhandle of WV
Distribution: RH 7.3
Posts: 39

Original Poster
Rep: Reputation: 15
OK, I'll try it. Compiling a kernel for the 3rd time today...
 
Old 03-21-2003, 08:10 AM   #10
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Rep: Reputation: 15
Cool ^_^

Glad to hear it worked.
 
Old 03-21-2003, 08:39 AM   #11
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
I've moved wvrhlu's last post to the Member Success Stories forum.

Last edited by Aussie; 03-21-2003 at 08:40 AM.
 
  


Closed Thread



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no sound on IBM Thinkpad 770z bliblu Linux - Newbie 11 12-18-2005 01:33 PM
IBM Thinkpad a20p hard disk/lockup issues wapcaplet Linux - Hardware 10 02-14-2005 09:26 PM
ES1969 sound card issues on IBM 390X Thinkpad bburgy Linux - Hardware 3 07-07-2004 05:52 PM
Crystal Logic / IBM thinkpad sound success. wvrhlu LinuxQuestions.org Member Success Stories 5 12-02-2003 09:04 PM
Sound on IBM ThinkPad 600E firejdl Linux - Hardware 1 06-19-2003 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration