LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Reply
  Search this Thread
Old 02-28-2004, 04:12 PM   #1
crdiscoverer
LQ Newbie
 
Registered: Nov 2003
Posts: 16

Rep: Reputation: 0
Sound not working with Kernel 2.6, ALSA, FC1, C-media 8738


I compiled Kernel 2.6.3 with the ALSA module and c-media 8738 chip support, under Fedora Core 1. Everything is working great except for the sound. With the old kernel (2.4) I had sound via OSS. I have not touched anything about sound since the new kernel was installed. There is a little GStreamer applet in my preferences menu with options to change from OSS to ALSA. If I leave OSS, there is this error in audio apps like rhythmbox: "osscommon: Cannot access /dev/dsp, does it exist ?", with ALSA instead I get no errors and audio seems to play, but there is no sound. When I click the volume tray icon (Gnome) I get this "Couldn't open mixer device /dev/sound/mixer", in preferences there is not a single audio channel to choose. I downloaded the "alsaconf" tool, but it didn't detect the card (I don't know if it should be run in a special folder, I executed it in /root). I found the soundcard driver in this location "/lib/modules/2.6.3/kernel/sound/pci/snd-cmipci.ko". The "alsamixer" command also displays an error: "alsamixer: function snd_ctl_open failed for default: No such device". Tell me if you need this files: "modprobe.conf", "modules.conf", "modprobe.conf.dist". Thanks in advance!
 
Old 02-29-2004, 12:26 PM   #2
TallGuy
LQ Newbie
 
Registered: Jul 2003
Posts: 14

Rep: Reputation: 0
well I had the very same problem with the very same sound system on an Asus M/B when I first tried out a 2.6 kernel with Suse 9. It turned out that the module was not loaded at boot. I fixed it through yast - just ordered the module by that name to be loaded on boot. I don't know how these things are done in FC though and the startup scripts are quite different in Suse. Try and find how you can pass this option to load the module on boot cause 99,9% that's your problem right there.

...or you could re-compile the kernel with the module compiled in the kernel.
 
Old 02-29-2004, 05:36 PM   #3
fearofcarpet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: Gentoo, FC4, FreeBSD
Posts: 34

Rep: Reputation: 15
Could you post the output of `lsmod` and the contents of 'modprobe.conf' ?

I had this exact same problem moving from the 2.4 to 2.6 kernels with FC1 on an ASUS board with a cmedia pci driver. It was in fact resolved by loading the correct modules... I fixed it by trial and error using `modprobe` and restarting X. OSS utlimately ended up working for me.
 
Old 02-29-2004, 05:52 PM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Download the alsa-driver package from the Alsa homepage and extract it. Run the snddevices script as root to create the necessary device nodes. Then try loading the sound modules.

You could also grab the script here.


Håkan
 
Old 02-29-2004, 10:41 PM   #5
crdiscoverer
LQ Newbie
 
Registered: Nov 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Some sound, but still not there yet...

I recompiled the kernel with ALSA included (not module), and I also put in OSS support. Now I have a half-working sound system. MP3's and OGG's play normally in any audio player, but I get no sound for system events (login, logout, etc) and also when I play a WAV file an error displays that it is a RIFF file, so I rename it and then I get the inverse of that (this RIFF appears to be a WAV). I think those two issues are related anyway, I have not tried to use an MP3 for a system event. It seems that sound is working through OSS and not ALSA. I really don't care what sound system I'm using in order to get sound, but it is not quite right yet. Here are my hardware files for you to check.

This was my original modprobe.conf :

alias usb-controller ehci-hcd
alias eth0 via-rhine

then I added some lines I found researching the ALSA website (not sure if they helped) :

alias usb-controller ehci-hcd
alias eth0 via-rhine
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-cmipci
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

This is "lsmod" output : (sorry, cannot get it tabbed right)

Module Size Used by
ide_cd 41988 0
cdrom 38752 1 ide_cd
ipv6 248128 8
lp 11912 0
autofs 17152 0
via_rhine 21256 0
mii 5056 1 via_rhine
floppy 58900 0
sg 38368 0
scsi_mod 119224 1 sg
parport_pc 25340 1
parport 44136 2 lp,parport_pc
ehci_hcd 24836 0
usbcore 104028 3 ehci_hcd
thermal 13648 0
processor 13412 1 thermal
fan 3980 0
button 6104 0
ext3 119464 2
jbd 61016 1 ext3

I don't understand a thing of that, but if you do please let me know. Any other file you need, just ask. I'm going to get the packages hw-tph said meanwhile. Thanks again.
 
Old 03-01-2004, 02:13 AM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
In order for several different applications to be able to play sounds at the same time you need a sound server such as eSound (Enlightenment/Gnome standard) or aRTs (KDE standard). The sound server claims the sound card and acts as a software mixer so you can play back mp3's and have system sounds at the same time.

If you already get the modules to load and work you shouldn't run the script I linked to above. I did that assuming that you were having the very same problems you wrote about in your original post.


Håkan
 
  


Reply



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
Sound errors in mandrake 10 - c-media 8738 onboard card d3viant Mandriva 69 11-08-2004 03:09 PM
C-media 8738 And 5.1 sound problem Wynand1 Linux - Hardware 1 06-04-2004 12:02 AM
No sound with C-Media 8738 PCI in Mandrake 10.0 dude_a_b_c Mandriva 12 03-31-2004 11:08 PM
kernel 2.6.4 c-media 8738 (5.1ch) alsa problem bashrc2 Slackware 4 03-19-2004 01:25 AM
C-Media 8738 Integ. Sound Card Swene Linux - Hardware 1 04-15-2002 04:32 PM

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

All times are GMT -5. The time now is 12:01 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