summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-02-06 14:25:10 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-02-06 14:25:10 +0000
commit58be404036c91ea0f41695499c5f108ab8ea6d18 (patch)
treee0c2161554984d3bc668ae48d7b494129487f5bc
parente5dbb4493f8536fa8c11556e6e792c8fb8d929db (diff)
correct monitor port matching.
-rw-r--r--sys/dev/audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index 4d2e9469613..8f552b9a2bd 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.36 2002/02/04 20:42:25 fgsch Exp $ */
+/* $OpenBSD: audio.c,v 1.37 2002/02/06 14:25:09 fgsch Exp $ */
/* $NetBSD: audio.c,v 1.105 1998/09/27 16:43:56 christos Exp $ */
/*
@@ -317,7 +317,7 @@ audioattach(parent, self, aux)
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",