diff options
Diffstat (limited to 'sys/dev/audio.c')
-rw-r--r-- | sys/dev/audio.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 40dc9e9ea02..7ab08aba6d5 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.77 2007/09/17 13:35:46 jakemsr Exp $ */ +/* $OpenBSD: audio.c,v 1.78 2007/09/17 13:46:11 jakemsr Exp $ */ /* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */ /* @@ -2723,6 +2723,12 @@ audiosetinfo(struct audio_softc *sc, struct audio_info *ai) return(error); } + if (ai->output_muted != (u_char)~0) { + error = au_set_mute(sc, &sc->sc_outports, ai->output_muted); + if (error) + return(error); + } + if (ai->monitor_gain != ~0 && sc->sc_monitor_port != -1) { mixer_ctrl_t ct; @@ -2877,6 +2883,8 @@ audiogetinfo(struct audio_softc *sc, struct audio_info *ai) } else ai->monitor_gain = 0; + au_get_mute(sc, &sc->sc_outports, &ai->output_muted); + p->seek = sc->sc_pr.used / sc->sc_pparams.factor; r->seek = sc->sc_rr.used / sc->sc_rparams.factor; |