[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: esd, alsa and APM suspend



Hi,

I had once the same problem Martin describes, with esd hanging after a
suspend/resume.  I solved it but I can't remember how.  Sorry!  :-(  I
know I've fiddle around with many things and at some point it was
working again...  

The best I can do now is to give you some hints on my current sound
installation.  This also answers Arief's request about a gnome sound
setup working alright...

"lspci" on my HP Omnibook 6100 tells me I have an "ESS Technology ES1988
Allegro-1 (rev 12)".  It has limited hardware mixing capabilities with
alsa.  I use esd, artsd and direct (alsa) access concurrently to the
sound card and it works!  :-)   (with some software mixing...)

First, I have replaced the package "libesd0" with "libesd-alsa0".

Second, I've installed the following ".asoundrc" file in my home dir. 
I've found this file somewhere but I can't remember where, so I can't
give the credits to the original writer.

==========================================================
# ~/.asoundrc

pcm.!default {
    type plug
    slave.pcm "dmixer"
}

pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}

pcm.dmixer  {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 16384
        #periods 128
        rate 44100
    }
    bindings {
        0 0
        1 1
    }
}

ctl.mixer0 {
    type hw
    card 0
}
==========================================================

With this setup, everything works.  If I use simultaneously
	$ esdplay sound.wav &
	$ artsplay sound.wav &
	$ aplay sound.wav &
I get the same sound played simultaneously 3 times (with a very light
delay on the sound produced by the 3 players).

I hope this can be of some help to you.  If you need some more info let
me know.

Joao


-- 
Joao Lourenco                  Tels: (+351) 212 948 536
Dep. Informatica                     (+351) 212 948 300
FCT / Univ. Nova de Lisboa      Ext: 10740
Quinta da Torre                 Fax: (+351) 212 948 541
P-2829-516 CAPARICA   http://www-asc.di.fct.unl.pt/~jml



Reply to: