View previous topic :: View next topic |
Author |
Message |
hocmin n00b
Joined: 20 Jun 2003 Posts: 40
|
Posted: Sat Oct 16, 2004 1:30 am Post subject: Problems with cmpci and cmipci |
|
|
Having problems getting sound to work on my computer. Here are the facts. I've got a motherboard with onboard C-Media audio. I get this from cat /proc/asound/cards :
Quote: |
0 [CMI8738MC6 ]: CMI8738-MC6 - C-Media PCI CMI8738-MC6
C-Media PCI CMI8738-MC6 (model 55) at 0xd400, irq 11
|
On boot, having never touched any sound stuff after a fresh install, I get about 10 of these:
Quote: |
... can't load module cmpci
missing kernel or user mode driver cmpci
|
This corresponds to about 10 entries of this when I run dmesg. These are the only lines in dmesg that have "cmpci".
Quote: |
cmpci: version $Revision: 6.16 $ time 05:34:37 Oct 7 2004
|
I followed the ALSA Guide in the documentation section. ALSA's Sound Matrix website said that I should be using "cmipci" and not "cmpci". So I used ALSA_CARDS="cmipci", emerged all the tools, edited /etc/modules.d/alsa to have " alias snd-card-0 snd-cmipci", and ran modules-update. The only time I ran into a problem was running the amixer commands:
Quote: |
amixer: Unknown playback setup 'unmute'..
|
Wasn't sure what this meant, but either way, I'm still getting no sound. I'm using Gnome, and the speaker icon on the upper righthand corner is still x-ed out. Clicking it just gives me "Couldn't open mixer device /dev/sound/mixer". Plus I still get the error with cmpci.
I'm really confused and not sure what to do. What is cmpci and what the heck is trying to load it (I've always had it, since I installed gentoo)? Is there something I'm missing? what should I do next?
Thanks for any help. |
|
Back to top |
|
|
hulmeman Apprentice
Joined: 02 Jul 2002 Posts: 184 Location: Duchy of Lancaster, England.
|
Posted: Sat Oct 16, 2004 2:39 am Post subject: |
|
|
What does 'lsmod' tell you? Using alsa, you should get someting like this|:
Code: | # lsmod
snd_cmipci 34852 0
snd_opl3_lib 11264 1 snd_cmipci
snd_hwdep 9988 1 snd_opl3_lib
gameport 5120 1 snd_cmipci
snd_mpu401_uart 8448 1 snd_cmipci
snd_rawmidi 26276 1 snd_mpu401_uart
snd_seq_oss 36224 0
snd_seq_midi_event 8576 1 snd_seq_oss
snd_seq 56592 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 8584 4 snd_opl3_lib,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss 54824 0
snd_pcm 98436 2 snd_cmipci,snd_pcm_oss
snd_page_alloc 11784 1 snd_pcm
snd_timer 27524 3 snd_opl3_lib,snd_seq,snd_pcm
snd_mixer_oss 19456 1 snd_pcm_oss
snd 57572 13 snd_cmipci,snd_opl3_lib, snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss |
If you've got this, then you're OK. If not, do:
Code: | modprobe snd_cmipci
/etc/init.d/alsasound restart
aplay /usr/kde/X.Y/share/sounds/pop.wav
|
CMIPCI does not use; 'amixer set Master 100 unmute', so do; 'amixer set Master 100' instead.
If your system is looking for 'cmpci', then I suspect you've inadvertantly put this in one of the module related files in /etc, but its not needed, so shouldn't stop sound from working. Better than using amixer to set sound parameters, 'emerge gnome-alsamixer' is a better thing to do, then: 'gnome-alsamixer'
With regard to '/dev/sound/mixer', you will only get these devices if you have both enabled 'oss emulation' in the kernel, and done 'emerge alsa-oss'. Alsa devices are in '/dev/snd', whereas alsa-oss devices are in '/dev/sound', some apps use native alsa, and some use alsa-oss, so you need both really. If you have all these devices, check whether '/dev/sound/*' exist, and their permissions, should be like this:
Code: | # ls -l /dev/sound
total 0
crw-rw---- 1 root audio 14, 12 Oct 14 22:27 adsp
crw-rw---- 1 root audio 14, 4 Oct 14 22:27 audio
crw-rw---- 1 root audio 14, 3 Oct 14 22:27 dsp
crw-rw---- 1 root audio 14, 0 Oct 14 22:27 mixer
crw-rw---- 1 root audio 14, 1 Oct 14 22:27 sequencer
crw-rw---- 1 root audio 14, 8 Oct 14 22:27 sequencer2 |
If your permissions are like this:
Code: | # ls -l /dev/sound
total 0
crw------- 1 root audio 14, 12 Oct 14 22:27 adsp
crw------- 1 root audio 14, 4 Oct 14 22:27 audio
crw------- 1 root audio 14, 3 Oct 14 22:27 dsp
crw------- 1 root audio 14, 0 Oct 14 22:27 mixer
crw------- 1 root audio 14, 1 Oct 14 22:27 sequencer
crw------- 1 root audio 14, 8 Oct 14 22:27 sequencer2 |
or this:
Code: | crw------- 1 root root 14, 12 Oct 14 22:27 adsp
crw------- 1 root root 14, 4 Oct 14 22:27 audio
crw------- 1 root root 14, 3 Oct 14 22:27 dsp
crw------- 1 root root 14, 0 Oct 14 22:27 mixer
crw------- 1 root root 14, 1 Oct 14 22:27 sequencer
crw------- 1 root root 14, 8 Oct 14 22:27 sequencer2 |
Then your sound devices are only accesible to root. So, if you're using 'devfs', you need to edit the permissions in '/etc/devfsd.conf' (or if you're using udev, edit '/etc/udev/permissions.d/50-udev.permissions') to:
For devfs:
Code: | REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660 |
For udev:
Code: | sound/*:root:audio:0660
snd/*:root:audio:0660 |
Then do:
/etc/init.d/alsasound restart
aplay /usr/kde/X.Y/share/sounds/pop.wav
Baz |
|
Back to top |
|
|
|
|
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
|
|