Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Fix two small bugs:
details: https://anonhg.NetBSD.org/src/rev/ded6628a5717
branches: trunk
changeset: 473343:ded6628a5717
user: nathanw <nathanw%NetBSD.org@localhost>
date: Sun May 30 00:21:08 1999 +0000
description:
Fix two small bugs:
(1) Fix sense of a strcmp() test so that the monitor subdevice of the
mixer is properly identified.
(2) Use hw_if->set_port() instead of hw_if->get_port() when changinh
the monitor level in audiosetinfo().
Fixes PR kern/7661.
diffstat:
sys/dev/audio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a1665a3391eb -r ded6628a5717 sys/dev/audio.c
--- a/sys/dev/audio.c Sat May 29 22:44:11 1999 +0000
+++ b/sys/dev/audio.c Sun May 30 00:21:08 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.113 1999/02/26 01:18:09 nathanw Exp $ */
+/* $NetBSD: audio.c,v 1.114 1999/05/30 00:21:08 nathanw Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@@ -304,7 +304,7 @@
au_check_ports(sc, &sc->sc_outports, &mi, oclass,
AudioNoutput, AudioNmaster, otable);
if (mi.mixer_class == oclass &&
- strcmp(mi.label.name, AudioNmonitor))
+ (strcmp(mi.label.name, AudioNmonitor) == 0))
sc->sc_monitor_port = mi.index;
}
DPRINTF(("audio_attach: inputs ports=0x%x, output ports=0x%x\n",
@@ -2509,7 +2509,7 @@
ct.type = AUDIO_MIXER_VALUE;
ct.un.value.num_channels = 1;
ct.un.value.level[AUDIO_MIXER_LEVEL_MONO] = ai->monitor_gain;
- error = sc->hw_if->get_port(sc->hw_hdl, &ct);
+ error = sc->hw_if->set_port(sc->hw_hdl, &ct);
if (error)
return(error);
}
Home |
Main Index |
Thread Index |
Old Index