Mask off extra usemode bits.

This commit is contained in:
mycroft 1998-08-09 05:44:51 +00:00
parent 5eba82397c
commit 9bedf069cd
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: audio.c,v 1.93 1998/08/09 04:54:44 mycroft Exp $ */ /* $NetBSD: audio.c,v 1.94 1998/08/09 05:44:51 mycroft Exp $ */
/* /*
* Copyright (c) 1991-1993 Regents of the University of California. * Copyright (c) 1991-1993 Regents of the University of California.
@ -2387,7 +2387,8 @@ audiosetinfo(sc, ai)
else if (setmode == AUMODE_PLAY) else if (setmode == AUMODE_PLAY)
rp = pp; rp = pp;
} }
error = hw->set_params(sc->hw_hdl, setmode, sc->sc_mode, &pp, &rp); error = hw->set_params(sc->hw_hdl, setmode,
sc->sc_mode & (AUMODE_PLAY | AUMODE_RECORD), &pp, &rp);
if (error) if (error)
return (error); return (error);
if (!indep) { if (!indep) {