LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-11-2007, 06:04 PM   #1
as2100
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
Sound card not detected - Intel 82801G, ALSA 1.0.14


Hey guys,

I can't seem to get sound working on this new Toshiba Satellite I just got. I've tried compiling ALSA and the Intel HD Audio driver directly in the kernel, and I've tried building ALSA from their site and following the directions at alsa-project.

Here's the output from a couple utilities:

Code:
root@satellite /proc/asound # lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
04:00.0 Ethernet controller: Atheros Communications, Inc. Unknown device 001c (rev 01)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)
06:04.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
06:04.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
06:04.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
06:04.3 Class 0805: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller
Code:
root@satellite /proc/asound # lsmod
Module                  Size  Used by
snd_seq_oss            33024  0
snd_seq_midi_event      9600  1 snd_seq_oss
snd_seq                46832  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device         10380  2 snd_seq_oss,snd_seq
snd_pcm_oss            41536  0
snd_mixer_oss          17920  1 snd_pcm_oss
snd_hda_intel         248432  0
snd_pcm                67724  2 snd_pcm_oss,snd_hda_intel
snd_timer              21768  2 snd_seq,snd_pcm
snd                    44772  9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer
snd_page_alloc         11272  2 snd_hda_intel,snd_pcm
soundcore               9696  1 snd
i915                   23552  2
drm                    68636  3 i915
wlan_scan_sta          15488  1
ath_rate_sample        15872  1
i2c_i801               11024  0
ath_pci                89920  0
intel_agp              24092  1
i2c_core               20096  1 i2c_i801
wlan                  176816  4 wlan_scan_sta,ath_rate_sample,ath_pci
agpgart                30920  3 drm,intel_agp
ath_hal               234848  3 ath_rate_sample,ath_pci
Code:
root@satellite /proc/asound # cat version
Advanced Linux Sound Architecture Driver Version 1.0.14.
Compiled on Jun 11 2007 for kernel 2.6.21 (SMP).
Code:
root@satellite /proc/asound # uname -sr
Linux 2.6.21
Code:
root@satellite /proc/asound # cat cards
--- no soundcards ---
Currently, the only audio related thing I have compiled directly into the kernel is the soundcore module. The other modules I got from the ALSA site.

Please let me know if there is anything I can add to help.

EDIT: I've also tried running alsaconf as root. This utility detects my soundcard correctly, and it claims to execute the alsa init script and tells me my sound card is now ready to use. So I try executing alsamixer and receive the error:
Code:
alsamixer: function snd_ctl_open failed for default: No such device
I'm assuming this is because my card is still not being detected; considering /proc/asound/cards still shows "--- no soundcards ---"

Last edited by as2100; 06-11-2007 at 06:38 PM.
 
Old 06-11-2007, 07:16 PM   #2
as2100
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
With advice from the totally gnarly people in #alsa @ freenode, I was instructed to use the following option when loading my snd-hda-intel module:
Code:
modprobe snd-hda-intel model=3stack
This was advised by somebody familiar with the Satellite A135 models, which is what I have. The card is now being detected by alsamixer, and I see my card in /proc/asound/cards now:
Code:
root@satellite ~ # cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xdc440000 irq 21
I haven't had a chance to check to see if sound is actually coming out yet, as I am not with the computer. I'll update when I get home.
 
Old 06-11-2007, 07:39 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Make sure the ALSA libraries matched the version of the drivers. If they do not, any program using ALSA will post the a similar error that states "function snd_ctl_open failed for default." When you compile and install the libraries, do not forget to run ldconfig. The utility ldconfig is always forgotten by novice users and it is recommended to be run before compiling and installing any program that requires dynamic libraries. However, if you use a program that outputs to OSS, sound should work, but the mixer may be muted and/or sound levels may not be set high enough to hear sound.

I strongly recommend that you use && to separate compiling commands on the same line instead of ;. The && just means do this command and if there is no errors, continue on the next command, but if there are errors, halt and do not continue. The ; just means do this command and continue on the next command even though there are errors.

Sound System in the kernel should not be compiled as built-in. It should be compiled as a module which it seems you set it that way. The Sound System support designates as soundcore as the module.

Post the file /var/log/messages.
 
Old 06-11-2007, 07:47 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Also I forgot to mention about forcing the model for snd-hda. Since you already go it. If you want to know where they go the information, look in alsa-kernel/Documentation of the alsa-driver source code for a file Alsa-Configuration.txt. Then do a search for snd-hda.
 
Old 06-11-2007, 08:07 PM   #5
as2100
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the replies.

Yes, after forcing the correct model with `modprobe snd-hda-intel model=3stack`, ALSA is now detecting my card.

These are the versions of software I have installed:
Code:
andrew@satellite ~/src/alsa $ ls
alsa-driver-1.0.14/         alsa-lib-1.0.14/         alsa-utils-1.0.14/
alsa-driver-1.0.14.tar.bz2  alsa-lib-1.0.14.tar.bz2  alsa-utils-1.0.14.tar.bz2
Before I `make install`'d any of these packages, I used Slackware's /sbin/removepkg to remove all ALSA software previously installed.

I previously had alsa-lib-1.0.14a, but I installed alsa-lib-1.0.14 on top of that. This did not affect anything, as far as I can tell.

Also, you wanted to see my /var/log/messages:
pastebin link

Thanks for the help
 
Old 06-11-2007, 10:21 PM   #6
as2100
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Yay! Sound is working like a charm, now.

For anyone with this same machine and running Slackware:

1.) Uninstall alsa-drivers-xxx, alsa-utils-xxx, and alsa-libs-xxx if you currently have them installed.
2.) Recompile kernel with soundcore as a module, and do not enable ALSA or OSS
3.) Install the latest packages according to the link above in my first post.
4.) When modprobe'ing snd-hda-intel, be sure to specify the model=3stack option
5.) Run alsaconf as root, and then adjust your mixer

Hope this helps someone

Last edited by as2100; 06-11-2007 at 11:31 PM.
 
  


Reply

Tags
intel, satellite, slackware, sound, toshiba



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 v1.0.14rc2 Not working with Intel 82801G on Redhat enterprise 4 RHEL4 utee Linux - General 3 02-28-2007 01:28 PM
fc6 intel 82801g sound card problems phaedrusarphan Linux - Hardware 1 01-28-2007 06:40 PM
Suse 10.1 Intel Ich7 82801g Rev.2 Sound Card Problem locque Linux - Hardware 14 12-21-2006 12:45 AM
How to get a Intel 82801G sound card to work after installation dussel Linux - Hardware 4 05-22-2006 11:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:59 PM.

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