View previous topic :: View next topic |
Author |
Message |
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Fri Sep 09, 2005 4:19 pm Post subject: ALSA refuses to play sound, need help desperately, please! |
|
|
I have the ESS 1869 on my laptop (that a lot of posts on this forum involve) - it's a Compaq Armada 1700;
the thing is I've been working on trying to get the sound to work for the past days, and after reading through
this forum for clues, I've come to a point where everything loads as it should, no warning messages, but still:
NO SOUND!
The relevant config files (and output data)
/etc/conf.d/alsasound
Code: |
# Do you want to enable in-kernel oss emulation?
# no - Do not load oss emul drivers
# yes - Load oss emul drivers if they're found
ENABLE_OSS_EMUL="yes"
# RESTORE_ON_START:
# Do you want to restore your mixer settings? If not, your cards will be
# muted.
# no - Do not restore state
# yes - Restore state
RESTORE_ON_START="yes"
# SAVE_ON_STOP:
# Do you want to save changes made to your mixer volumes when alsasound
# stops?
# no - Do not save state
# yes - Save state
SAVE_ON_STOP="yes"
|
/etc/modules.d/alsa
Code: | 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.
# --- 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-es18xx
alias sound-slot-0 snd-es18xx
options snd-es18xx isapnp=0 dma1=3 dma2=1 irq=10
# --- END: Generated by ALSACONF, do not edit. ---
|
command: ls /dev/sound -al output
Code: |
total 0
drwxr-xr-x 2 root root 100 Sep 9 17:47 .
drwxr-xr-x 23 root root 29820 Sep 9 17:48 ..
crw-rw---- 1 root audio 14, 4 Sep 9 17:47 audio
crw-rw---- 1 root audio 14, 3 Sep 9 17:47 dsp
crw-rw---- 1 root audio 14, 0 Sep 9 17:47 mixer
|
command: ls /dev/dsp* -al output
Code: |
lrwxrwxrwx 1 root root 9 Sep 9 17:47 /dev/dsp -> sound/dsp
crw-rw---- 1 root audio 14, 19 Jul 22 12:51 /dev/dsp1
crw-rw---- 1 root audio 14, 35 Jul 22 12:51 /dev/dsp2
crw-rw---- 1 root audio 14, 51 Jul 22 12:51 /dev/dsp3
crw-rw---- 1 root audio 14, 5 Sep 6 21:44 /dev/dspW
|
In the dmesg, I however get this:
ALSA wrote: |
EISA: Probing bus 0 at eisa.0
Advanced Linux Sound Architecture Driver Version 1.0.9rc2 (Thu Mar 24 10:33:39 2005 UTC).
ALSA device list:
No soundcards found.
|
BUT! When I run the /etc/init.d/alsasound start, I get this:
alsasound wrote: |
* Loading ALSA modules ...
* Loading: snd-card-0 ... [ ok ]
* Restoring Mixer Levels ... [ ok ]
|
Relevant listings in /proc/asound/
Code: |
ES1869 card0 cards devices hwdep oss pcm seq timers version
|
Output of:
devices
Code: | 1: : sequencer
16: [0- 0]: digital audio playback
24: [0- 0]: digital audio capture
0: [0- 0]: ctl
33: : timer
|
cards
Code: |
0 [ES1869 ]: ES1869 - ESS AudioDrive ES1869
ESS AudioDrive ES1869 at 0x220, irq 10, dma1 3, dma2 1
|
pcm
Code: |
00-00: ES1869 : ESS AudioDrive ES1869 : playback 2 : capture 1
|
Relevant listings in /proc/asound/ES1869
Code: |
id oss_mixer pcm0c pcm0p
|
Output of:
oss_mixer
Code: |
VOLUME "Master" 0
BASS "" 0
TREBLE "" 0
SYNTH "FM" 0
PCM "PCM" 0
SPEAKER "PC Speaker" 0
LINE "Line" 0
MIC "Mic" 0
CD "CD" 0
IMIX "" 0
ALTPCM "PCM" 1
RECLEV "" 0
IGAIN "Capture" 0
OGAIN "" 0
LINE1 "Aux" 0
LINE2 "" 0
LINE3 "" 0
DIGITAL1 "" 0
DIGITAL2 "" 0
DIGITAL3 "" 0
PHONEIN "" 0
PHONEOUT "" 0
VIDEO "" 0
RADIO "" 0
MONITOR "" 0
|
This one troubles me a bit, the main mixer (through alsamixer) lists all relevant devices as "volume on", but not this one?
-----
Would appreciate any help. _________________ -doh
Last edited by fisk on Sat Sep 10, 2005 7:55 am; edited 4 times in total |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Fri Sep 09, 2005 4:22 pm Post subject: |
|
|
Oh, here's the output of lsmod:
Code: |
snd_es18xx 29000 2
snd_opl3_lib 9216 1 snd_es18xx
snd_hwdep 7328 1 snd_opl3_lib
snd_mpu401_uart 6400 1 snd_es18xx
snd_rawmidi 20640 1 snd_mpu401_uart
|
_________________ -doh |
|
Back to top |
|
|
Vortex375 Veteran
Joined: 03 Mar 2005 Posts: 1739 Location: Deutschland
|
Posted: Fri Sep 09, 2005 4:45 pm Post subject: |
|
|
When you try to play a file in XMMS for example, does it tell you it cannot open the audio device or does it start playing and you can't hear anything?
If it looks like it plays but you are unable to hear anything then you might want to post the output of "amixer". Sometimes you just have to unmute an unsignificant control in alsamixer. Did you try playing around with all the availabe controls?
By the way I just looked at my oss_mix and it looks just like yours:
Code: |
VOLUME "Master" 0
BASS "Tone Control - Bass" 0
TREBLE "Tone Control - Treble" 0
SYNTH "Synth" 0
PCM "PCM" 0
SPEAKER "PC Speaker" 0
LINE "Line" 0
MIC "Mic" 0
CD "CD" 0
IMIX "" 0
ALTPCM "Headphone" 0
RECLEV "" 0
IGAIN "" 0
OGAIN "" 0
LINE1 "Aux" 0
LINE2 "" 0
LINE3 "" 0
DIGITAL1 "IEC958 Optical" 0
DIGITAL2 "" 0
DIGITAL3 "" 0
PHONEIN "Phone" 0
PHONEOUT "Phone" 0
VIDEO "" 0
RADIO "" 0
MONITOR "" 0
|
So I don't think that's a problem. |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Fri Sep 09, 2005 4:58 pm Post subject: |
|
|
XMMS gets stuck on 00:00
both through the ALSA-plugin and the OSS,
OSS uses /dev/dsp
and
ALSA uses Audio device: hw0:0, which is
"ESS AudioDrive ES1869: ESS AudioDrive ES1869 (hw:0,0) _________________ -doh |
|
Back to top |
|
|
Vortex375 Veteran
Joined: 03 Mar 2005 Posts: 1739 Location: Deutschland
|
Posted: Fri Sep 09, 2005 6:03 pm Post subject: |
|
|
I really don't have a clue. You could try starting XMMS from a console and see if it outputs some kind of error message. If you are unlucky you could probably try another player. Mplayer is usually quite talkative when run with the -v flag. |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Fri Sep 09, 2005 7:56 pm Post subject: |
|
|
Output of amixer:
Code: |
fisk@edoras ~ $ amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Mono
Limits: Playback 0 - 63
Mono: Capture [off]
Front Left: Playback 51 [81%] [on]
Front Right: Playback 2 [81%] [on]
Simple mixer control '3D Control - Level',0
Capabilities: volume volume-joined
Playback channels: Mono
Limits: 0 - 63
Mono: 48 [76%]
Simple mixer control '3D Control - Switch',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'PCM',0
Capabilities: pvolume cvolume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 15 Capture 0 - 15
Front Left: Playback 13 [87%] Capture 13 [87%]
Front Right: Playback 13 [87%] Capture 13 [87%]
Simple mixer control 'PCM',1
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 15
Front Left: Playback 13 [87%]
Front Right: Playback 13 [87%]
Simple mixer control 'FM',0
Capabilities: pvolume cvolume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 15 Capture 0 - 15
Front Left: Playback 0 [0%] Capture 0 [0%]
Front Right: Playback 0 [0%] Capture 0 [0%]
Simple mixer control 'Line',0
Capabilities: pvolume cvolume cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 15 Capture 0 - 15
Front Left: Playback 0 [0%] Capture 0 [0%] [off]
Front Right: Playback 0 [0%] Capture 0 [0%] [off]
Simple mixer control 'CD',0
Capabilities: pvolume cvolume cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 15 Capture 0 - 15
Front Left: Playback 0 [0%] Capture 0 [0%] [off]
Front Right: Playback 0 [0%] Capture 0 [0%] [off]
Simple mixer control 'Mic',0
Capabilities: pvolume cvolume cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 15 Capture 0 - 15
Front Left: Playback 0 [0%] Capture 0 [0%] [off]
Front Right: Playback 0 [0%] Capture 0 [0%] [off]
Simple mixer control 'Mic Boost (+26dB)',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Mic Master',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [off]
Simple mixer control 'Mic1',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [off]
Simple mixer control 'PC Speaker',0
Capabilities: pvolume pvolume-joined
Playback channels: Mono
Limits: Playback 0 - 7
Mono: Playback 7 [100%]
Simple mixer control 'Aux',0
Capabilities: pvolume cvolume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 15 Capture 0 - 15
Front Left: Playback 10 [67%] Capture 0 [0%]
Front Right: Playback 10 [67%] Capture 0 [0%]
Simple mixer control 'Mono',0
Capabilities: pvolume cvolume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 15 Capture 0 - 15
Front Left: Playback 11 [73%] Capture 0 [0%]
Front Right: Playback 11 [73%] Capture 0 [0%]
Simple mixer control 'Mono Input',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 15
Front Left: Playback 11 [73%]
Front Right: Playback 11 [73%]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 15
Front Left: Capture 0 [0%] [off]
Front Right: Capture 0 [0%] [off]
Simple mixer control 'Mix',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [on]
Simple mixer control 'AOUT',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [off]
Simple mixer control 'Hardware Master',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 63
Front Left: Playback 49 [78%] [on]
Front Right: Playback 49 [78%] [on]
Simple mixer control 'Hardware Master Volume Split',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Record Monitor',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
|
_________________ -doh
Last edited by fisk on Sun Sep 11, 2005 11:36 pm; edited 1 time in total |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Fri Sep 09, 2005 9:29 pm Post subject: |
|
|
Ok, I've finally got XMMS to not just "freeze" upon playing a song, but despite the sound-meters are obviously moving, the sound is dead quiet (really frustrating!)
The thing is, I can clearly hear the speakers "click", when the sound-module is loaded, but the darned thing won't play!
:/ _________________ -doh |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Fri Sep 09, 2005 10:45 pm Post subject: |
|
|
mpg123 worked for one song, then I got extatic, and started XMMS, and nothing played (it just stops at 00:00),
bewildered, I ran mpg123 again, and it starts to "play", but no sound.
*shrieks out in frustration* _________________ -doh |
|
Back to top |
|
|
Vortex375 Veteran
Joined: 03 Mar 2005 Posts: 1739 Location: Deutschland
|
Posted: Fri Sep 09, 2005 10:48 pm Post subject: |
|
|
Maybe your Desktop Environment has a mixer application that messed up the mixer settings.
Which output plugin is selected in XMMS? If alsa is not working try OSS, or another available one.
So far, your problem really sounds strange. It's not usual for something to work at first and then stop working all of a sudden, at least that's what I've experienced so far. |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Fri Sep 09, 2005 11:01 pm Post subject: |
|
|
That's it, the kernel-drivers are out the door, I'm going to try with alsa-driver instead. _________________ -doh |
|
Back to top |
|
|
PMT Apprentice
Joined: 19 Jan 2004 Posts: 212
|
Posted: Sat Sep 10, 2005 12:25 am Post subject: |
|
|
Mayhaps artsd or esd is commandeering your sound card? The former is more likely than the latter...
I've had this problem with shitty sound cards that don't like sharing hardware before, though...I'll let you know if I recall how to fix it. _________________ moo |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sat Sep 10, 2005 12:56 am Post subject: |
|
|
I don't use KDE, so I doubt it. _________________ -doh |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sat Sep 10, 2005 6:04 am Post subject: |
|
|
killall udevd
udevstart
alsamixer (and unmute the Master-channel)
Seems to half-solve the issue, I can now play mp3:s through OSS-emulated mpg123, BUT (and this is rather hilarious) XMMS can't play it, XMMS still acts like the total party-pooper and refuses to play, neither through the OSS-driver, nor the ALSA-driver. _________________ -doh |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sat Sep 10, 2005 6:11 am Post subject: |
|
|
This is what alsaplayer says:
Code: |
ALSA lib pcm_dmix.c:802:(snd_pcm_dmix_open) unable to open slave snd_pcm_open: No such file or directory (default)
Failed to initialize plugin!
Failed to register plugin: /usr/lib/alsaplayer/output/libalsa_out.so
Failed o load output plugin "alsa". Trying defaults.
|
I assume that this has litte (or nothing) to do with the native soundcard-support, but I'll add it here anyway.
output of lsof /dev/dsp (and, /dev/sound/dsp) upon trying to play a song with xmms
Code: |
edoras ~ # lsof /dev/sound/dsp
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xmms 12552 fisk 11w CHR 14,3 20520 /dev/sound/dsp
xmms 12553 fisk 11w CHR 14,3 20520 /dev/sound/dsp
xmms 12554 fisk 11w CHR 14,3 20520 /dev/sound/dsp
xmms 12555 fisk 11w CHR 14,3 20520 /dev/sound/dsp
xmms 12556 fisk 11w CHR 14,3 20520 /dev/sound/dsp
xmms 12557 fisk 11w CHR 14,3 20520 /dev/sound/dsp
|
This is extremely erratic, and seems to stop working from time to time.
Now it seems as if udevd just dies when starting it (can't figure out why)
dmesg gave this:
Code: |
Device 'snd_generic_pm.0' does not have a release() function, it is broken and must be fixed.
Badness in device_release at drivers/base/core.c:83
[<c01ffbd8>] kobject_cleanup+0x98/0xa0
[<c01ffbe0>] kobject_release+0x0/0x10
[<c020060d>] kref_put+0x3d/0xb0
[<c01ffc0f>] kobject_put+0x1f/0x30
[<c01ffc0f>] kobject_put+0x1f/0x30
[<c01ffbe0>] kobject_release+0x0/0x10
[<ca9bba13>] snd_generic_device_unregister+0x13/0x30 [snd]
[<ca9baf7d>] snd_card_free+0x29d/0x2c0 [snd]
[<c01ffc0f>] kobject_put+0x1f/0x30
[<c01ffbe0>] kobject_release+0x0/0x10
[<c020060d>] kref_put+0x3d/0xb0
[<c01ffc0f>] kobject_put+0x1f/0x30
[<c01ffc0f>] kobject_put+0x1f/0x30
[<c01ffbe0>] kobject_release+0x0/0x10
[<c01ffc0f>] kobject_put+0x1f/0x30
[<caa1e7e0>] alsa_card_es18xx_exit+0x30/0x38 [snd_es18xx]
[<c012d814>] sys_delete_module+0x144/0x180
[<c01484d4>] sys_munmap+0x44/0x70
[<c0102c25>] syscall_call+0x7/0xb
|
_________________ -doh |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sat Sep 10, 2005 6:31 am Post subject: |
|
|
*scratches his head*
I have two consoles open, both logged in as root, in one when I type: mpg123 /home/fisk/chans.mp3 I can listen to music, fine and well - in the other (after switching off the first), nothing happens!
I am so utterly confused.
---
I'm getting crazy at this... now I can't play mp3:s again, despite being root, and despite first killing udev
*cries* _________________ -doh |
|
Back to top |
|
|
Vortex375 Veteran
Joined: 03 Mar 2005 Posts: 1739 Location: Deutschland
|
Posted: Sat Sep 10, 2005 11:29 am Post subject: |
|
|
Do a "cat /proc/asound/card0/pcm0p/info". At the bottom you should see something like
Code: |
subdevices_count: 32
subdevices_avail: 31
|
If no devices are available you cannot playback anything. This is usually caused by another application which is blocking the soundcard. |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sat Sep 10, 2005 5:05 pm Post subject: |
|
|
Code: |
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: ES1869
name: ESS AudioDrive ES1869
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 2
subdevices_avail: 2
|
Is what it says right now, and no sound is able to play. _________________ -doh |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sun Sep 11, 2005 5:34 am Post subject: |
|
|
Seems like this shall remain a mystery unsolved.
I've turned everywhere, and all I've managed to get within my grasps are the sympathetic utterings: "Oh, sounds unusual, can't help you".
The harsh, but perhaps true, advice I've received is that the ESS1869 is an old sound card, and probably isn't worth my time any way.
It's a pity, in Windows it worked like a charm.
Is this it, do I have to turn to the dark side to be able to listen to music on my laptop? :/ _________________ -doh |
|
Back to top |
|
|
Old School Apprentice
Joined: 20 Nov 2004 Posts: 252 Location: West Bank of the Coast Fork
|
Posted: Sun Sep 11, 2005 7:08 am Post subject: |
|
|
If you have the MAD MPEG Decoder plugin on XMMS, disable it and see what happens. _________________ www.otw20.com
The further a society drifts from truth, the more it will hate those who speak it.
George Orwell |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sun Sep 11, 2005 8:33 pm Post subject: |
|
|
menelmacar wrote: | If you have the MAD MPEG Decoder plugin on XMMS, disable it and see what happens. |
No difference.
Like previously shown, this is most probably a config/driver-setting issue (or all ESS1869:s won't work in linux) _________________ -doh |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sun Sep 11, 2005 10:26 pm Post subject: |
|
|
Hahaha, this is hilarious!
I can play music now...
BUT!
Only if I start X, XMMS, and press "play" on a song [which doesn't really play the song], and then (ie. in a console) run mpg123 and play a song!
Hooray for the miracles of silly software! _________________ -doh |
|
Back to top |
|
|
fisk n00b
Joined: 29 Mar 2004 Posts: 63
|
Posted: Sun Sep 11, 2005 10:27 pm Post subject: |
|
|
WTF?!
Now it played in XMMS directly, but when I pressed STOP, and PLAY again, it stopped working...
(oh, and the mixer seems not to work )
---
in ALSAMIXER I have TWO (2) PCM
One that does precisely nothing, and the other PCM1, that affects volume... however, I can't choose the other in XMMS _________________ -doh |
|
Back to top |
|
|
|