Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No sound at all [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
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Mon Jul 14, 2008 5:11 pm    Post subject: No sound at all [SOLVED] Reply with quote

Hello all,

On my new system (I'm sure it's old by most standards, but it's new to me ;)), I don't have any sound. Here's a little background information:

Creative Labs Sound Blaster Audigy 2 ZS
Code:

lspci | grep -i audio
02:01.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)


I have compiled the emu10k1 driver as a module, and all other parts related to ALSA as modules.

Code:

find /lib/modules/ -name \*.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/pci/emu10k1/snd-emu10k1-synth.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/pci/emu10k1/snd-emu10k1.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/pci/ac97/snd-ac97-codec.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/synth/emux/snd-emux-synth.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/synth/snd-util-mem.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/soundcore.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/snd-rtctimer.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/snd-hwdep.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/snd-pcm.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/oss/snd-pcm-oss.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/oss/snd-mixer-oss.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/snd-rawmidi.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/seq/snd-seq.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/seq/snd-seq-virmidi.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/seq/oss/snd-seq-oss.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/seq/snd-seq-midi-event.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/seq/snd-seq-midi.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/seq/snd-seq-device.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/seq/snd-seq-midi-emul.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/snd-page-alloc.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/snd.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/core/snd-timer.ko
/lib/modules/2.6.24-gentoo-r8/kernel/sound/ac97_bus.ko


My levels are set appropriately in alsamixer and in kmix:
Code:

┌──────────────────[AlsaMixer v1.0.16 (Press Escape to quit)]──────────────────┐
│ Card: Audigy 2 ZS [SB0350]                                                   │
│ Chip: SigmaTel STAC9721,23                                                   │
│ View: [Playback] Capture  All                                                │
│ Item: Master [dB gain=-22.40]                                                │
│                                                                              │
│    ┌──┐               ┌──┐     ┌──┐               ┌──┐     ┌──┐     ┌──┐     │
│    │  │               │  │     │  │               │  │     │  │     │  │     │
│    │  │               │  │     │  │               │  │     │  │     │  │     │
│    │  │               │  │     │  │               │  │     │  │     │  │     >
│    │  │               │  │     │  │               │  │     │▒▒│     │  │     >
│    │  │               │  │     │  │               │  │     │▒▒│     │  │     >
│    │  │               │▒▒│     │▒▒│               │  │     │▒▒│     │  │     >
│    │▒▒│               │▒▒│     │▒▒│               │  │     │▒▒│     │  │     >
│    │▒▒│               │▒▒│     │▒▒│               │▒▒│     │▒▒│     │  │     >
│    │▒▒│               │▒▒│     │▒▒│               │▒▒│     │▒▒│     │  │     │
│    │▒▒│               │▒▒│     │▒▒│               │▒▒│     │▒▒│     │  │     │
│    │▒▒│               │▒▒│     │▒▒│               │▒▒│     │▒▒│     │  │     │
│    └──┘     ┌──┐      └──┘     └──┘     ┌──┐      └──┘     └──┘     └──┘     │
│             │MM│                        │MM│                                 │
│             └──┘                        └──┘                                 │
│     44               50<>50   50<>50               33     70<>70      0      │
│ < Master >  Tone      Bass    Treble  3D Contr  3D Contr   PCM    PCM Cent   │
└──────────────────────────────────────────────────────────────────────────────┘


dmesg doesn't report anything failing.

Any ideas on where to start troubleshooting?

Thanks preemptively.
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---


Last edited by NathanZachary on Thu Jul 17, 2008 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Tue Jul 15, 2008 5:47 am    Post subject: Reply with quote

I found this entry on the Gentoo Wiki, but I don't know if it should be done or not:

Code:

Standard Configuration

ALSA does not usually need to be configured if only one sound card is installed on the system. All necessary modules should be loaded by udev automatically, and dmix is enabled by default. Only follow instructions for editing /etc/modprobe.d/alsa if your sound does not work as expected or multiple cards are used!
[edit] /etc/modprobe.d/alsa

First, you'll have to edit /etc/modprobe.d/alsa and configure it specifically for your sound cards and OSS emulation.
[edit] Example Configuration
[edit] Single Card

Here is an acceptable single card configuration complete with OSS emulation.
File: /etc/modprobe.d/alsa (Single Card)

alias char-major-116 snd
alias char-major-14 soundcore

alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-card-0

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/dsp snd-pcm-oss

options snd cards_limit=1


I noticed that my /etc/modprobe.d/alsa hadn't even been created, so I thought this might be worth a shot. However, the Wiki indicates that this step isn't necessary after running alsaconf. I did notice, though, that I have the following in /etc/modules.d/alsa:

Code:

# Alsa kernel modules' configuration file.

# ALSA portion
# OSS/Free portion

##
## 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
##

# OSS/Free portion - card #1
##  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.

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.16 ---
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
# --- END: Generated by ALSACONF, do not edit. ---

_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Jul 16, 2008 9:47 pm    Post subject: Reply with quote

Maybe it's a long shot, but can you try the latest gentoo-sources kernel ?
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Wed Jul 16, 2008 10:07 pm    Post subject: Reply with quote

1) The mandatory stupid question: are you in the audio group? ;)

2) Since I have the same sound card, maybe my config will help:

Code:

# lsmod | grep snd
snd_seq_midi            9856  0
snd_emu10k1_synth       8832  0
snd_emux_synth         40384  1 snd_emu10k1_synth
snd_seq_virmidi         8640  1 snd_emux_synth
snd_seq_midi_emul       8256  1 snd_emux_synth
snd_seq_oss            37312  0
snd_seq_midi_event      9280  3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq                63008  8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            48672  0
snd_mixer_oss          19776  1 snd_pcm_oss
snd_emu10k1           159968  2 snd_emu10k1_synth
snd_rawmidi            29600  3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_ac97_codec        121560  1 snd_emu10k1
ac97_bus                2624  1 snd_ac97_codec
snd_pcm                93064  4 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
snd_seq_device          9556  7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_timer              27856  3 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc         11728  2 snd_emu10k1,snd_pcm
snd_util_mem            5888  2 snd_emux_synth,snd_emu10k1
snd_hwdep              11720  2 snd_emux_synth,snd_emu10k1
snd                    71496  14 snd_emux_synth,snd_seq_virmidi,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_seq_device,snd_timer,snd_hwdep
soundcore              10080  1 snd


Code:

# cat /etc/modules.d/alsa
# 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-interwave
## alias snd-card-1 snd-ens1371
##  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

(I can't remember ever changing anything in this file.)

Also, in Kmix I have the "Surround" slider turned on; on the "Switches" Tab I have "Audigy Analog/Digital Output Jack" turned on, otherwise I get no sound. However, don't ask me any details about this, I find it quite confusing to be confronted with ~ 30 different sliders without having a clue what those actually do. ;)
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Jul 17, 2008 11:10 am    Post subject: Reply with quote

In fact, can you post this :

Code:

$ groups


Also, did you try audacious or something else in console that produce sound, because maybe you will see a warning or something else.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Thu Jul 17, 2008 4:20 pm    Post subject: Reply with quote

I can't believe that it was simply not having the "Audigy Analog/Digital Output Jack" set to "on" in KMix. That is very strange, because I didn't have sound from the command line either. However, that took care of the problem. Thank you both for offering assistance; I really appreciate it!
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
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