LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2006, 11:50 PM   #1
kmcgavran
Member
 
Registered: Sep 2006
Posts: 36

Rep: Reputation: 15
Sound with ALSA


Hi, I am new to Linux, and I am trying to get sound to work. I am running Slackware 10.2 with kernel 2.4.31. I installed off of a downloaded disc image. I get no sound. I tried running alsaconf and it found a card and said that it modified some modules files (/etc/modules.conf) and installed the modules, and set the mixer, but still no sound. Thus I loaded alsamixer and saw that the volumes were indeed turned up and not muted. I also read on the website something about an "out-gain" and tried the recommended command to fix this, but got the response that the arguments were not valid...

Following are some commands and responses I tried....

bash-3.00# lsmod
Module Size Used by Not tainted
snd-intel8x0 18304 0 (autoclean)
snd-ac97-codec 58556 0 (autoclean) [snd-intel8x0]
usb-storage 62432 0
snd-pcm-oss 36736 0
snd-mixer-oss 12376 0 [snd-pcm-oss]
uhci 24284 0 (unused)
ehci-hcd 17516 0 (unused)
usbcore 59148 1 [usb-storage uhci ehci-hcd]
snd-pcm 54344 0 [snd-intel8x0 snd-ac97-codec snd-pcm-oss]
snd-timer 13764 0 [snd-pcm]
snd 32772 0 [snd-intel8x0 snd-ac97-codec snd-pcm-oss snd-mixer-oss snd-pcm snd-timer]
soundcore 3396 4 [snd]
snd-page-alloc 4712 0 [snd-intel8x0 snd-mixer-oss snd-pcm snd-timer snd]
eepro100 18836 0 (unused)
mii 2272 0 [eepro100]
tulip 40896 1
crc32 2880 0 [tulip]
ohci1394 23888 0 (unused)
ieee1394 41636 0 [ohci1394]
ide-scsi 9392 0
agpgart 45508 0 (unused)


bash-3.00# lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
00:1f.6 Modem: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Modem Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 AS [Radeon 9550]
01:00.1 Display controller: ATI Technologies Inc RV350 ?? [Radeon 9550] (Secondary)
02:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02)
02:09.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
02:0e.0 FireWire (IEEE 1394): NEC Corporation uPD72874 IEEE1394 OHCI 1.1 3-port PHY-Link Ctrlr (rev 01)

bash-3.00# cat /etc/modules.conf

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.9a ---
alias char-major-116 snd
alias char-major-14 soundcore
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 snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---

bash-3.00# amixer set out-gain 100 unmute
amixer: Unable to find simple control 'out-gain',0

bash-3.00# dmesg
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
PCI: Found IRQ 4 for device 00:1f.5
PCI: Sharing IRQ 4 with 00:1f.3
PCI: Sharing IRQ 4 with 00:1f.6
PCI: Setting latency timer of device 00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 49587 usecs
intel8x0: clocking to 48000

bash-3.00# tail /var/adm/messages
Sep 14 04:08:35 mojave -- MARK --
Sep 14 04:18:37 mojave kernel: isapnp: Scanning for PnP cards...
Sep 14 04:18:37 mojave kernel: isapnp: No Plug & Play device found
Sep 14 04:23:35 mojave kernel: isapnp: Scanning for PnP cards...
Sep 14 04:23:35 mojave kernel: isapnp: No Plug & Play device found
Sep 14 04:23:44 mojave kernel: PCI: Found IRQ 4 for device 00:1f.5
Sep 14 04:23:44 mojave kernel: PCI: Sharing IRQ 4 with 00:1f.3
Sep 14 04:23:44 mojave kernel: PCI: Sharing IRQ 4 with 00:1f.6
Sep 14 04:23:45 mojave kernel: intel8x0_measure_ac97_clock: measured 49587 usecs
Sep 14 04:23:45 mojave kernel: intel8x0: clocking to 48000

(and yes, the speakers are plugged in and turned up... =P )

Thank you so very much for any time and help with this, I greatly appreciate it.
Kenneth
 
Old 09-14-2006, 12:28 AM   #2
vbisis
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 250

Rep: Reputation: 34
Probably sound is only muted.
Type alsamixer in console and use m to unmute/mute channels.
You can as well use any other mixer like kmix in kde to unmute channels and adjust volume.
 
Old 09-14-2006, 11:34 AM   #3
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
I'm also working with this module and an AC'97 card.
Well, the modules are loaded correctly. when you start alsamixer, and see at least a Master and PCM device you should be fine. There should also be an entry (scrolling to the left) calles External (Amplifier). This must be set to ON ("unmuted") to get anything into your ears...
Double check that there are green OOs in the mute field for Master, PCM and External and that the volume for PCM and Master is loud enough.
on my debian system you can use "aplay /usr/share/sounds/alsa/Noise.wav" to play a test sound.

HTH,
Florian
 
Old 09-15-2006, 03:37 PM   #4
kmcgavran
Member
 
Registered: Sep 2006
Posts: 36

Original Poster
Rep: Reputation: 15
Hmmm... Still not much luck, here is how my mixer is set... I think.

bash-3.00# amixer scontents
Simple mixer control 'Master',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on]
Front Right: Playback 31 [100%] [on]
Simple mixer control 'Master Mono',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 31 [100%] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on]
Front Right: Playback 31 [100%] [on]
Simple mixer control 'Headphone Jack Sense',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on]
Front Right: Playback 31 [100%] [on]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on] Capture [off]
Front Right: Playback 31 [100%] [on] Capture [off]
Simple mixer control 'Line Jack Sense',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on] Capture [off]
Front Right: Playback 31 [100%] [on] Capture [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 31 [100%] [on]
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Mic Boost (+20dB)',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Mic Select',0
Capabilities:
Mono:
Simple mixer control 'Video',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Phone',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 31 [100%] [on]
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Playback AC97-SPSA',0
Capabilities: volume volume-joined
Playback channels: Mono
Limits: 0 - 3
Mono: 3 [100%]
Simple mixer control 'IEC958 Playback Source',0
Capabilities:
Mono:
Simple mixer control 'Aux',0
Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on] Capture [off]
Front Right: Playback 31 [100%] [on] Capture [off]
Simple mixer control 'Mono Output Select',0
Capabilities:
Mono:
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 15
Front Left: Capture 0 [0%] [on]
Front Right: Capture 0 [0%] [on]
Simple mixer control 'Mix',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Mix Mono',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'External Amplifier',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Stereo Mic',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]

Thanks again for any time and help...
 
Old 09-15-2006, 07:42 PM   #5
Jessard
Member
 
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Rep: Reputation: 16
Hi kmcgavran, I have the same sound "card" and have run into similar problems in the past. For some reason I had to mute the 'Headphone Jack Sense' and 'Line Jack Sense' to get any output. In fact, I think someone in these forums gave me that tip some time ago Hope that helps...
 
Old 09-16-2006, 11:38 PM   #6
kmcgavran
Member
 
Registered: Sep 2006
Posts: 36

Original Poster
Rep: Reputation: 15
That worked great! Thank you so very much for your help. One final question though... I seem to recall reading somewhere that you had to "save" the changes you made in alsamixer to the card somehow, but I don't recall what that command was.... thanks again. =)
 
Old 09-17-2006, 02:10 AM   #7
Jessard
Member
 
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Rep: Reputation: 16
Hmmm, I don't remember ever trying to save my settings, but that does sound like a familiar idea. I just found an old post somewhere that says "alsactl store" will save your settings and "alsactl restore" will... well... restore them. It looks like Fedora does that automatically, but I bet Slackware leaves that to you, so I guess it wouldn't hurt to add those commands to some startup and shutdown scripts
 
Old 09-17-2006, 10:49 PM   #8
kmcgavran
Member
 
Registered: Sep 2006
Posts: 36

Original Poster
Rep: Reputation: 15
Ahhhh.... Ok, thank you very much. =)
 
Old 09-18-2006, 09:09 AM   #9
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
"call for me" if you need the alsa /etc/init.d script from debian which does exactly this...
 
Old 09-26-2006, 07:06 AM   #10
LetMeTryToo
LQ Newbie
 
Registered: Sep 2006
Distribution: Zenwalk 4
Posts: 10

Rep: Reputation: 0
Hi Doc.nice

I am also heavily searching on the web and in forums to seek an answer in how to have alsa configured on startup, which so far doesn't. Using alsaconf it sets up my sound perfectly, but after reboots it is gone, I have to rerun alsaconf every time. alsactl store doesn't help me. Does your script?

Greetz Ron
 
Old 09-27-2006, 04:33 AM   #11
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
I don't think so, but if your modules aren't loaded after reboot (compare "lsmod" output), you can add the module names to /etc/modules to load them automatically on boot.
My script basically just calls alsactl restore to load the sound settings...
 
Old 09-27-2006, 04:54 AM   #12
LetMeTryToo
LQ Newbie
 
Registered: Sep 2006
Distribution: Zenwalk 4
Posts: 10

Rep: Reputation: 0
Tnx for the answer,

I compared the output of lsmod before alsaconf and after, I see difference in 3 modules:
snd_hda_intel 18164 1
snd_pcm_oss 45408 1
soundcore 9216 2 snd
These lines are different , the firste have a 0 (zero) at the end, and soundcore has the number 1.
This is the difference between reboot and running alsaconf after boot.
Does this mean that after boot I don't need to run alsaconf, but instead run modprobe 3 times with these modules?
And if it would work, put them inside some file? btw, I don't even know how to search for files.

And if problems remain, is there any alternative to ALSA?

Greetings, Ron

Last edited by LetMeTryToo; 09-27-2006 at 05:22 AM.
 
Old 09-29-2006, 07:48 AM   #13
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
no, no real alternative for ALSA...

you simply have to load the modules on boot, no alsaconf. To do this automatically you can edit the file
/etc/modules and insert a line with "snd_hda_intel" (the other modules are needed by this and thus automatically loaded when this module is loaded.
The problem WILL NOT remain

step by step:
1. open a console/login to a terminal
2. become root (type su <enter> <rootpassword> <enter>)
3. type vi /etc/modules
4. type G o snd-hda-intel <esc> :wq <enter>
5. reboot
6. check if modules are loaded with lsmod
7. check/set volume with your favorite mixer (e.g. alsamixer, kmix, aumix)
8. happy music...
 
Old 10-04-2006, 01:55 PM   #14
LetMeTryToo
LQ Newbie
 
Registered: Sep 2006
Distribution: Zenwalk 4
Posts: 10

Rep: Reputation: 0
Hi Doc.nice

Tried to modprobe the snd_hda_intel, but it didn't work. But now I opened terminal and typed dmesg and let it print the output to a file, in which I found a few lines that were not good. It said, unknown model for ALC880, trying autoprobe from BIOS. The next line said something that driver was loaded using 3stack mode.
Those 2 lines I have put in Google and I did a search. I found a websit called Linux Headquarters which has a lot of patches for all kind of problems including one for this error message for the ALC880 on a Clevo computer, which I have.
I now have this patch on my Desktop, but I have no idea of what to do with it.

You have any idea?

greetings Ron
 
Old 10-05-2006, 08:06 AM   #15
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
what do you mean with "it didn't work"? any ewrror message?
if the module could not be found, use - instead of _
your sound works after using alsaconf so you don't seem to have to patch anything...

I can't help you with your patch, because you should at least tell me what to patch.
maybe you can give me the URL of the page at linux headquarters?
 
  


Reply

Tags
alsa, sndhdaintel



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA MIDI: Sound fonts for NVIDIA/NForce Soundstorm on-board sound vharishankar Linux - Hardware 6 09-04-2007 12:37 PM
Alsa sound *jumpy*: alsa-space: xrun of at least 11.449 msecs. resetting stream qwijibow Linux - General 6 04-22-2006 07:35 PM
ALSA not working for Creative Sound Blaster Live 24 Bit sound card vishalsonu Linux - Hardware 7 08-20-2005 01:02 PM
[ALSA 1.0.9b-4] No more sound, no more alsa-utils package Creak Debian 5 08-18-2005 04:22 PM
Can I load both oss (kernel sound drivers) and alsa in 2 sound cared system? cmisip Linux - General 0 04-12-2003 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration