Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot get sound to work
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
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Wed Jun 18, 2008 11:42 pm    Post subject: Cannot get sound to work Reply with quote

lspci | grep -i audio

gives the following:
Code:

Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)


This is the board I have: http://www.newegg.com/Product/Product.aspx?Item=N82E16813131096

and the specification states:

Quote:
Onboard Audio
Audio Chipset C-Media Superior Quality Audio 7.1 channel CODEC (Vista ready)
Audio Channels 8 Channels


Now I've seen C-Media in the menuconfig and re-built the kernel and tried it out to no avail. I have also emerged alsa, all the gstreamer codecs, ffmpeg, lame, etc.. yet nothing will play audio. All my videos play without audio, no music will begin to play at all. alsamixer will not start, mpg123 (stating ALSA lib cannot find card '0') won't play a thing. gnome-volume-manager will not open (no error message).
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Thu Jun 19, 2008 12:25 am    Post subject: Reply with quote

According to this message, nVidia HD audio chipset support can be found in the snd-hda-intel audio driver.

Device Drivers ->
Sound ->
ALSA ->
PCI Devices ->
Intel HD Audio [*] or [M]

This will get your sound going :wink:
Back to top
View user's profile Send private message
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Thu Jun 19, 2008 2:23 am    Post subject: Reply with quote

hmm, that didn't seem to work either. alsaconf is not able to find any PnP or PCI cards.
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Thu Jun 19, 2008 7:07 pm    Post subject: Reply with quote

Do exactly this:

1. Compile snd-hda-intel in to your kernel. [*] instead of [M]
2. Reboot off this new kernel if necessary.
3. Edit /etc/modules.d/alsa and change

alias snd-card-0 snd-**********

to

alias snd-card-0 snd-hda-intel

4. Start alsasoudn with /etc/init.d/alsasound start
5. Run alsamixer, or aplay -l to see if the sound card is working
6. Report any errors you might encounter

snd-hda-intel is definitely the proper driver. If this doesn't work then I've no clue what to do.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Thu Jun 19, 2008 9:19 pm    Post subject: Reply with quote

If that doesn't work, compile it as M.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Thu Jun 19, 2008 10:03 pm    Post subject: Reply with quote

Hmm.. mpg123 isn't kicking error messages any longer aplay -l gives the following:
Code:

 $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Code:

# /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...                                          [ ok ]
 * Killing processes using ALSA ...                                       [ ok ]
 * Unloading ALSA modules ...                                             [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...
FATAL: Module snd_hda_intel not found.                                    [ ok ]
 * Restoring Mixer Levels ...                                             [ ok ]



Still not finding the on-board card though.

Just in case here's my alsa module

Quote:
# 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-hda-intel
## alias snd-card-1 snd-hda-intell

## 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
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Fri Jun 20, 2008 12:26 am    Post subject: Reply with quote

SnowCrashv5 wrote:
Hmm.. mpg123 isn't kicking error messages any longer aplay -l gives the following:
Code:

 $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Code:

# /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...                                          [ ok ]
 * Killing processes using ALSA ...                                       [ ok ]
 * Unloading ALSA modules ...                                             [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...
FATAL: Module snd_hda_intel not found.                                    [ ok ]
 * Restoring Mixer Levels ...                                             [ ok ]




Okay, compile snd-hda-intel as [M], sorry for the oversight.

Quote:

Still not finding the on-board card though.


You have two cards in your system? Add your other card to /etc/modules.d/alsa as snd-card-1 in the same way you added snd-card-0.
Back to top
View user's profile Send private message
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Fri Jun 20, 2008 1:19 am    Post subject: Reply with quote

^
gracias that did it :) thank you tons!
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