Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa Configuration Problems [SOLVED]
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
krlloyd
n00b
n00b


Joined: 30 May 2006
Posts: 44

PostPosted: Tue Jun 05, 2007 7:49 pm    Post subject: Alsa Configuration Problems [SOLVED] Reply with quote

I am using this guide for my sound card configuration http://www.gentoo.org/doc/en/alsa-guide.xml

System Info
kernel: 2.6.20-gentoo-r8 -AMD64 build
i did NOT use genkernel

My sound card is: ( lspci )
06:0d.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)

I am using the follow driver: emu10k1

I selected all the options in "menuconfig" to match what was in the guide. I recompiled the new kernel and installed it and ran the following command per the guides instructions:


# cd /usr/src/linux
# grep SOUND .config
(1. is true)
CONFIG_SOUND=y
2. is true)
CONFIG_SOUND_PRIME is not set
well this is what i get:
CONFIG_SOUND=m
# CONFIG_SOUND_PRIME is not set


# grep SND .config
(and 3. is true)
CONFIG_SND is not set

my CONFIG_SND is = M

So when i try to run alsaconf it can't find my sound card. What are some other things that i need to be checking?


Last edited by krlloyd on Wed Jun 06, 2007 3:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gentoo Bob
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 129
Location: Sitting behind a PC in Indiana

PostPosted: Tue Jun 05, 2007 8:38 pm    Post subject: Reply with quote

sounds like you configured your soundcard with a module.

specify your sound card module "emu10k1" in the /etc/modules.autoload.d/kernel-2.6 config file.

reboot your system, run alsaconf again, see if it detects it then.

maybe that might help.
_________________
AMD 64 X2 4400+ on ECS nForce4
2GB DDR, 250GB SATA, GeForce 5500FX 256MB DDR2 PCI-E
---and----
Dell Inspiron E1505 Laptop
Intel Centrino Duo, 2GB RAM, 80GB SATA HDD, Intel3490 ABG Wireless,CDRW
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Jun 05, 2007 9:06 pm    Post subject: Reply with quote

Ignore alsaconf. alsamixer is what matters.

I have the same lspci result. Put in /etc/modules.d/alsa
Code:
# See http://www.alsa-project.org/alsa-doc/doc-php/template.php?module=emu10k1

# 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" (to recreate /etc/modules.conf).
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.

#  ALSA portion
alias snd-card-0 snd-emu10k1
#  OSS/Free portion
alias sound-slot-0 snd-card-0

# 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

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

Then update-modules and restart alsa.
Back to top
View user's profile Send private message
krlloyd
n00b
n00b


Joined: 30 May 2006
Posts: 44

PostPosted: Wed Jun 06, 2007 12:53 pm    Post subject: Reply with quote

Ok using Paul's instructions, i edited the alsa file and ran update modules.

/etc/modules.d/alsa file:
Code:


# Alsa kernel modules' configuration file.

# 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-emu10k1
##  OSS/Free portion
alias sound-slot-0 snd-card-0
##

# 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

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







alsasound start:
Code:

catpc44 init.d # ./alsasound start
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...
FATAL: Module snd_emu10k1 not found.                                      [ !! ]
 *   ERROR: Failed to load necessary drivers                              [ ok ]
 * ALSA failed to load.                                                   [ !! ]


I am assuming that it cannot find the driver (lol). I am pretty sure the drivers are there. Where do i need to look to make sure i have the drivers? Thanks again for everyone's help. Do you have to emerge alsa-drivers?



Oh when i emerged alsa-driver i get this error:
Code:

 *   ALSA is already compiled into the kernel.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Once you have satisfied these options, please try merging
 * this package again.

!!! ERROR: media-sound/alsa-driver-1.0.14_rc2-r1 failed.
Call stack:
  ebuild.sh, line 1631:   Called dyn_setup
  ebuild.sh, line 703:   Called qa_call 'pkg_setup'
  ebuild.sh, line 44:   Called pkg_setup
  alsa-driver-1.0.14_rc2-r1.ebuild, line 91:   Called linux-mod_pkg_setup
  linux-mod.eclass, line 464:   Called linux-info_pkg_setup
  linux-info.eclass, line 572:   Called check_extra_config
  linux-info.eclass, line 471:   Called die

!!! Incorrect kernel configuration options
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2-r1/temp/build.log'.


All the drivers that i selected in menuconfig are set as modules so i am not sure what it is referring too.
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Wed Jun 06, 2007 1:03 pm    Post subject: Reply with quote

To use the alsa driver package, you need to have alsa OFF in your kernel config, but the sound subsystem has to be ON.

Assuming that you don't want to use that:

try running alsa-conf before changing your /etc/modules.d/alsa if you haven't done so already.
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Jun 06, 2007 1:06 pm    Post subject: Reply with quote

You should have:
Code:
$ grep SND /usr/src/linux/.config
# CONFIG_SND is not set

$ grep SOUND /usr/src/linux/.config
CONFIG_SOUND=m
# CONFIG_SOUND_PRIME is not set

Look what the ebuild is checking:
Code:
$ grep CONFIG_CHECK /usr/portage/media-sound/alsa-driver/alsa-driver-1.0.14_rc3.ebuild
        local CONFIG_CHECK="!SND SOUND ${CHECK_PNP} ${CHECK_ISA} ${CHECK_FW} ${CHECK_PARPORT}"
Back to top
View user's profile Send private message
krlloyd
n00b
n00b


Joined: 30 May 2006
Posts: 44

PostPosted: Wed Jun 06, 2007 1:21 pm    Post subject: Reply with quote

Well, instead of using the in-kernel alsa driver. I disable ALSA in the kernel and emerged alsa-driver. Now it works fine.

Thanks for your help!!
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Wed Jun 06, 2007 1:28 pm    Post subject: Reply with quote

Don't forget to add Solved to the post title. :D
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
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