You are not logged in.

#1 2011-05-11 14:01:38

df3n5
Member
Registered: 2009-04-08
Posts: 25

[SOLVED] Sound not working

Hi,

I've tried listening to sound through my headphones but it doesn't work for some reason. I've tried the obvious thing of putting everything up using alsamixer, but no joy.

[j0n@myhost ~]$ lspci |grep Audio
00:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 05)
01:00.1 Audio device: nVidia Corporation GF108 High Definition Audio Controller (rev a1)
04:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge
05:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
[j0n@myhost ~]$ lsmod|grep '^snd' | column -t
snd_hda_codec_ca0110   6704    1
snd_hda_codec_hdmi     22378   5
snd_hda_codec_realtek  294149  1
snd_seq_dummy          1455    0
snd_seq_oss            28052   0
snd_seq_midi_event     5332    1   snd_seq_oss
snd_seq                48705   5   snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         5100    3   snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            37890   0
snd_mixer_oss          14851   1   snd_pcm_oss
snd_hda_intel          21738   0
snd_hda_codec          73739   4   snd_hda_codec_ca0110,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              6134    1   snd_hda_codec
snd_pcm                71032   4   snd_hda_codec_hdmi,snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              18992   2   snd_seq,snd_pcm
snd                    55132   13  snd_hda_codec_ca0110,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
snd_page_alloc         7017    2   snd_hda_intel,snd_pcm
[j0n@myhost ~]$ ls -l /dev/snd
total 0
drwxr-xr-x 2 root root      100 May 11 10:09 by-path
crw-rw---- 1 root audio 116,  8 May 11 10:09 controlC0
crw-rw---- 1 root audio 116, 17 May 11 10:09 controlC1
crw-rw---- 1 root audio 116, 23 May 11 10:09 controlC2
crw-rw---- 1 root audio 116,  7 May 11 10:09 hwC0D0
crw-rw---- 1 root audio 116,  6 May 11 10:09 hwC0D3
crw-rw---- 1 root audio 116, 16 May 11 10:09 hwC1D0
crw-rw---- 1 root audio 116, 15 May 11 10:09 hwC1D1
crw-rw---- 1 root audio 116, 14 May 11 10:09 hwC1D2
crw-rw---- 1 root audio 116, 13 May 11 10:09 hwC1D3
crw-rw---- 1 root audio 116, 22 May 11 10:09 hwC2D1
crw-rw---- 1 root audio 116,  5 May 11 10:09 pcmC0D0c
crw-rw---- 1 root audio 116,  4 May 11 10:09 pcmC0D0p
crw-rw---- 1 root audio 116,  3 May 11 10:09 pcmC0D1p
crw-rw---- 1 root audio 116,  2 May 11 10:09 pcmC0D3p
crw-rw---- 1 root audio 116, 12 May 11 10:09 pcmC1D3p
crw-rw---- 1 root audio 116, 11 May 11 10:09 pcmC1D7p
crw-rw---- 1 root audio 116, 10 May 11 10:09 pcmC1D8p
crw-rw---- 1 root audio 116,  9 May 11 10:09 pcmC1D9p
crw-rw---- 1 root audio 116, 21 May 11 10:09 pcmC2D0c
crw-rw---- 1 root audio 116, 20 May 11 10:09 pcmC2D0p
crw-rw---- 1 root audio 116, 19 May 11 10:09 pcmC2D1c
crw-rw---- 1 root audio 116, 18 May 11 10:09 pcmC2D1p
crw-rw---- 1 root audio 116,  1 May 11 10:09 seq
crw-rw---- 1 root audio 116, 33 May 11 10:09 timer

Any ideas on what I could try or more info I could provide?

Last edited by df3n5 (2011-05-17 11:29:41)

Offline

#2 2011-05-11 15:06:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Sound not working

Is the music playing (check e.g. the seekbar) but you get no sound? No sound through the speakers too? Are all the needed channels in alsamixer unmuted?

Offline

#3 2011-05-11 16:08:31

df3n5
Member
Registered: 2009-04-08
Posts: 25

Re: [SOLVED] Sound not working

karol wrote:

Is the music playing (check e.g. the seekbar) but you get no sound? No sound through the speakers too? Are all the needed channels in alsamixer unmuted?

Yes the music plays but I get no sound at all. No sound throught the speakers either. Channels in alsamixer are all unmuted and at max volume.

Offline

#4 2011-05-11 16:20:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Sound not working

Some wild guesses: do you have one or two cards? Which one are you using (check in the alsamixer)?
I'm not sure if this can help, but https://bbs.archlinux.org/viewtopic.php … 90#p774390

Offline

#5 2011-05-17 11:29:17

df3n5
Member
Registered: 2009-04-08
Posts: 25

Re: [SOLVED] Sound not working

Hey,

Thanks for the hint, I got it sorted. It turns out there were 3 cards picked up in this order:
1) NVIDIA's HDMI audio driver
2) Onboard HDMI audio driver
3) Creative sound card (What I wanted)

So the solution was actually quite simple, I just told alsa that I wanted to use the 3rd card by default (ideally I would disable the modules which loaded the HDMI drivers, but all 3 drivers were picked up the same module snd-hda-intel) :

~/.asound.rc:

pcm.!default {
type hw
card 2
device 0
}
ctl.!default {
type hw
card 2
}

And now everything works. big_smile Thanks for the help. Hope this helps someone else.

Offline

#6 2011-05-21 21:29:08

MreDD
Member
From: Orange County, USA
Registered: 2007-08-26
Posts: 175
Website

Re: [SOLVED] Sound not working

I have this card, have it working with editing asoundrc same.
Question:
Do you have PCM or Master working? and if so what did you do?
I have no master or pcm channels. I have to vol-up vol-down each channel individually, front, surround, center, lfe, side.


...MikereDD
:Go Away & Give My Pillow Back!!:
aur pkgbuilds - mostly fortune-mod's & fonts

Offline

#7 2011-06-13 01:09:41

MreDD
Member
From: Orange County, USA
Registered: 2007-08-26
Posts: 175
Website

Re: [SOLVED] Sound not working

after a few hours I got a working pcm channel.
my asound.conf

+- sad cat /etc/asound.conf

pcm.!dpcm.Creative { type hw; card Creative; }
ctl.Creative { type hw; card Creative; }
pcm.CX180 { type hw; card CX180; }
ctl.CX180 { type hw; card CX180; }
pcm.U0x46d0x81b { type hw; card U0x46d0x81b; }
ctl.U0x46d0x81b { type hw; card U0x46d0x81b; }
pcm.!default pcm.Creative
ctl.!default ctl.Creative

my ~/.asoundrc
+- sad cat ~/.asoundrc

pcm.!default {
    type hw
    card Creative
    device 0
}
ctl.!default {
    type hw
    card Creative
}
                                                                                                                                                                  
mixer.!default {                                                                                                                                                     
    type hw                                                                                                                                                        
    card Creative
}

I used this sites How to remove Nvidia HDMI Sound cards under Linux?
my rc.local
+- sad cat /etc/rc.local

#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
# Disable Nvidia HDMI Audio
echo 1 > /sys/devices/pci0000\:00/0000\:00\:07.0/0000\:06\:00.1/remove

my alsa.conf
+- sad cat /etc/modprobe.d/alsa.conf

options snd slots=snd-hda-intel

my sound.conf
+- sad cat /etc/modprobe.d/sound.conf

## Options and Aliases
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
#options snd slots=snd-hda-intel
options snd-hda-intel model=ca0110

my rc.conf - modules line
+- sad cat /etc/rc.conf|grep 'MODULES='

MODULES=(snd-hda-intel ath9k evdev uvcvideo snd-seq-oss snd-pcm-oss snd-mixer-oss)

sharing this all cause I had a hard time getting a working pcm channel hope this may help others.

Last edited by MreDD (2011-07-17 02:05:58)


...MikereDD
:Go Away & Give My Pillow Back!!:
aur pkgbuilds - mostly fortune-mod's & fonts

Offline

Board footer

Powered by FluxBB