View previous topic :: View next topic |
Author |
Message |
Uber_n00b n00b
Joined: 29 Jun 2005 Posts: 39 Location: Pennsylvania, US
|
Posted: Thu Aug 25, 2005 5:19 am Post subject: Alsa only kinda works |
|
|
I have a problem. I finally got alsa running....sort of. I get output for gnome sounds, and wesnoth. I do not get output for things like web content, enemy territory and america's army. Also, when i go into the multimedia systems selector and try to test the alsa pipeline for default sink, i get an error. It does, however work if i use ESD. Any ideas what I did wrong? |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu Aug 25, 2005 5:25 am Post subject: |
|
|
What does happen if you run alsamixer into a terminal? Does the mixer appear? |
|
Back to top |
|
|
Uber_n00b n00b
Joined: 29 Jun 2005 Posts: 39 Location: Pennsylvania, US
|
Posted: Thu Aug 25, 2005 6:08 pm Post subject: |
|
|
Yes, I can run alsamixer just fine. Also, to clear up the "no sound from web content" thing. I can stream music with xmms, i just don't get any sound if say, I watch a flash animation. |
|
Back to top |
|
|
Vortex375 Veteran
Joined: 03 Mar 2005 Posts: 1739 Location: Deutschland
|
Posted: Thu Aug 25, 2005 6:32 pm Post subject: |
|
|
Maybe all these applications use OSS and you have to set up alsa's OSS-emlation first.
To get the sound working in games you could try the following:
Code: |
# touch /etc/env.d/99sdl (if the file does not already exist).
# echo "SDL_AUDIODRIVER=alsa" >> /etc/env.d/99sdl
# env-update
|
Also try selecting the OSS-output plugin in XMMS and see if it still plays. |
|
Back to top |
|
|
Uber_n00b n00b
Joined: 29 Jun 2005 Posts: 39 Location: Pennsylvania, US
|
Posted: Fri Aug 26, 2005 6:13 pm Post subject: |
|
|
I gave that a try, but I'm still unable to get any audio output from games and the like. |
|
Back to top |
|
|
floTTes n00b
Joined: 03 Nov 2004 Posts: 16 Location: Berlin!
|
Posted: Sat Aug 27, 2005 12:54 am Post subject: |
|
|
Have you verified that hardware and/or software mixing of multiple sound sources works?
emerge alsaplayer (without GTK): Code: | USE="-gtk" emerge alsaplayer |
test ALSA: Code: | alsaplayer -o alsa bla1.mp3 &
alsaplayer -o alsa bla2.mp3 &
alsaplayer -o alsa bla3.mp3 |
test OSS: Code: | alsaplayer -o oss bla1.mp3 &
alsaplayer -o oss bla2.mp3 &
alsaplayer -o oss bla3.mp3 |
You should hear at least all sound sources with ALSA playback, otherwise hardware mixing isn't supported and/or software mixing broken. If you don't hear any of the OSS sound sources, you'll have to fix your OSS emulation. The OSS volume mixer is linked to the ALSA one. So i guess that's not the problem.
P.S.: I've been a forum member since Nov 2004 and this is my 1st post. Guess i'm a great listener! _________________ Urban Discipline! |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Aug 27, 2005 3:00 am Post subject: |
|
|
I don't know why esd is now merge but it block /dev/snd and so et and games can't open the device.
Try that:
- Disable sound server in gnome.
- killall esd
- exit (don't wanna play et as root hu?)
- et
ps: i don't know who depend on esound now, it was install as a dependency from my last update. |
|
Back to top |
|
|
Farner n00b
Joined: 14 Feb 2005 Posts: 45 Location: Malmö, Sweden
|
Posted: Sat Aug 27, 2005 10:31 am Post subject: |
|
|
Hi. I have the same problem as Uber_noob (https://forums.gentoo.org/viewtopic-t-374375.html). Now I have redone my kernel and tried using alsa and oss as modules because people seems to be using that. I have emerged alsa-driver utils oss tools and player now that I tried what flottes said. I got this to work Code: | alsaplayer -o alsa bla1.mp3 | but not this Code: | alsaplayer -o oss bla1.mp3 & | . Then I get this problem. Code: | alsaplayer -o oss 07-simple_plan-jump-jrp.mp3
Failed to load output plugin "oss". Trying defaults.
alsaplayer interrupted by signal 2plan - jump
|
So something is wrong with my oss, and I dont know what to do
And I also tried what you said krinn, didnt work either . _________________ Workstation: CPU: AMD64 3500+ (250*10=2500MHz) MEMORY: 1024MB GFX: Ati Radeon x850xt (Core: 550MHz MEM: 1.2GHz) OS: Gentoo x86_64 |
|
Back to top |
|
|
Farner n00b
Joined: 14 Feb 2005 Posts: 45 Location: Malmö, Sweden
|
Posted: Sat Aug 27, 2005 10:42 am Post subject: |
|
|
Everytime I boot since I changed my kernel I have had to do /etc/init.d/alsasound start for the sound to work at all. And I seem to get some problem:
Code: | /etc/init.d/alsasound start
* Loading ALSA modules ...
* Loading: snd-card-0 ...
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-hwdep.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.12-gentoo-r9/alsa-driver/pci/ac97/snd-ac97-codec.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/seq/snd-seq-device.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-rawmidi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_emu10k1 (/lib/modules/2.6.12-gentoo-r9/alsa-driver/pci/emu10k1/snd-emu10k1.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ] * Loading: snd-seq-oss ...
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/seq/snd-seq.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq_midi_event (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/seq/snd-seq-midi-event.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/seq/snd-seq-device.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_seq_oss (/lib/modules/2.6.12-gentoo-r9/kernel/sound/core/seq/oss/snd-seq-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ] * Loading: snd-pcm-oss ...
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.12-gentoo-r9/kernel/sound/core/oss/snd-mixer-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_pcm_oss (/lib/modules/2.6.12-gentoo-r9/kernel/sound/core/oss/snd-pcm-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ] * Loading: snd-mixer-oss ...
FATAL: Error inserting snd_mixer_oss (/lib/modules/2.6.12-gentoo-r9/kernel/sound/core/oss/snd-mixer-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ] * Loading: snd-seq ...
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_seq (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/seq/snd-seq.ko): Unknown symbol in module, or unknown parameter (see dme [ !! ] * Loading: snd-seq ...
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_seq (/lib/modules/2.6.12-gentoo-r9/alsa-driver/acore/seq/snd-seq.ko): Unknown symbol in module, or unknown parameter (see dme [ ok ] *
Restoring Mixer Levels ... [ ok ] |
_________________ Workstation: CPU: AMD64 3500+ (250*10=2500MHz) MEMORY: 1024MB GFX: Ati Radeon x850xt (Core: 550MHz MEM: 1.2GHz) OS: Gentoo x86_64 |
|
Back to top |
|
|
Farner n00b
Joined: 14 Feb 2005 Posts: 45 Location: Malmö, Sweden
|
Posted: Sat Aug 27, 2005 11:14 am Post subject: |
|
|
I did recompile my kernel again :p because when I read http://www.gentoo.org/doc/en/alsa-guide.xml I found that I had a problem, I had Code: | (Make sure OSS is disabled)
Open Sound System --->
< > Open Sound System (DEPRECATED) | loaded as a module.
And now I have unmerged every alsa thing, and merged alsa-driver utils and oss. But when I should do this Code: | cat /dev/urandom > /dev/dsp
Note: /dev/dsp is a symlink to /dev/sound/dsp and should be automatically created. Try re-directing the output to /dev/sound/dsp in case you don't get a "No such file or directory" error. | I dont have /dev/dsp but I dont have /dev/sound/dsp either :S
And further down, I see this that I should look at if I had some problem
Code: | (First and foremost, if /proc/asound/cards shows your card, ALSA has
picked up your sound card fine.)
# cat /proc/asound/cards
0 [Live ]: EMU10K1 - Sound Blaster Live!
Sound Blaster Live! (rev.6, serial:0x80271102) at 0xb800, irq 11
(If you run ALSA off the kernel like I do and wonder how far behind
you are from alsa-driver, this displays current running ALSA version)
# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.8 (Thu Jan 13 09:39:32 2005 UTC).
(ALSA OSS emulation details)
# cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.8 emulation code)
Kernel: Linux airwolf.zion 2.6.11ac1 #2 Wed May 4 00:35:08 IST 2005 i686
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
Sound Blaster Live! (rev.6, serial:0x80271102) at 0xb800, irq 11
Audio devices:
0: EMU10K1 (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices:
0: EMU10K1 MPU-401 (UART)
Timers:
7: system timer
Mixers:
0: SigmaTel STAC9721/23
|
This is what I have in mine /proc/asound/cards Code: | 0 [SB0350 ]: Audigy2 - Audigy 2 ZS [SB0350]
Audigy 2 ZS [SB0350] (rev.4, serial:0x20021102) at 0xdf00, irq 74
|
And when I do cat /proc/asound/version I get this:
Advanced Linux Sound Architecture Driver Version 1.0.9rc2 (Thu Mar 24 10:33:39 2005 UTC).
But I cant do cat /proc/asound/oss/sndstat because that doesnt exist. The directory /proc/asound/oss doesnt exist.
My sound still works in xmms but not in games. And shouldnt I have more things in my lsmod then 2? I only have this in my lsmod Code: | lsmod
Module Size Used by
fglrx 266848 7
snd_util_mem 4992 0 [permanent]
|
_________________ Workstation: CPU: AMD64 3500+ (250*10=2500MHz) MEMORY: 1024MB GFX: Ati Radeon x850xt (Core: 550MHz MEM: 1.2GHz) OS: Gentoo x86_64 |
|
Back to top |
|
|
floTTes n00b
Joined: 03 Nov 2004 Posts: 16 Location: Berlin!
|
Posted: Wed Aug 31, 2005 4:59 am Post subject: |
|
|
Just 2 modules loaded! WOW, a lightweight system!
First of all, DO NOT install the ALSA driver package, if you've enabled ALSA as kernel sound system (module or inbuilt). AFAIK, all you need are ... ehrm *thinking* ... the ALSA lib and headers. Be sure you've enabled ALSA OSS emulation (kernel, global USE var includes "OSS"), but NOT the native, kernel-inbuilt OSS. Anyway, i'd prefer the ALSA driver package against the inbuilt sound system.
1. make menuconfig, enable general sound support, disable inbuilt ALSA and OSS support, check: Code: | # cd /usr/src/linux
# grep SOUND .config
(1. is true)
CONFIG_SOUND=y
(2. is true)
CONFIG_SOUND_PRIME is not set
# grep SND .config
(and 3. is true)
CONFIG_SND is not set |
2. recompile and boot kernel (inc. modules), have a snack ...
3. set ALSA _compile-only-soundcard-module-var_ to your soundcard: Code: | # nano -w /etc/make.conf
ALSA_CARDS="emu10k1" |
4. emerge ALSA drivers with OSS emulation (i'm not sure about the OSS USE var ... using windows ... yeah ... blah! ... shouldn't be necessary anyway, check your global USE var): Code: | # USE="OSS" emerge alsa-driver |
5. emerge ALSA utils and follow the Gentoo ALSA guide: Code: | # USE="OSS" emerge alsa-utils
# links http://www.gentoo.org/doc/en/alsa-guide.xml#doc_chap3 |
Too easy! _________________ Urban Discipline! |
|
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
|
|