[Spice-devel] [vdagent-linux PATCH v2 1/2] audio: add functions to set volume/mute with alsa

Victor Toso victortoso at redhat.com
Mon Mar 23 10:00:42 PDT 2015


On Mon, Mar 23, 2015 at 12:47:25PM -0400, Marc-André Lureau wrote:
> Hi
> 
> ----- Original Message -----
> > > > +        vol = (mute) ? min : CLAMP(volume[0], min, max);
> > >
> > > It probably doesn't make a big difference, but why did you not set mute?
> > 
> > No API for mute in alsa?
> 
> I think it's snd_mixer_selem_set_{playback,capture}_switch_all()

Indeed it is better. Thanks, fixed.


More information about the Spice-devel mailing list