Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emu10k1 Alsamixer quandry [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ElGuido
n00b
n00b


Joined: 24 Apr 2003
Posts: 74

PostPosted: Sun Dec 04, 2005 2:40 am    Post subject: Emu10k1 Alsamixer quandry [solved] Reply with quote

Given the below, has anyone got any ideas as to why my SB card won't work? As a check it used to work in linux and still works in windows. The non-functioning has also followed across an alsa-driver upgrade and a kernel upgrade.

The other 2 devices both work.

I have also tried killing udev and reloading it as well as removing /etc/asound.state

All without success.

As such, help appreciated.

K Rgds,

G

Code:
wednesday ~ # lspci
0000:00:06.0 PCI bridge: Advanced Micro Devices [AMD] AMD-8111 PCI (rev 07)
0000:00:07.0 ISA bridge: Advanced Micro Devices [AMD] AMD-8111 LPC (rev 05)
0000:00:07.1 IDE interface: Advanced Micro Devices [AMD] AMD-8111 IDE (rev 03)
0000:00:07.2 SMBus: Advanced Micro Devices [AMD] AMD-8111 SMBus 2.0 (rev 02)
0000:00:07.3 Bridge: Advanced Micro Devices [AMD] AMD-8111 ACPI (rev 05)
0000:00:07.5 Multimedia audio controller: Advanced Micro Devices [AMD] AMD-8111 AC97 Audio (rev 03)
0000:00:0a.0 PCI bridge: Advanced Micro Devices [AMD] AMD-8131 PCI-X Bridge (rev 12)
0000:00:0a.1 PIC: Advanced Micro Devices [AMD] AMD-8131 PCI-X APIC (rev 01)
0000:00:0b.0 PCI bridge: Advanced Micro Devices [AMD] AMD-8131 PCI-X Bridge (rev 12)
0000:00:0b.1 PIC: Advanced Micro Devices [AMD] AMD-8131 PCI-X APIC (rev 01)
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
0000:00:19.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
0000:00:19.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
0000:00:19.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
0000:00:19.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
0000:01:00.0 USB Controller: Advanced Micro Devices [AMD] AMD-8111 USB (rev 0b)
0000:01:00.1 USB Controller: Advanced Micro Devices [AMD] AMD-8111 USB (rev 0b)
0000:01:0a.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
0000:01:0a.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 0a)
0000:01:0b.0 Unknown mass storage controller: Silicon Image, Inc. (formerly CMD Technology Inc) SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)
0000:01:0c.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
0000:02:09.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet (rev 02)
0000:03:06.0 RAID bus controller: 3ware Inc 3ware Inc 3ware 9xxx-series SATA-RAID
0000:04:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-8151 System Controller (rev 13)
0000:04:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-8151 AGP Bridge (rev 13)
0000:05:00.0 VGA compatible controller: nVidia Corporation nv40 [GeForce 6800 Ultra] (rev a1)


Code:
wednesday ~ # lsmod
Module                  Size  Used by
snd_seq_midi            7616  0
snd_emu10k1_synth       7232  0
snd_emux_synth         37568  1 snd_emu10k1_synth
snd_seq_virmidi         6976  1 snd_emux_synth
snd_seq_midi_emul       7872  1 snd_emux_synth
snd_pcm_oss            51424  0
snd_mixer_oss          16512  1 snd_pcm_oss
snd_seq_oss            34624  0
snd_seq_midi_event      7232  3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq                55872  8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
snd_intel8x0           32168  0
snd_usb_audio          83072  0
snd_usb_lib            15296  1 snd_usb_audio
snd_emu10k1           114628  1 snd_emu10k1_synth
snd_rawmidi            23776  4 snd_seq_midi,snd_seq_virmidi,snd_usb_lib,snd_emu10k1
snd_seq_device          8080  7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_ac97_codec        103512  2 snd_intel8x0,snd_emu10k1
snd_pcm                88008  5 snd_pcm_oss,snd_intel8x0,snd_usb_audio,snd_emu10k1,snd_ac97_codec
snd_timer              22408  3 snd_seq,snd_emu10k1,snd_pcm
snd_ac97_bus            2560  1 snd_ac97_codec
snd_page_alloc          9936  3 snd_intel8x0,snd_emu10k1,snd_pcm
snd_util_mem            4032  2 snd_emux_synth,snd_emu10k1
snd_hwdep               9184  3 snd_emux_synth,snd_usb_audio,snd_emu10k1
snd                    55368  16 snd_emux_synth,snd_seq_virmidi,snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_intel8x0,snd_usb_audio,snd_usb_lib,snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer,snd_hwdep
soundcore               9120  1 snd
ipv6                  238432  12
nvidia               4382792  24
usb_storage            36164  0
ohci_hcd               19588  0
i2c_amd756              6660  0
i2c_amd8111             5888  0
i2c_core               20480  2 i2c_amd756,i2c_amd8111
usbcore               114784  5 snd_usb_audio,snd_usb_lib,usb_storage,ohci_hcd
ntfs                   90240  2
ide_cd                 39200  0
cdrom                  36520  1 ide_cd
tg3                    94276  0


Code:
wednesday ~ # cat /proc/asound/cards
0 [Live           ]: EMU10K1 - SB Live [Unknown]
                     SB Live [Unknown] (rev.10, serial:0x80661102) at 0xa800, irq 20
1 [Headset        ]: USB-Audio - Logitech USB Headset
                     Logitech Logitech USB Headset at usb-0000:01:00.1-3, full speed
2 [AMD8111        ]: ICH - AMD AMD8111
                     AMD AMD8111 with AD1981B at 0xc800, irq 17


Code:
wednesday ~ # cat /etc/modules.d/alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

# ALSA portion
#alias char-major-116 snd
# OSS/Free portion
#alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-emu10k1
alias snd-card-1 snd-usb-audio
alias snd-card-2 snd-intel8x0
##  OSS/Free portion
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2

#options snd-emu10k1 index="0"
#options snd-usb-audio index="1"
##

# OSS/Free portion - card #1
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
##  OSS/Free portion - card #2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=3


Code:
wednesday ~ # alsamixer -c 0
ALSA lib simple_none.c:1216:(simple_add1) helem (MIXER,'Front Playback Volume',0,140733193388032,46909632806912) appears twice or more

alsamixer: function snd_mixer_load failed: Invalid argument


Code:
wednesday ~ # /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...                                                                                                                                       [ ok ]
 * Unloading ALSA ...                                                                                                                                                  [ ok ]
 * Unloading ALSA modules ...                                                                                                                                          [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...                                                                                                                                           [ ok ]
 *   Loading: snd-card-1 ...                                                                                                                                           [ ok ]
 *   Loading: snd-card-2 ...                                                                                                                                           [ ok ]
 *   Loading: snd-seq-oss ...                                                                                                                                          [ ok ]
 *   Loading: snd-pcm-oss ...                                                                                                                                          [ ok ]
 *   Loading: snd-emu10k1-synth ...                                                                                                                                    [ ok ]
 *   Loading: snd-seq-midi ...                                                                                                                                         [ ok ]
 * Restoring Mixer Levels ...



Code:
wednesday ~ # alsamixer -c 0
ALSA lib simple_none.c:1216:(simple_add1) helem (MIXER,'Front Playback Volume',0,140733193388032,46909632806912) appears twice or more

alsamixer: function snd_mixer_load failed: Invalid argument


Last edited by ElGuido on Sat Jan 21, 2006 4:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
Indech
n00b
n00b


Joined: 10 Jan 2005
Posts: 22

PostPosted: Sun Dec 04, 2005 8:49 am    Post subject: Reply with quote

Gentoo has a guide for configuring alsa: http://www.gentoo.org/doc/en/alsa-guide.xml#alsa-utilities

You didn't add support into your kernel for your card along with the alsa-driver, did you? And since it is the preferred method anymore, I'd suggest unmerging alsa-driver, emerging alsa-utils, and adding alsa support directly through your kernel.

Hopefully this helps
Back to top
View user's profile Send private message
ElGuido
n00b
n00b


Joined: 24 Apr 2003
Posts: 74

PostPosted: Sun Dec 04, 2005 1:57 pm    Post subject: Reply with quote

Apologies I should have mentioned that I did follow the guide

In case it isn't clear I should also note that sound works fine through both my USB headset and from the onboard sound chip (I only just enabled this having got problems with the SB)

As such it's only the emu10k1 that is broken and I'd really like to know why and how to fix it.

Here's some further info in case anyone has an epiphany relating to the aforementioned.

Code:
wednesday linux # cat .config | grep -i SOUND
# Sound
CONFIG_SOUND=y
# Advanced Linux Sound Architecture
# Open Sound System
# CONFIG_SOUND_PRIME is not set



Code:
wednesday linux # emerge -s alsa-driver alsa-utils alsa-firmware alsa-lib alsa-headers alsa-oss
Searching...
[ Results for search key : alsa-driver ]
[ Applications found : 1 ]

*  media-sound/alsa-driver
      Latest version available: 1.0.10
      Latest version installed: 1.0.10
      Size of downloaded files: 2,143 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture kernel modules
      License:     GPL-2 LGPL-2.1


Searching...
[ Results for search key : alsa-utils ]
[ Applications found : 1 ]

*  media-sound/alsa-utils
      Latest version available: 1.0.10
      Latest version installed: 1.0.10
      Size of downloaded files: 968 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)
      License:     GPL-2


Searching...
[ Results for search key : alsa-firmware ]
[ Applications found : 1 ]

*  media-sound/alsa-firmware
      Latest version available: 1.0.10
      Latest version installed: 1.0.10
      Size of downloaded files: 1,528 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture firmware
      License:     GPL-2


Searching...
[ Results for search key : alsa-lib ]
[ Applications found : 1 ]

*  media-libs/alsa-lib
      Latest version available: 1.0.10
      Latest version installed: 1.0.10
      Size of downloaded files: 690 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture Library
      License:     GPL-2 LGPL-2.1


Searching...
[ Results for search key : alsa-headers ]
[ Applications found : 1 ]

*  media-sound/alsa-headers
      Latest version available: 1.0.10
      Latest version installed: 1.0.10
      Size of downloaded files: 2,143 kB
      Homepage:    http://www.alsa-project.org/
      Description: Header files for Advanced Linux Sound Architecture kernel modules
      License:     GPL-2 LGPL-2.1


Searching...
[ Results for search key : alsa-oss ]
[ Applications found : 1 ]

*  media-libs/alsa-oss
      Latest version available: 1.0.10
      Latest version installed: 1.0.10
      Size of downloaded files: 218 kB
      Homepage:    http://www.alsa-project.org/
      Description: Advanced Linux Sound Architecture OSS compatibility layer.
      License:     GPL-2


Code:
wednesday linux # emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r2 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe -frename-registers -fweb -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=opteron -O2 -pipe -frename-registers -fweb -ffast-math -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache digest distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://mirror.pudas.net/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="en_GB"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all"
LINGUAS="en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages64"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.elguido.com/gentoo-portage"
USE="amd64 X X509 Xaw3d aac acl acpi aim alsa arts audiofile avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 bzlib caps cddb cdparanoia cdr chroot codecs crypt cups curl dlloader dvd dvdr dvdread eds emboss emul-linux-x86 encode erandom esd exif expat fam fame ffmpeg fftw firefox flac font-server foomaticdb ftp gdbm gif glut gmp gnome gpm gs gstreamer gtk gtk2 gtkhtml hpn icq idea idn imagemagick imlib ipv6 jabber jack java javascript jpeg jpeg2k junit kde kdeenablefinal kerberos koffice-plugin krb4 lcms ldap libwww linuxthreads-tls live lm_sensors lzo lzw lzw-tiff mad md5sum mhash mikmod mime mjpeg mng monkey motif mozilla mp3 mpeg mplayer msn ncurses network nls nptl nptlonly nsplugin ntlm nvidia offensive ogg oggvorbis opengl oss pam pam_chroot pam_console pcre pdflib perl pic pie png posix profile pwdb python qt quicktime rdesktop readline real recode rle rtc samba sdl skey slang smime smp sockets speex spell ssl subversion szip tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis wxwindows xine xinerama xml xml2 xmms xpm xscreensaver xv xvid xvmc yahoo zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL
Back to top
View user's profile Send private message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Sun Dec 04, 2005 10:15 pm    Post subject: ALSA module config Reply with quote

I had a weekend of trouble where I got very familiar with my soundcard. For trouble-shooting I would work on one card at a time, so I suggest going into your BIOS setting and turning the on-board soundcard off until you have the SB working. Then go after the joy of two soundcards. :)

Then I suggest:
check your /usr/src/linux/.config by running the following:

#
grep SOUND /usr/src/linux/.config

CONFIG_SOUND=m
# CONFIG_SOUND_PRIME is not set

...and:

grep SND /usr/src/linux/.config

# CONFIG_SND is not set
#

There shouldn't be any other entries that show up from the above "grep" commands. If they are any, you should disable that option in the kernel.

I'm not *certain*, but if you're using alsa-driver (instead of using the kernel-version to replace it), then you should configure sound support as a module. I switched over to alsa-driver as part of my ugly weekend and it's better if you like staying current, and there's no particular reason for sticking it all in the kernel. (except that you have to remember to re-emerge alsa-driver after every kernel upgrade. :) )

After that, I learned that you should get rid of anything that looks like OSS support. ALSA contains all the OSS emulation/support you want INSIDE of it. The point of this is that here is the only uncommented section of my /etc/modules.d/alsa :

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.10 ---
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
# --- END: Generated by ALSACONF, do not edit. ---

Everything regarding OSS/Free support is commented out. And, if I run the following I see ->

#
ls -l /dev | grep dsp

lrwxrwxrwx 1 root root 10 Dec 3 13:07 adsp -> sound/adsp
lrwxrwxrwx 1 root root 9 Dec 3 13:07 dsp -> sound/dsp
crw------- 1 root audio 14, 19 Nov 28 2004 dsp1
crw------- 1 root audio 14, 35 Nov 28 2004 dsp2
crw------- 1 root audio 14, 51 Nov 28 2004 dsp3
#

...even though I don't know what "adsp" is yet. :) I'll add that I play a lot of Unreal Tournament 2004 and it needs /dev/dsp to play sound. (as far as I know, having OSS emulation in ALSA means you get a /dev/dsp device).

Note: I do NOT have the alsa-oss package installed.
#
equery list -i alsa

[ Searching for package 'alsa' in all categories among: ]
* installed packages
[I--] [ ] media-libs/alsa-lib-1.0.10 (0)
[I--] [ ] media-sound/alsa-utils-1.0.10 (0.9)
[I--] [ ] media-sound/alsa-headers-1.0.10 (0)
[I--] [ ] media-sound/alsa-driver-1.0.10 (0)
#
(equery is part of app-portage/gentoolkit)

One more thing, to get the OSS support (/dev/dsp), I have "oss" added in my /etc/portage/package.use for alsa-driver. Make sure your emerge looks like this :

#
emerge -pv alsa-driver

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

Calculating dependencies ...done!
[ebuild R ] media-sound/alsa-driver-1.0.10 -doc +oss 0 kB

Total size of downloads: 0 kB
#

(it doesn't really matter what you have for "doc")

And I couldn't tell (despite all the good info you posted) if you have your card set in /etc/make.conf. Mine looks like this:

#
grep ALSA /etc/make.conf

#ALSA_CARDS="via82xx"
ALSA_CARDS="emu10k1"
#
(I also have a on-board sound chip that I've turned off)

...And if you're STILL hosed after a reboot, I read about a lot of people burning by having their new "alsa-driver" modules colliding with their "left-over" kernel-version ALSA drivers. That means it's easy to do even if you think you're not doing it. :) :) :) My current kernel lib directory (now that I'm using alsa-driver properly) looks like this:

#
ls -l /lib/modules/<kernel version>/kernel/sound

total 16
-rw-r--r-- 1 root root 13451 Nov 26 16:36 soundcore.ko
#

which is *correct*. My older kernel-version kernel lib directory looked like this:

#
ls -l /lib/modules/<kernel version>/kernel/sound

total 0
drwxr-xr-x 3 root root 208 Sep 8 22:52 core
drwxr-xr-x 3 root root 72 Sep 8 22:52 drivers
drwxr-xr-x 3 root root 104 Sep 8 22:52 pci
#

which is *wrong*. If you see anything like the 2nd example, you should delete that whole directory and re-compile the kernel (cd /usr/src/linux; make && make modules_install), and emerge alsa-drivers. That should make everything clean and bullet-proof.

(remember, when you try this on your machine, you need to replace <kernel version> with YOUR kernel version. Just look in /lib/modules to make sure you have the right spelling.)

The only other last-minute burn I can think of is make sure that the user name you run your GUI under is part of the "audio" group:

#
grep audio /etc/group

audio:x:18:rlittle
#

One last little tidbit. My sound was never as clear in Gentoo as in my Windoze system. This drove me crazy(!!!!) until i realized that my Windoze session was always quieter. After 4 hours of research I found a rumor that the SB Live actually amplifies your digital signal if you set your PCM level to 100%. Because you are amplifying a digital signal, you get "digital clipping" in your audio output. I fix this by never setting my PCM volume over 81% (ok, maybe 84%, the other posts I read said no more that ~70%. Take your pick). The WAV volume control seems to work properly, so you should set it to 100%. Anything less and the card "dithers" your pure digital signal. Do any other volume control with MASTER or your speakers/external amp)


I know what I'm talking about, my sound is working, and I've proof-read what I wrote, but feel free to correct whatever huge errors I made. :)

Good luck ElGuido. Gentoo rules.
_________________
I need a better signature...
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Dec 05, 2005 12:38 am    Post subject: Reply with quote

The biggest problem with people and ALSA is people flip flopping between the kernel modules and the alsa-driver modules.

People throughout these forums will explain how much better the alsa-driver packages is and how they fixed everything.
More often then not, it was something else that got fixed in the process. The differences are usually minor; the ALSA in kernel right now is 1.0.10rc1, while the alsa-driver package is 1.0.10. Unless you have an extremely new sound card, they probably won't be much difference. (If you have the SB Live like someone above, you're not gaining anything by using the alsa-driver package, this card is well supported for a while now)

Bottomline, whatever alsa driver you pick, stick with it and get it working. Don't switch, its not the problem. It seems like every day there is a new thread with ALSA problems and its related to changing between the two.
Back to top
View user's profile Send private message
ElGuido
n00b
n00b


Joined: 24 Apr 2003
Posts: 74

PostPosted: Tue Dec 06, 2005 9:17 pm    Post subject: Reply with quote

Well thanks for all the replies.

I can tell you I last had an alsa issues a year ago, nearly exactly, and it was then my sound setup changed from kernel to drivers
cf https://forums.gentoo.org/viewtopic-t-261782-highlight-.html and since then it's been fine since then until about 2 weeks ago.

Guess this is a ponderer...

Harumph!

K Rgds,

G
Back to top
View user's profile Send private message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Tue Dec 06, 2005 10:34 pm    Post subject: Ponderous Reply with quote

Oh... Hmmm. I guess I should have read your email a *little* more closely...

<ponder, ponder, ponder>.

When I can't think of a way to fix something in Gentoo, I just "emerge --emptytree --deep world" and go away for a few days. Well, it worked once anyway.... :)
_________________
I need a better signature...
Back to top
View user's profile Send private message
nephila
n00b
n00b


Joined: 20 Aug 2002
Posts: 22

PostPosted: Wed Dec 07, 2005 9:35 pm    Post subject: Reply with quote

I'm having exactly the same problem as ElGuido. Up until a few days ago (the last time I looked) sound was working fine and then today *poof* gone.

My first thought was that it was the gentoo-sources-2.6.14-r4 so I rebooted into an older kernel (-r3) and sound was working, but now my display was broken, nvidia-[glx|kernel]-1.0.8174 was installed yesterday, so I recompiled and rebooted and my sound was broken again.

I thought it might be those drivers, so I downgraded to the previous version 7676 and tried again (no reboot) and no joy. However I probably should have rebooter.

Either way I also downgraded module-init-tools to 3.2_pre7 to see what effect that might have, but nothing.

Hopefully this'll help someone figure out the problem, but for me its late and I'm running a fever as it is.
Back to top
View user's profile Send private message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Wed Dec 07, 2005 10:22 pm    Post subject: Reply with quote

If you use alsa-driver instead of the kernel-version, you *did* emerge alsa-driver again after the kernel upgrade, right?

I upgraded the the new nvidia-kernel also (my OpelGL has died :( ), so I emerged and re-built the lastest kernel,(didn't fix anything), at which point I noticed that my sound was dead. Re-emerging alsa-driver (and rebooting) fixed that.
_________________
I need a better signature...
Back to top
View user's profile Send private message
nephila
n00b
n00b


Joined: 20 Aug 2002
Posts: 22

PostPosted: Thu Dec 08, 2005 7:21 am    Post subject: Reply with quote

rlittle, I'm using the kernel internal alsa drivers. I'm going to try your advice and compile the alsa-driver instead.

I'll let you know how I get on.
Back to top
View user's profile Send private message
nephila
n00b
n00b


Joined: 20 Aug 2002
Posts: 22

PostPosted: Thu Dec 08, 2005 8:45 am    Post subject: Reply with quote

The results with alsa-driver are no different than before.

The modules load, but the device nodes aren't created. There are no /dev/snd and /dev/sound directories created

When the alsasound service starts I see the message
Code:

 * Starting service alsasound
/usr/sbin/alsactl: load_state:1250: Cannot find soundcard '0'...
 Errors while restoring defaults, ignoring
 * Service alsasound started OK
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Dec 08, 2005 2:59 pm    Post subject: Reply with quote

I have had similar problems as well. Once i spent a really long time trying to get in-kernel drivers working and to no avail. I finally got standalone drivers working ok.

If I were you I would use the standalone drivers. BUt i realize some people say in-kernel drivers are better ... then again i seem to also remember people saying no, the inkernel drivers suck , use the standalones. so i just stick with whatever i get working .... until i have to set up a new computer! : )


Now here's someting else ... i think it's especially easy to confuse the alsa system, what with the two possible setups. See, it looks like the alsa system itself is working, but it's not picking up on the fact that you have more than one soundcard for some reason.

I have a sblive soundcard (which by the way sounds soooo much better than the circa-98 vortex 1 it replaced ; - > I have to review and then make another post but i think you're missing one of your drivers. I will edit or something in a few....

but before i finish (god im a rambler) i also wanted to mention the ALSA_CARDS or whatever in /etc/make.conf. Do you have all cards listed? I know, i know, you did in fact follow the directions .. . but i sadly make many mistakes when following even the simplest of directions and i don't think the also howto is exactly perfectly clear, so, it may help a lot to review and double maybe triple check each step is completed properly.
Back to top
View user's profile Send private message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Thu Dec 08, 2005 3:22 pm    Post subject: Reply with quote

Dang! I didn't mention it, but I had the same problem a little while ago. I thought it was just the version I was running, so I started blindly emerging things and upgrading the kernel. Nothing worked. I read that people were have troubles with the kernel-version so started reading up on how to switch over to the alsa-driver version. I had problems, but I think it was when I went to a new kernel version (i.e. I finally didn't have any left over modules in my "lib" dir) and re-emerged alsa-driver that it all started working.

All I really learned is that one missed piece of the puzzle can ruin your whole day.All I can suggest is that you shouldn't have to waste your time looking at udev, (all your other devices are there....), it's should be all about the modules and compile options for ALSA.

If you have nothing better to try, I would double check my kernel options so soundcard support is compiled as a module (CONFIG_SOUND=m and everything else in "not set") and then make clean, then make, then make modules_install. Update your bzImage, reboot, emerge -Dv alsa-driver and reboot to see if it worked. It sounds like overkill, but I thought I did the above about 3 times before I got it all happening at the same time. I'm not to proud to admit that the problem was attached to the keyboard. :wink:

Oh yes, make sure those two lines are in /etc/modules.d/alsa and then run modules-update. You need that too.
_________________
I need a better signature...
Back to top
View user's profile Send private message
TNorthover
Guru
Guru


Joined: 25 Jan 2004
Posts: 434
Location: Edinburgh, UK

PostPosted: Thu Dec 08, 2005 5:32 pm    Post subject: Reply with quote

I've just had this problem (device nodes not existing and sound card not found errors) caused by udev-077. I downgraded to 072 (a number I picked randomly, not because it's an especially good vintage) and things are back to normal now.
Back to top
View user's profile Send private message
calr0x
Apprentice
Apprentice


Joined: 16 Aug 2004
Posts: 244

PostPosted: Thu Dec 08, 2005 6:56 pm    Post subject: Reply with quote

Try "udevstart" guys...

I think a few days ago a new udev was released for ~x86. I upgraded to this version yesterday.

When I booted today all looked fine, but I got the same error. Checking the forums found me this thread.

It is my feeling theres a problem w/ this new udev in some way, and for me, running "udevstart" fixed the problem. Check and see if your /dev/sound/* is not being created after booting, and notice that after running "udevstart" they are created properly...

Hope this helps gents...
Back to top
View user's profile Send private message
nephila
n00b
n00b


Joined: 20 Aug 2002
Posts: 22

PostPosted: Thu Dec 08, 2005 7:15 pm    Post subject: Reply with quote

calr0x, your solution worked perfectly for me. Thanks.

From what TNorthover has said, it looks like something in udev-077 was broken, and the new version doesn't start properly on boot.
Back to top
View user's profile Send private message
calr0x
Apprentice
Apprentice


Joined: 16 Aug 2004
Posts: 244

PostPosted: Thu Dec 08, 2005 7:18 pm    Post subject: Reply with quote

Woohoo!
Back to top
View user's profile Send private message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Thu Dec 08, 2005 10:02 pm    Post subject: Reply with quote

Sorry guys. I'm running udev-0.68. Last time I upgraded I couldn't boot my system. Didn't realize that the ~amd64 version was so far ahead.
_________________
I need a better signature...
Back to top
View user's profile Send private message
ElGuido
n00b
n00b


Joined: 24 Apr 2003
Posts: 74

PostPosted: Sat Dec 31, 2005 3:18 pm    Post subject: Reply with quote

In the end I've migrated over to my on board sound and switch the cable over when using linux and not windows.

I did try undoing the unboard sound and readding just the emu10k1, but got exactly the same error.

As a side note all the dev nodes were appearing correctly

Leaving this as a DFKDFC pain of a problem
Back to top
View user's profile Send private message
kuschelkriterium
n00b
n00b


Joined: 16 Nov 2004
Posts: 33

PostPosted: Thu Jan 12, 2006 10:21 pm    Post subject: Reply with quote

@ElGuido: I had the same problem as you when changing from ALSA 1.09 to ALSA 1.10. Today, I found the solution here: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1681

If the reason is the same, your card is working flawlessly, although you don't hear anything, as it is muted (which happened when you deleted your /etc/asound.state), and which you cannot change unless you get your amixer to work. This is not your fault; it is a bug in the ALSA drivers which has now been changed in CVS. There is a workaround, which unfortunately requires changing the sources and recompiling.

You have to fetch and unpack your sources and edit the file alsa-kernel/pci/emu10k1/emumixer.c in the work-directory. Search for the lines
Code:

        static char *emu10k1_remove_ctls[] = {
                /* no AC97 mono, surround, center/lfe */

and, after the comment, insert the line
Code:

                "Front Playback Volume",


After that, you have to compile, install and qmerge your alsa-drivers. Restart your alsasound-script, and it should work (at least it did for me).

PS: In order to unpack, compile, install and qmerge your sources, change into /usr/portage/media-sound/alsa-driver and execute
Code:

ebuild alsa-driver-1.0.10.ebuild unpack

(respectively compile, install and qmerge).

Hope this helps!
Back to top
View user's profile Send private message
ElGuido
n00b
n00b


Joined: 24 Apr 2003
Posts: 74

PostPosted: Sat Jan 21, 2006 3:45 pm    Post subject: Reply with quote

Aha!!!!

Fantastic work

alsamixer -c 2 (which is what my sb has been delegated to)

now doesn't gives errors!

"Happy happy, joy joy" x 10
Back to top
View user's profile Send private message
ElGuido
n00b
n00b


Joined: 24 Apr 2003
Posts: 74

PostPosted: Tue Jan 24, 2006 8:41 pm    Post subject: Reply with quote

Bug filed https://bugs.gentoo.org/show_bug.cgi?id=120217
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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