View previous topic :: View next topic |
Author |
Message |
Oriver n00b
Joined: 15 Dec 2006 Posts: 12
|
Posted: Mon Jul 13, 2009 10:59 am Post subject: ALSA help [SOLVED] |
|
|
Hi,
I am having a strange problem with alsa. I am using an amd64 desktop, and the soundcard is realtek alc850. The driver is suggested to be intel8x0?
First I tried with in-kernel loadable modules (following the gentoo alsa guide). Then during reboot, the system will hang for about 2 minutes. When it is fully booted in to x, the lsmod command will also hang, and I have to kill the window.
Second, I tried in-kernel driver (not as loadable module), the machine boots fine, but the audio still does not work.
When I tried to start alsa
Code: | linux # /etc/init.d/alsasound start
* Loading ALSA modules ...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly?
* ERROR: Failed to load necessary drivers [ ok ]
* Restoring Mixer Levels ...
* No mixer config in /var/lib/alsa/asound.state, you have to unmute your card! [ ok ]
|
here is relavent information:
Code: | linux # cat /proc/asound/cards
--- no soundcards ---
|
Code: | linux # lspci|grep audio
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
|
here is the info in dmesg:
Code: | [ 4.896810] ALSA device list:
[ 4.897050] No soundcards found.
|
system:
Code: | linux # emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Tue, 02 Jun 2009 15:00:01 +0000
app-shells/bash: 3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python: 2.5.4-r2
dev-util/cmake: 2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="us sv"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="us sv" USERLAND="GNU" VIDEO_CARDS="nv"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
Any suggestions?
Thanks!
/Oriver
Last edited by Oriver on Mon Aug 24, 2009 1:21 pm; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Jul 13, 2009 11:30 pm Post subject: |
|
|
run and post results here
run , copy the results and paste them at http://kmuto.jp/debian/hcl/wiki/ and click check
a line like:
Quote: | 10de0371 Yes nVidia Corporation MCP55 High Definition Audio snd-hda-intel v2.6.25- |
will have an audio card driver known to work with your equipment listed next to last. |
|
Back to top |
|
|
Oriver n00b
Joined: 15 Dec 2006 Posts: 12
|
Posted: Tue Jul 14, 2009 8:47 pm Post subject: |
|
|
Thanks Donahue.
I tried the driver check, it gives the driver name snd-intel8x0, I guess it is the same as intel8x0 in gentoo. That is the driver in my attempt.
In my first post, the 3rd code listing is actually the output of 'lspci |grep audio', it seems to me that the hardware is detected?
More suggestions?
Oriver |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Jul 15, 2009 4:54 am Post subject: |
|
|
I would set the alsa part of menuconfig as below, recompilke and reinstall the kernel, reboot, run alsaconf hoping it will show an alc97 card.
Quote: | Device Drivers --->
<M> Sound card support --->
--- Sound card support
<M> Advanced Linux Sound Architecture --->
--- Advanced Linux Sound Architecture
<M> Sequencer support
<M> Sequencer dummy client
<M> OSS Mixer API
<M> OSS PCM (digital audio) API
[*] OSS PCM (digital audio) API - Include plugin system
[*] OSS Sequencer API
<M> HR-timer backend support
[*] Use HR-timer as default sequencer timer
[*] Dynamic device file minor numbers
[*] Support old ALSA API
[*] Verbose procfs contents
[ ] Verbose printk
[ ] Debug
[*] Generic sound devices --->
[*] PCI sound devices --->
--- PCI sound devices
< > Analog Devices AD1889
< > Avance Logic ALS300/ALS300+
< > Avance Logic ALS4000
< > ALi M5451 PCI Audio Controller
< > ATI IXP AC97 Controller
< > ATI IXP Modem
< > Aureal Advantage
< > Aureal Vortex
< > Aureal Vortex 2
< > Emagic Audiowerk 2
< > Aztech AZF3328 / PCI168 (EXPERIMENTAL)
< > Bt87x Audio Capture
< > SB Audigy LS / Live 24bit
< > C-Media 8338, 8738, 8768, 8770
< > C-Media 8788 (Oxygen)
< > Cirrus Logic (Sound Fusion) CS4281
< > Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
< > CS5530 Audio
< > (Echoaudio) Darla20
< > (Echoaudio) Gina20
< > (Echoaudio) Layla20
< > (Echoaudio) Darla24
< > (Echoaudio) Gina24
< > (Echoaudio) Layla24
< > (Echoaudio) Mona
< > (Echoaudio) Mia
< > (Echoaudio) 3G cards
< > (Echoaudio) Indigo
< > (Echoaudio) Indigo IO
< > (Echoaudio) Indigo DJ
< > (Echoaudio) Indigo IOx
< > (Echoaudio) Indigo DJx
< > Emu10k1 (SB Live!, Audigy, E-mu APS)
< > Emu10k1X (Dell OEM Version)
< > (Creative) Ensoniq AudioPCI 1370
< > (Creative) Ensoniq AudioPCI 1371/1373
< > ESS ES1938/1946/1969 (Solo-1)
< > ESS ES1968/1978 (Maestro-1/2/2E)
< > ForteMedia FM801
<M> Intel HD Audio --->
< > RME Hammerfall DSP Audio
< > RME Hammerfall DSP MADI
< > TempoTec HiFier Fantasia
< > ICEnsemble ICE1712 (Envy24)
< > ICE/VT1724/1720 (Envy24HT/PT)
<M> Intel/SiS/nVidia/AMD/ALi AC97 Controller
< > Intel/SiS/nVidia/AMD MC97 Modem
< > Korg 1212 IO
< > ESS Allegro/Maestro3
< > Digigram miXart
< > NeoMagic NM256AV/ZX
< > Digigram PCXHR
< > Conexant Riptide
< > RME Digi32, 32/8, 32 PRO
< > RME Digi96, 96/8, 96/8 PRO
< > RME Digi9652 (Hammerfall)
< > S3 SonicVibes
< > Trident 4D-Wave DX/NX; SiS 7018
< > VIA 82C686A/B, 8233/8235 AC97 Controller
< > VIA 82C686A/B, 8233 based Modems
< > Asus Virtuoso 100/200 (Xonar)
< > Digigram VX222
< > Yamaha YMF724/740/744/754
[ ] USB sound devices --->
[ ] PCMCIA sound devices --->
< > ALSA for SoC audio support --->
< > Open Sound System (DEPRECATED) ---> |
|
|
Back to top |
|
|
Oriver n00b
Joined: 15 Dec 2006 Posts: 12
|
Posted: Wed Jul 15, 2009 10:21 am Post subject: |
|
|
Thanks for your input, Donahue.
I had very similar configuration as what you suggested. (There are some miner differences, for example, in my kernel version, there is no HR-Timer entry). To make sure, I reconfiged my kernel as close as possible to yours, recompile/installed. Same thing still happens. (alsaconf can not find the module and lsmod freezes). I suspect that there might be some other configuration/driver that blocked the functionality of alsa driver.
BR
Oriver |
|
Back to top |
|
|
01allein Tux's lil' helper
Joined: 09 Jun 2009 Posts: 127 Location: AUSTRALIA
|
Posted: Thu Jul 16, 2009 6:18 am Post subject: |
|
|
Oriver wrote: | Thanks for your input, Donahue.
I had very similar configuration as what you suggested. (There are some miner differences, for example, in my kernel version, there is no HR-Timer entry). To make sure, I reconfiged my kernel as close as possible to yours, recompile/installed. Same thing still happens. (alsaconf can not find the module and lsmod freezes). I suspect that there might be some other configuration/driver that blocked the functionality of alsa driver.
BR
Oriver |
Kernel Config
Code: | <*> Sound card support --->
<M> Advanced Linux Sound Architecture --->
--- Advanced Linux Sound Architecture │ │
│ │ <M> Sequencer support │ │
│ │ < > Sequencer dummy client │ │
│ │ <M> OSS Mixer API │ │
│ │ <M> OSS PCM (digital audio) API │ │
│ │ [*] OSS PCM (digital audio) API - Include plugin system │ │
│ │ [*] OSS Sequencer API │ │
│ │ < > HR-timer backend support │ │
│ │ [ ] Dynamic device file minor numbers │ │
│ │ [*] Support old ALSA API │ │
│ │ [ ] Verbose procfs contents │ │
│ │ [ ] Verbose printk │ │
│ │ [ ] Debug │ │
│ │ [ ] Generic sound devices ---> │ │
│ │ [*] PCI sound devices ---> │ │
<M> Intel HD Audio --->
--- Intel HD Audio │ │
│ │ [*] Build hwdep interface for HD-audio driver │ │
│ │ [ ] Allow dynamic codec reconfiguration (EXPERIMENTAL) │ │
│ │ [ ] Support digital beep via input layer │ │
│ │ [*] Build Realtek HD-audio codec support │ │
│ │ [*] Build Analog Device HD-audio codec support │ │
│ │ [*] Build IDT/Sigmatel HD-audio codec support │ │
│ │ [*] Build VIA HD-audio codec support │ │
│ │ [*] Build ATI HDMI HD-audio codec support │ │
│ │ [*] Build NVIDIA HDMI HD-audio codec support │ │
│ │ [*] Build INTEL HDMI HD-audio codec support │ │
│ │ [*] Build Conexant HD-audio codec support │ │
│ │ [*] Build C-Media HD-audio codec support │ │
│ │ [*] Build Silicon Labs 3054 HD-modem codec support │ │
│ │ [*] Enable generic HD-audio codec parser │ │
│ │ [*] Aggressive power-saving on HD-audio │ │
│ │ (0) Default time-out for HD-audio power-save mode
<M> Intel/SiS/nVidia/AMD/ALi AC97 Controller |
Code: | emerge gnome-media && emerge alsa-utils && emerge gst-plugins-gconf && emerge gst-plugins-alsa && emerge gstreamer |
And your problem is fixed.... |
|
Back to top |
|
|
Oriver n00b
Joined: 15 Dec 2006 Posts: 12
|
Posted: Fri Aug 07, 2009 12:55 pm Post subject: |
|
|
Hi,
Sorry not responded soon, I have been away for a couple of weeks.
Tanks for your input, 01allein, but no, the problem is not fixed.
If you read my original post, I have problem with lsmod (it hangs) when configured the driver as loadable module. So the problem seems to be something at lower level?
Best regards,
Oriver |
|
Back to top |
|
|
bobspencer123 Guru
Joined: 19 Dec 2005 Posts: 544
|
Posted: Fri Aug 07, 2009 1:15 pm Post subject: |
|
|
please list the commands/steps you are taking in the console when recompiling your kernel and editing grub.conf
also post the output of:
|
|
Back to top |
|
|
Oriver n00b
Joined: 15 Dec 2006 Posts: 12
|
Posted: Mon Aug 10, 2009 8:45 am Post subject: |
|
|
Thanks bobspencer123.
Here are the steps I took when recompile the kernel:
#0. cd /usr/src/linux
#1. make menuconfig
#2. cp .config ../bk/
#3. make mrproper
#4. cp ../bk/.config .
#5. make && make module_install
#6. cp arch/x86_64/boot/bzImage /boot/kernel-2.6.28-gentoo-r5
Note that I do make cleanup before recompiling (which destroys the .config file, that's why I need to cp it somewhere safe). I don't do any grub re-configuration. Acctually my gru.conf file disappeared mysterily sometime not long after my gentoo installation, but the system boots just as usual, is that any problem?
Besides, modprobe -l also hangs.
Oriver |
|
Back to top |
|
|
bobspencer123 Guru
Joined: 19 Dec 2005 Posts: 544
|
Posted: Mon Aug 10, 2009 6:40 pm Post subject: |
|
|
#0. cd /usr/src/linux
#1. make menuconfig
#5. make && make modules_install
#6. cp arch/x86_64/boot/bzImage /boot/kernel-2.6.28-gentoo-r5
you don't need steps 2-4
you do need grub.conf or menu.lst file
make sure if you /boot on a seperate partition that you are mounting before the command #6 above.
after you edit grub.conf with the new kernel name and reboot make sure your new kernel is loaded. You can do uname -a to see the name of new kernel. It might make sense to start with an entirely new kernel source and recompile a brand new kernel to ensure you are loading the correct one. |
|
Back to top |
|
|
greggel n00b
Joined: 14 Nov 2004 Posts: 40 Location: Bonn/Germany
|
Posted: Sat Aug 15, 2009 1:58 am Post subject: Re: ALSA help |
|
|
Oriver wrote: |
When I tried to start alsa
Code: | linux # /etc/init.d/alsasound start
* Loading ALSA modules ...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly?
* ERROR: Failed to load necessary drivers [ ok ]
* Restoring Mixer Levels ...
* No mixer config in /var/lib/alsa/asound.state, you have to unmute your card! [ ok ]
|
|
not good. have you tried to build all sound related drivers (inluding soundcore) as module and not buid-in?
snd-intel8x0 should be the right module. do not build other soundcard-modules than this one.
do you have a proper /etc/modprobe.d/alsa.conf?
Code: |
alias char-major-14 soundcore
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-card-0
|
then run
modprobe -l is slow? sounds bad.
as a lazy boy in my /boot/grub/menu.lst if have an entry
Code: |
title vmlinuz
root (hd0,0)
kernel /vmlinuz root=/dev/hda3
|
so i can play with kernels
Code: |
mount /boot
cd /usr/src/linux
make menuconfig
<do something like fix your system or break it>
make && make modules_install && make install
reboot
|
modules, kernel, config and some other files are copied automatically with backups in your /boot |
|
Back to top |
|
|
Oriver n00b
Joined: 15 Dec 2006 Posts: 12
|
Posted: Mon Aug 24, 2009 1:20 pm Post subject: |
|
|
Hi,
Now I have figured out what's wrong. It turns out to have nothing to do with ALSA, but the previous kernel has not been properly configured/installled. The "second extended file system" was unset by default (wondering why and why it's not named with 'ext2' ?), which results the grub can't be installed, which failed to mount /boot, and then the new compiled kernel can not be installed properly.
Thanks for all your inputs!
Best regards,
Oriver |
|
Back to top |
|
|
|
|
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
|
|