LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Reply
  Search this Thread
Old 06-08-2006, 11:25 PM   #1
Wulfrunner
LQ Newbie
 
Registered: Jun 2006
Location: Mississauga
Distribution: Zenwalk 2.6
Posts: 7

Rep: Reputation: 0
Sound chip (cs4236) not working with ALSA 1.0.11 and Kernel 2.6.16.19


Hi. I've been trying to figure this one out on my own for several weeks now (on and off), and I have not come up with an adequate solution. I have an old IBM 300PL (Pentium III 550 MHz) with a Cirrus Logic 4236 Sound Chip. I have had problems with this chip before, but have managed to get it working with Fedora Core 1 and Ubuntu Breezy Badger 5.10. Before, the solution was something simple like "modprobe snd-cs4236"; however, I decided that it was time for me to try out Slackware. I picked a distribution called Zenwalk, but quickly found that the sound would be more difficult to get working. I have done extensive Googling and reading of manuals, but I can't seem to find the right direction.

I first realized that the stock Kernel (2.6.16.16) had not been compiled with ISA support; I downloaded the sources for the 2.6.16.19 kernel, compiled, and installed it with ISA support as well as the ALSA modules for the cs423x family (NOTE: I do not have OSS support compiled in the Kernel). I also updated all links to the kernel headers (I understand this is important for compiling ALSA). I was able to successfully modprobe the snd-cs4236 module provided by the kernel; alsaconf (part of the packaged ALSA that came with my distribution) found the ISA card and probed it successfully; however, alsactl did not see any sound card, alsamixer gave me "function snd_ctl_open failed for default: No such device", and amixer gave me "amixer: Mixer attach default error: No such device". This I thought was strange because lsmod showed the module as being loaded, so I thought I would remove all traces of ALSA that came with my distro and compile it from source according to the instructions for my card at alsa-project.org.

I followed the instructions up to this point:
Quote:
modprobe snd-cs4236;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss
I was getting something like "/dev/dsp does not exist", but after reinstalling ALSA, it is failing out with a lot of "Unknown Symbol" messages in dmesg. From modprobe:
Quote:
WARNING: Error inserting snd_cs4231_lib (/lib/modules/2.6.16.19/kernel/sound/isa/cs423x/snd-cs4231-lib.ko): Unknown symbol in module, or unknown parameter (see dmesg)
From what I understand, ALSA replaced the modules provided by the kernel with its own. The headers for the 2.6.16.19 kernel are the same ones I am using right now. If I "make modules_install", I get my snd-cs423x modules back and they are loadable; but there is no device created (is that the right way to think about it?). The snd-cs4236 ALSA modules do not want to load at all, and from what I can tell there may be some kind of header mismatch? Could someone tell me what happens between the module being loaded and the device talking to ALSA? (or better yet, tell me where I have gone horribly wrong?) Thanks!
 
Old 06-09-2006, 02:56 AM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Do not compile ALSA that the kernel includes unless you know what version it uses. The version that it uses depends what ALSA library and ALSA utilities you have to use. I recommend do not waste your time enabling ALSA in the kernel. Just waste your time setting soundcore as a module. Download ALSA drivers, libraries and utilities from alsa-project.org. Next compile them. I do not recommend using alsaconf because it can mess up your /etc/modules.conf or /etc/modprobe.conf file.

I recommend using && to seperate different commands when compiling programs or modules (drivers) because it makes sure each step is a successful run before executing the next command. Programmers that include ; to seperate commands for compilng programs or modules are idiotes and they should be hung.
 
Old 06-09-2006, 03:25 PM   #3
Wulfrunner
LQ Newbie
 
Registered: Jun 2006
Location: Mississauga
Distribution: Zenwalk 2.6
Posts: 7

Original Poster
Rep: Reputation: 0
Solved

Thanks for the reply Electro; I followed your advice and stopped worrying about kernel modules and focused on ALSA instead. I found one more link to the old kernel headers that I had not changed and corrected it. I then ran "make uninstall" and "make clean" for alsa-driver, alsa-lib, and alsa-utils. I rebooted and made sure there were no traces of ALSA left, then I compiled and installed the alsa packages again, including support for all sound cards. The kernel modules then worked; however, I found out that the device needed the snd-cs4231 module (not the snd-cs4236 module--this was not my original problem anyways). I added "/sbin/modprobe snd-cs4231" to my /etc/rc.d/rc.modules and I am now able to play sound! Thanks for getting me on the right track.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ALi sound chip not working in Fedora 4 bfg666 Linux - Hardware 0 01-26-2006 11:27 AM
SiS on board sound stops working when upgrading alsa? + kernel question? mr.gizm0 Linux - Software 3 03-21-2005 10:46 AM
Aureal AU8810 Sound Card not working (using ALSA with Kernel 2.6.5-rc2) linchip Linux - Hardware 30 10-19-2004 02:16 PM
Sound not working with Kernel 2.6, ALSA, FC1, C-media 8738 crdiscoverer Linux - Hardware 5 03-01-2004 02:13 AM
Kernel 2.6.test11, alsa & sblive. Sound isn't working cybrjackle Slackware 4 12-07-2003 03:40 AM

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

All times are GMT -5. The time now is 11:24 PM.

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