LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-05-2004, 02:53 PM   #1
Godsmacker777
Member
 
Registered: Oct 2004
Posts: 52

Rep: Reputation: 15
CM8738 PCI Gentoo 2.6 kernel alsa?


Hey all...

I have just set up gentoo using the 2.6 kernel and gnome 2.4. I'm a bit of a newbie, so I've been slowly working through the config/tweaking process. Sound isn't configured properly, and I'm not really sure what to do. I have spent quite a lot of time searching through the various thread archives with no such luck. I have made attempts at piecing together the process using the collections of information that I've found. I'm guessing that I am missing something pretty simple which is screwing up everything else. Anyone who can lend a hand is more than welcome!

Details...

I have some sort of random pci sound card. It's running the cmi8738cm6 chip.
Onboard sound is disabled in bios.
Running Gentoo with the 2.6 kernel (2.6.8-gentoo-r3 I believe?) and Gnome 2.4
The sound card (and alsa) are compiled into the kernel.
I have emerged alsa and alsa-utils.
The Volume control on the gnome desktop (upper right hand corner) is x-ed out. I get and error: Couldn't open mixer device /dev/sound/mixer when trying to open it.
I have modified a few of the various alsa config files based on other people's how tos and what not...

If anyone would like me to post more data just let me know.

Any light shed on this is greatly appreciated.
 
Old 10-05-2004, 05:26 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Hi Godsmacker777, welcome to lq. Are they compiled as modules or are they static in the kernel. The very first suggestion at the alsa troubleshooter states

Quote:
1) Check that the ALSA drivers are compiled as modules
Make sure you have installed ALSA as modules, and not compiled into the kernel.

ALSA fails for all sorts of reasons when compiled into the kernel (this may no longer be true for kernels after v2.6.5).

Anything that mentions sound in the kernel config, even if it is not directly to do with ALSA, set it's option to M if you can.

If you compile you own kernel: when you configure the kernel, make sure you see M (for module) and not * (compiled into the kernel).
You can find more here.

http://alsa.opensrc.org/index.php?page=TroubleShooting

There is also some useful info here.

http://www.alsa-project.org/alsa-doc...&module=cmipci

good luck.
 
Old 10-05-2004, 10:24 PM   #3
Godsmacker777
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks for the info!

It was really helpful. I dunno what I was looking through, but I definately wasn't on the official alsa site. I've done so much searching and reading about linux stuff in the past few days, I'm not surprised. hah.

Anyway. I didn't realize the support needed to be compiled as modules and not directly into the kernel. I made those changes and recompiled the kernel. I continued through the alsa troubleshooter; everything was kosher till #5.

5) Check that you have the right sound devices
Run alsamixer as root. If you get

alsamixer: function snd_ctl_open failed for default: No such device

the right device special files in /dev/ might be missing. Run ls /dev/snd/ and make sure there are several entries there.

If the directory does not exist, or it is empty, use the ALSA snddevices script or similar to create it and the device special files in it.


My directory was empty. There was mention of running that script, though I couldn't figure out how to run it, nor could I find any info on it. Anyone familiar with the snddevice script?

that seems to be the problem. b/c in gnome i get an error: Couldn't open mixer device /dev/sound/mixer

as I mentioned before.

Anyway...Thanks :-P
 
Old 10-06-2004, 08:39 AM   #4
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Run ./snddevices from the same directory that you ran ./configure, make, and make install, from.
good luck.
 
Old 10-06-2004, 10:11 AM   #5
Godsmacker777
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
I'm running gentoo, which uses portage...so all of the alsa stuff was compiled and installed using "emerge alsa"

Should I be looking for the directory alsa was installed into?

I know some of these questions seem lame, but it's sometimes difficult to port over instructions from another distro.

Thanks
 
Old 10-06-2004, 11:44 AM   #6
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Here is something useful for you specifically.

http://www.gentoo.org/doc/en/alsa-guide.xml

good luck.
 
Old 10-06-2004, 08:36 PM   #7
Godsmacker777
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
hey all

thank you for your help. I appreciate the effort.

I (finally) solved the problem. I'm still not sure exactly what the problem was...but it was solved by first, creating the devices in /dev/sound/ that gnome was looking for, and second, me properly copying over the recompiled kernel image. I had made a mistake by copying the newly compiled kernel as bzImage and not using the file I had listed in grub.conf...gotta love being a noobie :-P

I'm still having a few other problems, one of which seems to have nearly everyone I have talked to, stumped. I'll start a new thread on this topic later.

Thanks again!
 
  


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
C-Media CM8738 6-channel PCI soundcard, setting the number of speakers under FC3 Chutney Linux - Hardware 2 12-28-2004 10:19 AM
Gentoo + 2.6.6 Kernel + Alsa + Gaim = No work ?? PGDubbin Linux - Software 7 05-14-2004 01:26 PM
C-Media (cm8738) sound card & alsa problems BBQ_Matt Linux - Hardware 3 02-05-2004 03:39 AM
Mandrake 9.2 Alsa not working C-Media CM8738 jrippon Linux - Hardware 3 11-08-2003 11:16 PM
how do i enable 4CH sound with cm8738 with ALSA on slack9.1 hypermegachi Linux - Hardware 2 10-29-2003 04:10 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration