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

Re: Auto unmuting the sound (was: Auto starting the sound)



On Fri, Mar 10, 2000 at 10:58:33PM +0200, Gaal Yahas wrote:
> On Fri, Mar 10, 2000 at 10:45:29PM +0200, Noam Meltzer wrote:
> 
> > Another question I asked in this previous thread was, how do I umute the
> > varius devices, automatically, and with the specific settings I want.
> > This question wasn't answered yet, and thats my question now.
> > I'll appriciate your help.
> 
> man aumix
> or
> man mixer

The right way with ALSA (which doesn't depend on OSS emulation
modules to be loaded) is amixer.
amixer set PCM 100% unmute
(or something like that - run "amixer" to see the list of controls)

If you did the modules.conf job right, this won't make
OSS modules load on startup (taking time and RAM), but only
when legacy apps require /dev/dsp.

Anyhow, I was trying to make xmms-alsa support the new
0.5.x ALSA API (where they changed API severly and made
anything built for old ALSA not compile, and anything binary
not run), I've managed to hang the box completely from user-space
(non root too), repeatedly. I'm using snd-ens1371 and
OSS support worked fine, as well as the newest alsa-player
(from which I tried ripping stuff into xmms-alsa).

It hangs on PLAY. Happened after I inserted:
snd_pcm_playback_go(curpcminfo->handle);
in audio.c, while status was:
SND_PCM_STATUS_PREPARED         2       /* channel is ready to go */
I was running ALSA 0.5.3.

See it at http://terra.galanet.net/~future/xmms-alsa-broken/
(try the compiled libALSA.so by copying into /usr/lib/xmms/Output
and restarting xmms)

-- 
Best regards,
Ilya Konstantinov a.k.a Toastie
[http://toast.demon.co.il]

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il