Thus spake Clemens Ladisch on Thu, Jan 22, 2004 at 09:26:31AM CST
> Lindsay Haisley wrote:
> > The control interface for the front speakers is 'PCM',0, can be assigned to
> > an alsa ctl with:
> >
> > ctl.main {
> >    type hw
> >    card 0
> > }
> >
> > ... but I can find no way to link level control for the rear speakers
> > defined in amxer as 'PCM',1 and 'Surround'1 with a ctl spec since there is
> > no provision in the asoundrc syntax for defining a control device other than
> > the 1st one.
> 
> A control 'device' is a set of all controls for an entire card.

Hmmm.  Documentation for pcm defs in .asoundrc differentiate between 'cards'
and 'devices' and I can, in fact, send an audio stream to one of the two
'deivces' on the card.
 
> > xmms allows me to define the "Surround" device as the mixer
> > control to link with the app's volume, but xmcd want's an alsa spec as
> > defined in ~/.asoundrc for the control (env var MIXERDEV).
> 
> That is, xmcd always uses mixer element "PCM",0 and assumes that this
> is the stream it's playing to?  Complain to the author of xmcd ... :-(

Looking at how xmms works, maybe this would be appropriate, and maybe I
could hack something appropriate in the meantime into xmcd.

> > Can anyone help me here, or is what I'm trying to do impossible?  One of two
> > things would be acceptable.
> >
> > *  If I could find some way to route gnome sounds to hw:0,1 then I could
> >    swap channels and all would be OK, since I don't really need a per-app
> >    volume control for gnome event sounds other than the gnome alsa mixer.
> 
> I guess gnome uses an OSS device like /dev/dsp.
> 
> ALSA's hw:0,0 is OSS device /dev/dsp0.
> ALSA's hw:0,1 is OSS device /dev/adsp0.
> /dev/dsp usually is a symlink to /dev/dsp0.

This is helpful!  Thanks.  I'm using devfs so it's /dev/sound/dsp and
/dev/sound/adsp.

> Either tell gnome to use /dev/adsp0 (there must be a configuration
> setting somewhere),

One would think so!  I couldn't find it.
 
> or try to change /dev/dsp:
>   rm /dev/dsp

Hmmm. I may need /dev/dsp for other things, but I'll give it a shot. 
/dev/dsp is a symlink under devfs to /dev/sound/dsp.

>   ln -s /dev/adsp0 /dev/dsp

-- 
Lindsay Haisley       | "Everything works    |     PGP public key
FMP Computer Services |       if you let it" |      available at
512-259-1190          |    (The Roadie)      | <http://www.fmp.com/pubkeys>
http://www.fmp.com    |                      |


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to