Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

I don't remember how to troubleshoot a soundcard!

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
axlotl
n00b
n00b
User avatar
Posts: 53
Joined: Thu Oct 07, 2004 8:17 pm
Location: Brooklyn, yo

I don't remember how to troubleshoot a soundcard!

  • Quote

Post by axlotl » Wed Mar 09, 2005 6:59 am

They've always just worked, alsa and whatever that old c-thing was.
So now I have a new Dell computer which came with a soundblaster live ("24 bit!" did they used to be different? Actually I thought my old one was a "32!") I have tried compiling emu10k1 into the kernel and loading it as a module. I installed udev before I really dealt with any hardware outside of block devices. I can't even find the card in the /sys filetree using udevinfo.

How can I tell it's working? Give me some commands to poke it with.
mucus mules trot tra-la tra-la
Top
thebigslide
l33t
l33t
User avatar
Posts: 792
Joined: Thu Dec 23, 2004 12:25 pm
Location: under a car or on top of a keyboard

  • Quote

Post by thebigslide » Wed Mar 09, 2005 7:09 am

lspci -vv
Does it show up? What's the particulars. Could be a new PCI ID that isn't in alsa. Seems possible knowing Dell.
Top
Revellion
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Sep 14, 2004 11:00 pm
Location: Sweden
Contact:
Contact Revellion
Website

  • Quote

Post by Revellion » Wed Mar 09, 2005 7:13 am

most soundcards from like 2002-2003 and earlier were 16bits, except some professional soundcards and the audigy series ;)

you can test and see if you can even use the mixer to set the volume: $ alsamixer

if that gives a permission error you can just check: $ ls -lah /dev/sound/* /dev/snd/* and see if the devices is owned by root:audio and got permissions crw-rw---
Gentoo 2006.0 + NPTL + 2.6.15-r1-sources + gcc 3.4.4 100% built. glibc 2.3.5.
Top
axlotl
n00b
n00b
User avatar
Posts: 53
Joined: Thu Oct 07, 2004 8:17 pm
Location: Brooklyn, yo

  • Quote

Post by axlotl » Thu Mar 10, 2005 1:03 am

Oh, yeah! lspci!

Code: Select all

bash-2.05b# lspci
[...]
0000:01:01.0 Modem: Intel Corporation: Unknown device 1080 (rev 04)
0000:01:02.0 Multimedia audio controller: Creative Labs SB Audigy LS
0000:01:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Cont
roller (rev 02)
bash-2.05b# 
There it is. Here's the /dev listings. Alsamixer gives me a response I haven't seen before:

Code: Select all

bash-2.05b# alsamixer         

alsamixer: function snd_ctl_open failed for default: No such device

bash-2.05b# ls -lah /dev/sound/*
crw-------  1 root audio 14, 1 Mar  8 20:09 /dev/sound/sequencer
crw-------  1 root audio 14, 8 Mar  8 20:09 /dev/sound/sequencer2
bash-2.05b# ls -lah /dev/snd/*
crw-------  1 root audio 116,  0 Mar  8 20:09 /dev/snd/controlC0
crw-------  1 root audio 116,  1 Mar  8 20:09 /dev/snd/seq
crw-------  1 root audio 116, 33 Mar  8 20:09 /dev/snd/timer
I actually haven't looked at since I posted because I had to sleep and work. I'll see where I can take it from here.
Thanks!
mucus mules trot tra-la tra-la
Top
axlotl
n00b
n00b
User avatar
Posts: 53
Joined: Thu Oct 07, 2004 8:17 pm
Location: Brooklyn, yo

  • Quote

Post by axlotl » Thu Mar 10, 2005 1:15 am

udev for sound so far as I've found:

Code: Select all

bash-2.05b# pwd
/sys/class/sound
bash-2.05b# ls
ieee1394       ieee1394_node  mem   net     pci_bus  scsi_device   scsi_host  tty  usb_host
ieee1394_host  input          misc  nvidia  printer  scsi_generic  sound      usb  vc
bash-2.05b# cd sound
bash-2.05b# ls
controlC0  seq  sequencer  sequencer2  timer
bash-2.05b# udevinfo -a -p controlC0/
couldn't get the class device
bash-2.05b# udevinfo -a -p seq
couldn't get the class device
It's that way for all of them. I'm kinda shaky on udev so far, any hints?
mucus mules trot tra-la tra-la
Top
thebigslide
l33t
l33t
User avatar
Posts: 792
Joined: Thu Dec 23, 2004 12:25 pm
Location: under a car or on top of a keyboard

  • Quote

Post by thebigslide » Thu Mar 10, 2005 5:00 am

the snd-emu10k1 module didn't load.
Can you insmod it and see if there's any message in dmesg?
Top
Cintra
Advocate
Advocate
User avatar
Posts: 2111
Joined: Sat Apr 03, 2004 3:49 pm
Location: Norway

Re: I don't remember how to troubleshoot a soundcard!

  • Quote

Post by Cintra » Thu Mar 10, 2005 6:12 am

axlotl wrote: How can I tell it's working? Give me some commands to poke it with.
http://www.linux-mag.com/2004-12/sound_01.html
Testing and Using Sound Tools
mvh
"I am not bound to please thee with my answers" W.S.
Top
Revellion
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Sep 14, 2004 11:00 pm
Location: Sweden
Contact:
Contact Revellion
Website

  • Quote

Post by Revellion » Thu Mar 10, 2005 3:02 pm

axlotl wrote:Oh, yeah! lspci!

Code: Select all

bash-2.05b# lspci
[...]
0000:01:01.0 Modem: Intel Corporation: Unknown device 1080 (rev 04)
0000:01:02.0 Multimedia audio controller: Creative Labs SB Audigy LS
0000:01:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Cont
roller (rev 02)
bash-2.05b# 
There it is. Here's the /dev listings. Alsamixer gives me a response I haven't seen before:

Code: Select all

bash-2.05b# alsamixer         

alsamixer: function snd_ctl_open failed for default: No such device

bash-2.05b# ls -lah /dev/sound/*
crw-------  1 root audio 14, 1 Mar  8 20:09 /dev/sound/sequencer
crw-------  1 root audio 14, 8 Mar  8 20:09 /dev/sound/sequencer2
bash-2.05b# ls -lah /dev/snd/*
crw-------  1 root audio 116,  0 Mar  8 20:09 /dev/snd/controlC0
crw-------  1 root audio 116,  1 Mar  8 20:09 /dev/snd/seq
crw-------  1 root audio 116, 33 Mar  8 20:09 /dev/snd/timer
I actually haven't looked at since I posted because I had to sleep and work. I'll see where I can take it from here.
Thanks!
Those permissions are way off :?, should be crw-rw--- not crw-------,
and you say you use UDEV,

Your /etc/udev/permissions.d/50-udev.permissions should say this if you Ctrl + W: audio <= in nano

Code: Select all

# audio devices
dsp*:root:audio:0660
audio*:root:audio:0660
midi*:root:audio:0660
mixer*:root:audio:0660
sequencer*:root:audio:0660
sound/*:root:audio:0660
snd/*:root:audio:0660
beep:root:audio:0660
admm*:root:audio:0660
adsp*:root:audio:0660
aload*:root:audio:0660
amidi*:root:audio:0660
dmfm*:root:audio:0660
dmmidi*:root:audio:0660
sndstat:root:audio:0660
Gentoo 2006.0 + NPTL + 2.6.15-r1-sources + gcc 3.4.4 100% built. glibc 2.3.5.
Top
axlotl
n00b
n00b
User avatar
Posts: 53
Joined: Thu Oct 07, 2004 8:17 pm
Location: Brooklyn, yo

  • Quote

Post by axlotl » Fri Mar 11, 2005 2:28 am

ok, snd-emu10k as module:

Code: Select all

bash-2.05b# modprobe snd-emu10k1
bash-2.05b# lsmod
Module                  Size  Used by
snd_emu10k1            93828  0 
snd_rawmidi            21152  1 snd_emu10k1
snd_util_mem            4480  1 snd_emu10k1
snd_hwdep               8452  1 snd_emu10k1
nvidia               3464348  12 
bash-2.05b# alsamixer
alsamixer: function snd_ctl_open failed for default: No such device
And, looking in /etc/udev/permissions.d/50-udev.permissions, we see:

Code: Select all

bash-2.05b# nano /etc/udev/permissions.d/50-udev.permissions 
[...]
# audio devices
dsp*:root:audio:0660
audio*:root:audio:0660
midi*:root:audio:0660
mixer*:root:audio:0660
sequencer*:root:audio:0660
sound/*:root:audio:0660
snd/*:root:audio:0660
beep:root:audio:0660
admm*:root:audio:0660
adsp*:root:audio:0660

As noted above, the soundcard does show up in lspci. Here it is with the arguments:

Code: Select all

bash-2.05b# lspci -vv
[...]
0000:01:02.0 Multimedia audio controller: Creative Labs SB Audigy LS
        Subsystem: Creative Labs: Unknown device 1007
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (500ns min, 5000ns max)
        Interrupt: pin A routed to IRQ 3
        Region 0: I/O ports at dda0
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
And as to this:
Those permissions are way off Confused, should be crw-rw--- not crw-------,
and you say you use UDEV,
Cut me some slack man, I've been using udev for like 2 weeks so far! :roll:
And it's not as if I went in and set those permisions; that's just what it defaulted to from the emerge. What could have caused that? Should I chmod the whole /sys directory tree or something? All the other devices work fine (I think). I'm looking at that linux-mag article right after I post this.

[edit]
I tried writing my own udev rule in 20-udev.permissions:

Code: Select all

BUS="pci", ID="01:02.0", NAME="dsp"
Whether it's because the syntax is wrong or some other reason, it didn't help.
[/edit]
mucus mules trot tra-la tra-la
Top
Revellion
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Sep 14, 2004 11:00 pm
Location: Sweden
Contact:
Contact Revellion
Website

  • Quote

Post by Revellion » Fri Mar 11, 2005 3:36 am

that would be in /etc/udev/rules.d/50-udev.rules

anyways, from earlier it seems the permissions are being screwy, do you have
in your /etc/conf.d/rc

Code: Select all

RC_DEVICE_TARBALL="no" or "yes"?
I experienced some permissions issues on some other systems before. so you could check if you can temporary/permanently fix it with.

Code: Select all

chmod 660 /dev/snd/* /dev/sound/*
Come back and tell me if it works ;)
Gentoo 2006.0 + NPTL + 2.6.15-r1-sources + gcc 3.4.4 100% built. glibc 2.3.5.
Top
axlotl
n00b
n00b
User avatar
Posts: 53
Joined: Thu Oct 07, 2004 8:17 pm
Location: Brooklyn, yo

  • Quote

Post by axlotl » Fri Mar 11, 2005 4:15 am

that would be in /etc/udev/rules.d/50-udev.rules
This page on udev rule writing rules says that the rules in that directory are loaded in a lexically sequential manner and applied as found so that you should put your own rules in a file with a name that precedes 50-udev-etc. Then you don't have to edit that file and can toss all your rules in the other file. That's my authority on that filename for what it's worth.

On the permissions, I had that same problem on another machine, interestingly, but with an nvidia graphix card. In this case, I think I've traced the problem to another source. Namely, I'm trying to load the wrong driver! This page on alsa-project.org says that this "SoundBlaster Live 24 Bit" card uses the snd-ca0106 driver, which would explain why snd-emu10k1 didn't drive the chipset, don't you agree?

Anyway, that module isn't listed in the ALSA options in kernel configuration (at least in 'make menuconfig' -- I assume they're all the same) so now I have to figure out how to compile a driver into the kernel manually, I guess. Thaks for all the replies. I think I'm off to the kernel forum.

[edit]
though any pointers here will be gladly accepted!
[/edit]
mucus mules trot tra-la tra-la
Top
axlotl
n00b
n00b
User avatar
Posts: 53
Joined: Thu Oct 07, 2004 8:17 pm
Location: Brooklyn, yo

  • Quote

Post by axlotl » Fri Mar 11, 2005 4:21 am

The alsa page on this driver says, "You must turn on the sound support soundcore module."

I remember this option in the kernel config from a while ago, but I don't find it now. Is this directive obsolete?
mucus mules trot tra-la tra-la
Top
Revellion
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Sep 14, 2004 11:00 pm
Location: Sweden
Contact:
Contact Revellion
Website

  • Quote

Post by Revellion » Fri Mar 11, 2005 4:42 am

you mean, Device Drivers -> Sound -> Advanced Linux Sound Architecture?
Gentoo 2006.0 + NPTL + 2.6.15-r1-sources + gcc 3.4.4 100% built. glibc 2.3.5.
Top
axlotl
n00b
n00b
User avatar
Posts: 53
Joined: Thu Oct 07, 2004 8:17 pm
Location: Brooklyn, yo

  • Quote

Post by axlotl » Fri Mar 11, 2005 4:47 am

I don't see the "soundcore" module there. Here's what
Device Drivers -> Sound -> Advanced Linux Sound Architecture?
looks like to me:

Code: Select all

                             <*> Advanced Linux Sound Architecture                                    x x  
  x x                                  <*> Sequencer support                                                    x x  
  x x                                  < >   Sequencer dummy client                                             x x  
  x x                                  <*> OSS Mixer API                                                        x x  
  x x                                  <*> OSS PCM (digital audio) API                                          x x  
  x x                                  [*] OSS Sequencer API                                                    x x  
  x x                                  [ ] Verbose printk                                                       x x  
  x x                                  [ ] Debug                                                                x x  
  x x                                      Generic devices  --->                                                x x  
  x x                                      PCI devices  --->                                                    x x  
  x x                                      USB devices  --->                                                    x x  
  x x                                                          
Then I go into "PCI devices" and don't see the snd-ca0106 module anywhere.
mucus mules trot tra-la tra-la
Top
Revellion
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Sep 14, 2004 11:00 pm
Location: Sweden
Contact:
Contact Revellion
Website

  • Quote

Post by Revellion » Fri Mar 11, 2005 5:25 am

From what i've researched you will have to patch your kernel source with the alsa-drivers from alsa-project.org, dunno if the portage package: alsa-driver would patch the current symlinked kernel automagically but you could always try.:?

seems the Live! 24bit is not included in the ALSA that comes bundled with the 2.6.x kernel i have at least which is 2.6.9 :S
Gentoo 2006.0 + NPTL + 2.6.15-r1-sources + gcc 3.4.4 100% built. glibc 2.3.5.
Top
axlotl
n00b
n00b
User avatar
Posts: 53
Joined: Thu Oct 07, 2004 8:17 pm
Location: Brooklyn, yo

  • Quote

Post by axlotl » Fri Mar 11, 2005 5:30 am

oh, you had me excited for a minute, like it might be a fuller list of drivers. Alas:

Code: Select all

bash-2.05b# emerge -pv alsa-driver

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-sound/alsa-driver-1.0.8_rc1  -debug -doc +oss 0 kB 

Total size of downloads: 0 kB
bash-2.05b# emerge -v alsa-driver
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/alsa-driver-1.0.8_rc1 to /
>>> md5 src_uri ;-) alsa-driver-1.0.8rc1.tar.bz2
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.10-gentoo-r6-snd_mod
 * Checking for suitable kernel configuration options
 *   ALSA is already compiled into the kernel.
 * Please check to make sure these options are set correctly.
 * Once you have satisfied these options, please try merging
 * this package again.

!!! ERROR: media-sound/alsa-driver-1.0.8_rc1 failed.
Oh well! : (
mucus mules trot tra-la tra-la
Top
Revellion
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Sep 14, 2004 11:00 pm
Location: Sweden
Contact:
Contact Revellion
Website

  • Quote

Post by Revellion » Fri Mar 11, 2005 7:06 am

forgot to mention that you have to goto Device Drivers --> Sound --> then un-check Advanced Linux Sound Architecture :S, then you can emerge the alsa-driver :D
Gentoo 2006.0 + NPTL + 2.6.15-r1-sources + gcc 3.4.4 100% built. glibc 2.3.5.
Top
Post Reply

17 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic