Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound Problem With C-Media and 2.4 Kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Thu Mar 10, 2005 3:03 am    Post subject: Sound Problem With C-Media and 2.4 Kernel Reply with quote

Well before you start winning why I dont just use kernel 2.6 I would like to make clear that Ive never compiled a kernel before so I'm afraid of breaking my system. Well I have a C-media sound card and I cant make it work on gentoo so I got no sound ive tryed to emerge alsa but it didnt work. I found no feed back on the docs nor in google so if you managed it to work and can point me a direction I will be very gratefull.
Thanks in advance.
Back to top
View user's profile Send private message
leftbas
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2003
Posts: 101
Location: Pasadena, Ca

PostPosted: Thu Mar 10, 2005 5:21 am    Post subject: Re: Sound Problem With C-Media and 2.4 Kernel Reply with quote

Maragato wrote:
Well before you start winning why I dont just use kernel 2.6...


Actually, that was the first thing out of my mouth, so to speak. You know, everybody makes such a big deal out of 'compiling the kernel'. But truth be told, it's really pretty simple, especially if you use genkernel, which I recommend for all noobs. I know, I'm still a noob, too, but I've compiled several kernels now, a couple of 2.4.x and several 2.6.x. Now I'm using 2.6.10 r6, and I love it. It solved a bunch of problems, like USB issues, and my system boots a lot faster. And since ALSA support is built-in, setting up audio is a snap.

And you don't have to worry about breaking your system. As long as you don't delete anything from your current kernel, including the references to it in your bootloader, you can always roll back to whatever version of 2.4 you have right now.

So go for it! Dive into the brave new world of Linux kernel compiling. It's a great learning experience, and pretty much foolproof. I should know, even I could do it.

Good luck :lol:
_________________
"In retrospect, everything is funny."
-- anonymous
Back to top
View user's profile Send private message
leftbas
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2003
Posts: 101
Location: Pasadena, Ca

PostPosted: Thu Mar 10, 2005 5:24 am    Post subject: Re: Sound Problem With C-Media and 2.4 Kernel Reply with quote

Maragato wrote:
Well before you start winning why I dont just use kernel 2.6...


Actually, that was the first thing out of my mouth, so to speak. You know, everybody makes such a big deal out of 'compiling the kernel'. But truth be told, it's really pretty simple, especially if you use genkernel, which I recommend for all noobs. I know, I'm still a noob, too, but I've compiled several kernels now, a couple of 2.4.x and several 2.6.x. Now I'm using 2.6.10 r6, and I love it. It solved a bunch of problems, like USB issues, and my system boots a lot faster.

And you don't have to worry about breaking your system. As long as you don't delete anything from your current kernel, including the references to it in your bootloader, you can always roll back to whatever version of 2.4 you have right now.

So go for it! Dive into the brave new world of Linux kernel compiling. It's a great learning experience, and pretty much foolproof. I should know, even I could do it.

Good luck :lol:
_________________
"In retrospect, everything is funny."
-- anonymous
Back to top
View user's profile Send private message
noergeli
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 205
Location: Hamburg, Gemany

PostPosted: Thu Mar 10, 2005 10:52 am    Post subject: Reply with quote

hello,
as leftbas said, there is no reason to be afraid. It should work with 2.4 kernels nevertheless. I have a terratec card, that is c-media based and it works nice.
It's hard to guess where your problem is. Is sound support activated in kernel? Are all required alsa-packages installed? Is alsa configered correct and started and the required modules loaded? Are the channels unmuted in mixer?
So, make sure you followed the gentoo alsa-guide and tell what problems you run in. This will make it easier to help you.
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Thu Mar 10, 2005 1:56 pm    Post subject: Reply with quote

is this the tutorial for kernel upgrading? http://www.gentoo.org/doc/en/kernel-upgrade.xml guys at #gentoo said that it wouldnt help me cause it will use my old configs from 2.4
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Thu Mar 10, 2005 2:14 pm    Post subject: Reply with quote

This is my /etc/make.conf
Code:

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/"
[color=red]ALSA_CARDS="cmipci"[/color]



This is my /etc/modules.d/alsa
Code:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
 alias snd-card-0 snd-cmipci

## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - 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
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1


Am I missing something?

noageli how did you managed to make your card work with 2.4?
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Fri Mar 11, 2005 4:39 am    Post subject: Reply with quote

Oki xmms is working I but things like licq and amsn make no sound, any suggestions? Im using OSS as output plugin.
Back to top
View user's profile Send private message
noergeli
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 205
Location: Hamburg, Gemany

PostPosted: Fri Mar 11, 2005 3:17 pm    Post subject: Reply with quote

Your config file looks good, just one thing: for OSS compatibility uncomment
Code:
alias sound-slot-0 snd-card-0

Note that the c-media does not do hardwaremixing. That means only one app can access your sounddevice, for example xmms may block other apps while playing. Software mixing can be done by using a soundserver like arts or esd (for apps that can use it) or the dmix-plugin for apps that use alsa (search for dmix, there's a howto in Tips & Tricks section).

For the kernel thing: the only sound-related differance between 2.4 and 2.6 is that the alsa-drivers are included in 2.6. But you can also use the external packages with 2.6. It will install the same drivers into the same directories, and i suppose they are the same you are using now.
Switching to 2.6 might give you other advantages, so if you want to do this i don't see any problem with the guide you linked to. And like leftbas said, as long as you keep your 2.4 files you can safely go back.
If you decide to try a 2.6 kernel and you want to stay with the external alsa-packages make sure to only activate core sound-support in kernel (that's also for 2.4, otherwise the kernels drivers will be used) and remerge alsa-drivers like described in point 6 of the upgrade-guide (Reinstalling external modules).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum