LinuxQuestions.org
Register a domain and help support LQ
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 07-21-2004, 12:42 AM   #1
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Rep: Reputation: 30
2.6.7 kernel and alsa problems.


Edit: Slackware 10.0 (current), kernel 2.6.7, MSI KT4 Ultra Motherboard, 256MB RAM, AMD 1800XP+. Don't really need to know a lot about hardware specs for this one I don't think.. but doesn't hurt
Alsa driver 1.0.5a-i486-2
alsa lib 1.0.5-i486-1
alsa oss 1.0.5-i486-1
alsa utils 1.0.5-i486-1

Using a C-Media 8738 Soundcard with it compiled as a module in the kernel.
Compiling it built in just wasn't working.
During boot, I get an error saying no sound cards detected. I then login as root and alsaconf, and it *does* detect the card. When compiled built in I couldn't get it to (should I try again?). It then asks if I want it to write to modprobe.conf, so I say yes and it sets default volumes etc.. then no sound!

I tried restarting hoping it would probe it on boot, but no luck. Is there somewhere I'm going wrong? Here's my lspci | grep media.
Code:
root@floods[box]:/home/floods# lspci | grep media
00:0c.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)

Last edited by FLOODS; 07-21-2004 at 01:32 AM.
 
Old 07-21-2004, 01:05 AM   #2
fireicer
LQ Newbie
 
Registered: Jun 2004
Location: here
Distribution: redhat and fedora core
Posts: 24

Rep: Reputation: 15
what kernel are you using i gather it is 2.6.x if so i think your problem lies in the modprobe.conf

or there could be a bug in the driver
what you can do though is check that in modprobe.conf you have the correct implamentation for your sound to load during the module booting point here check for this if it dont exist add it and try it

install sound-slot-0 /sbin/modprobe --ignore-install sound-slot-0 && { /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1; /bin/true; }

then add this line in the remove section

remove sound-slot-0 { /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1; /bin/true; }; /sbin/modprobe -r --ignore-remove sound-slot-0

then add this line just before the end of file I.e after everything else has loaded if you have more aliase's aftter all this then add it before you dont always get aliase's at the bottom of modprobe.conf but it has been known

install sound-slot-* /sbin/modprobe snd-card-${MODPROBE_MODULE##sound[_-]slot[_-]}

if this don't work or you already have these lines in ther then get your volume settings in kde 3.2.2 this is like this Kmenu->sound&videoKmix then try your sound do this any way you wish i seen as i need to save the settings go to the Kde control centre select sound & multimedia then test sound then if all is ok i save current volume settings.

need more info if its anything else i think
 
Old 07-21-2004, 01:14 AM   #3
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Original Poster
Rep: Reputation: 30
not sure if it's a modprobe.conf problem or not, but here's mine.
Code:
alias char-major-195* nvidia
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.5 ---
alias char-major-116 snd
alias char-major-14 soundcore
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
alias snd-card-0 snd-cmipci
alias sound-slot-0 snd-cmipci
# --- END: Generated by ALSACONF, do not edit. ---
 
Old 07-21-2004, 01:45 AM   #4
fireicer
LQ Newbie
 
Registered: Jun 2004
Location: here
Distribution: redhat and fedora core
Posts: 24

Rep: Reputation: 15
the drivers are there but i had to do the install lines at the bottom of all that. they had to be in there as you have posted then i had to add my install /...//sbin modprobe bits to get it to load. what are you using redhat fedora mandrake susie what.

you might have a conflict with anouther driver. check those long install lines above if you dont have them i dont think it will hurt puting them in
is there any sound modules for other sound cards loading before your alsa module that can cause problems if so dissable them

make sure all your irq settings are ok i had problems on slackware back in 98 same-ish thing it was the ISA soundcard conflicting with a gameport addin card screwed up me irq 5 and 7 piging thing. never did sort that out
 
Old 07-21-2004, 01:49 AM   #5
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Original Poster
Rep: Reputation: 30
using Slackware 10 and it's not an IRQ problem.
I should have also mentioned that sound works in the default 2.4.22 kernel. I *had* sound in the 2.6.6 kernel I rolled myself, and then I think I re-did it trying to fix other problems and then this occurred. Figures, so I decided to go ahead and jump to the 2.6.7 kernel.
 
Old 07-21-2004, 01:57 AM   #6
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 30
If it is compiled in to the kernel the alsaconf part is not needed because it tells the kernel what module to load. Alsaconf also does not detect my card when compiled in but it still works. Also have you adjested your volumes via alsamixer?

-Joey

Last edited by Joey.Dale; 07-21-2004 at 02:00 AM.
 
Old 07-21-2004, 02:02 AM   #7
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Original Poster
Rep: Reputation: 30
I'll try compiling again and seeing how it goes.

BTW, nice name Joey. I'm Joey.

-Joey
 
Old 07-21-2004, 02:06 AM   #8
fireicer
LQ Newbie
 
Registered: Jun 2004
Location: here
Distribution: redhat and fedora core
Posts: 24

Rep: Reputation: 15
now that is wired

have you checked your compile configuraation there is a section in there for old drivers which is depricated i clicked that by accident last week and i have the intel ich4 ac97 sound crashed it never heard a thing yet it found the sound card on detection but while using my desktop it said cpu overload sound faild.
took out loads of soundcards i did not need/have then recompiled and it seem's to work know other than that i have no idea.
check the system.map file that goes into your boot bit see if you have the drivers maped for loading in there you never know if not check the compile thing try compiling into kernel rather than module.
 
Old 07-21-2004, 11:51 AM   #9
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Original Poster
Rep: Reputation: 30
Tried compiling with cm8738 built in and it won't even detect it in alsaconf then, and the only deprecated drivers I found were stuff for OSS, and OSS can work fine.

Also, after rebooting and doing an alsaconf and it edits my modprobe.conf, I still can't actually hear anything using alsa, and alsactl and alsamixer bring up no sound cards detected.
 
Old 07-21-2004, 06:38 PM   #10
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Original Poster
Rep: Reputation: 30
Update. Here's my lsmod
Code:
root@floods[box]:/home/floods# lsmod
Module                  Size  Used by
snd_pcm_oss            48648  - 
snd_mixer_oss          16900  - 
via_agp                 6596  - 
snd_cmipci             29348  - 
snd_pcm                84296  - 
snd_page_alloc          8748  - 
snd_opl3_lib            8964  - 
snd_hwdep               6692  - 
snd_mpu401_uart         5956  - 
snd_rawmidi            19908  - 
nvidia               4817748  - 
ide_scsi               13864  - 
scsi_mod               64800  - 
agpgart                27176  -
So my card is loaded etc.. Just alsa is screwing me around I guess.
 
Old 07-21-2004, 09:48 PM   #11
fireicer
LQ Newbie
 
Registered: Jun 2004
Location: here
Distribution: redhat and fedora core
Posts: 24

Rep: Reputation: 15
ok well your lsmod if it is acurate is showing nothing using nothing in the used by area it should show what it is bound to.

you have got a required dependency missing there is something that all that stuff there is depending on i.e. the main drive it is not loading.

for an example you have sound device C-Media 8738 which i believe to be AC97 audio on the mainboard that means that you are going to have to compile kernel again but this time make sure you have drives->sound->pci->CMI-8738 and the VIA bridge driver a bit further down if you have compiled these make sure they did not error during the compile process the you have to make sure that the modules is being probed and loaded in the modprobe.conf.

NOTE: as you have psoted above the section in your modprobe.conf small rearrangement might work it is good to try it

alias snd-card-0 snd-cmipci
alias sound-slot-0 snd-cmipci

put these first before it sets the sound-service- bla bla bits you may have found a bug in the driver if all this dont work. there maybe a dependecy or even a conflict to some other driver

here is a modprobe.conf that you can study to see if you can spot the culprit conflict and or load fail.

http://thomer.com/linux/modprobe.conf

look at the way the sound is called up in this file as you can see the driver mod is loaded then the driver sound service is loaded then installed then removed for application compatability stuff.

check this out see what it reports this is what it reports on my'n.

# cat /proc/asound/cards

0 [I82801DBICH4 ]: ICH - Intel 82801DB-ICH4
Intel 82801DB-ICH4 at 0xb0000c00, irq 17
this is the way you test to see if the alsa is present in your system so go ahead and put it into the console see what it says.

if it reports your sound card correctly then try this line in the file /etc/rc.local

add this to the bottom of the file:


/bin/aumix-minimal -f /etc/aumixrc -L >/dev/null 2>&1;

it sets the aumix to write to etc/aumixrc with the paramiters usefull to the device when called.
 
Old 07-23-2004, 09:47 AM   #12
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Original Poster
Rep: Reputation: 30
Well, I was able to get it working.
For some reason, I had to set sound as a module, not built in.
Is this common, or is it just something with me?
 
Old 07-23-2004, 03:49 PM   #13
fireicer
LQ Newbie
 
Registered: Jun 2004
Location: here
Distribution: redhat and fedora core
Posts: 24

Rep: Reputation: 15
yes

not really my sound card works as a module aswell as compiled into the kernel.

maybe it has something to do with your driver module. you may have found a bug in the code. seems like when the driver was made and tested it was intended to be used as a module and hence it was not developed for building into the kernel.

report it as a bug to kernel.org see if they think it should be sorted or not.
 
  


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
Alsa problems, 2.6 kernel Macky Slackware 5 11-10-2005 10:57 PM
problems alsa 1.0.3 kernel 2.6.4 no sound phoenix Linux - Software 7 04-05-2004 10:34 AM
Problems with ALSA in Kernel 2.6.3 jironimo Linux - Software 7 03-14-2004 11:39 PM
Nforce sound problems with ALSA and 2.6 Kernel! britishnemesis Linux - Hardware 4 11-29-2003 09:47 PM
Could upgrading kernel 2.4.20-> 2.4.22 help w alsa and nvidia problems? wahwah Linux - Newbie 1 11-15-2003 06:29 PM


All times are GMT -5. The time now is 01:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration