View previous topic :: View next topic |
Author |
Message |
Turr-I-Can Tux's lil' helper
Joined: 15 Jan 2003 Posts: 86
|
Posted: Mon Jan 20, 2003 9:15 pm Post subject: sound probs with alsa ?? |
|
|
I installed gentoo, at the moment I'm trying to configure my sound with alsa. I read the manual and did the necessary steps. But with aplay .....wav I get nothing. But I don't know where the problem could be:
- Kernel/Sound:
Sound card support as module, rest no
kernel 2.4.20 gentoo sources
- my onboard soundcard:
C-Media CMI8738 -> snd-cmipci
- my /etc/modules.d/alsa ALSA portion
Quote: |
alias char-major-116 snd
options snd snd_major=116 snd_cards_limit=1
# 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-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
alias snd-card-0 snd-cmipci
alias snd-card-1 snd-cmipci
alias snd-card-2 snd-cmipci
alias snd-card-3 snd-cmipci
alias snd-card-4 snd-cmipci
alias snd-card-5 snd-cmipci
alias snd-card-6 snd-cmipci
alias snd-card-7 snd-cmipci
##
|
- my /etc/devfsd.conf
Quote: | # ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660
|
- amixer:
Quote: |
SPAWN root # amixer set Master 100 unmute
amixer: Unknown playback setup 'unmute'..
SPAWN root # amixer set PCM 100 unmute
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on] Capture [off]
Front Right: Playback 31 [100%] [on] Capture [off]
|
Any help would be appreciated. I don't know where to look for the error. Thx. |
|
Back to top |
|
|
Shades3D n00b
Joined: 25 Dec 2002 Posts: 39
|
Posted: Mon Jan 20, 2003 9:25 pm Post subject: |
|
|
emerge alsa-utils
then use alsamixer, its a console style gui for the amixer program. You need to have Master and PCM both unmuted and turned up in order for sound to be produced. _________________ (Insert witty and shady signature here) |
|
Back to top |
|
|
Turr-I-Can Tux's lil' helper
Joined: 15 Jan 2003 Posts: 86
|
Posted: Mon Jan 20, 2003 9:33 pm Post subject: |
|
|
I followed the manual and did the steps you mentioned. Doing this I got the following error:
SPAWN root # amixer set Master 100 unmute
amixer: Unknown playback setup 'unmute'..
My hardware is okay, using Suse 8.1 2.4.19 sound is fine. |
|
Back to top |
|
|
Shades3D n00b
Joined: 25 Dec 2002 Posts: 39
|
Posted: Mon Jan 20, 2003 9:49 pm Post subject: |
|
|
alsamixer, not amixer. Amixer is the hard way to do it :p
alsamixer is a console gui for amixer and is a bit easier to use. _________________ (Insert witty and shady signature here) |
|
Back to top |
|
|
Turr-I-Can Tux's lil' helper
Joined: 15 Jan 2003 Posts: 86
|
Posted: Mon Jan 20, 2003 10:00 pm Post subject: |
|
|
I tried alsamixer too but there's no change. |
|
Back to top |
|
|
Turr-I-Can Tux's lil' helper
Joined: 15 Jan 2003 Posts: 86
|
Posted: Tue Jan 21, 2003 7:49 am Post subject: |
|
|
I just checked the .config of the 2.4.19-Suse Kernel. I found:
Quote: |
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_SND_DEBUG=y
CONFIG_SND_DEBUG_MEMORY=y
# CONFIG_SND_DEBUG_DETECT is not set
|
I checked the .config of the 2.4.20 gentoo kernel and didn't find these entries. Where can I find the alsa options |
|
Back to top |
|
|
Turr-I-Can Tux's lil' helper
Joined: 15 Jan 2003 Posts: 86
|
Posted: Tue Jan 21, 2003 10:44 am Post subject: |
|
|
Okay, it works now. Here's what I did
emerge unmerge the alsa stuff
rm modules.d/alsa
Repeated every step, now it works - don't know what the problem was.
Anyway thx for the help. |
|
Back to top |
|
|
giant Tux's lil' helper
Joined: 01 Aug 2002 Posts: 107
|
Posted: Tue Jan 21, 2003 1:17 pm Post subject: |
|
|
be aware that the newest alsa does not use the snd_ prefix in the config anymore.
I was at first a bit stumped when I updated /re-emerged alsa and my soundcard wasn't found anymore.
I followed the alsa install guide from the user docs.
http://www.gentoo.org/doc/en/alsa-guide.xml
Now this is how /etc/modules.d/alsa should look like :
Quote: |
# ALSA portion
alias char-major-116 snd
options snd major=116 cards_limit=1
# OSS/Free portion
alias char-major-14 soundcore
|
And this is wrong in the guide if you are using
Quote: |
* media-sound/alsa-driver
Latest version available: 0.9.0_rc6
|
Quote: |
# ALSA portion
alias char-major-116 snd
options snd snd_major=116 snd_cards_limit=1
# OSS/Free portion
alias char-major-14 soundcore
|
Just erase the snd_ prefix and everything works again |
|
Back to top |
|
|
|