Redo rev. 1.42, fixing the original array subscript pasto the right way.
This commit is contained in:
parent
aa99a9cd13
commit
4d3ac0366b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: eso.c,v 1.47 2006/12/14 22:35:20 christos Exp $ */
|
||||
/* $NetBSD: eso.c,v 1.48 2006/12/18 23:13:39 kleink Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, 2000, 2004 Klaus J. Klein
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: eso.c,v 1.47 2006/12/14 22:35:20 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: eso.c,v 1.48 2006/12/18 23:13:39 kleink Exp $");
|
||||
|
||||
#include "mpu.h"
|
||||
|
||||
|
@ -1157,7 +1157,8 @@ eso_get_port(void *hdl, mixer_ctrl_t *cp)
|
|||
|
||||
case ESO_MASTER_MUTE:
|
||||
/* Reload from mixer after hardware volume control use. */
|
||||
eso_reload_master_vol(sc);
|
||||
if (sc->sc_gain[ESO_MASTER_VOL][ESO_LEFT] == (uint8_t)~0)
|
||||
eso_reload_master_vol(sc);
|
||||
cp->un.ord = sc->sc_mvmute;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue