Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev midi_attach_mi(): Be explicit about using the "midib...



details:   https://anonhg.NetBSD.org/src/rev/629dd81010d9
branches:  trunk
changeset: 962001:629dd81010d9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Apr 26 21:54:56 2021 +0000

description:
midi_attach_mi(): Be explicit about using the "midibus" interface attribute,
as the caller may be a device that carries more than one.

diffstat:

 sys/dev/midi.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 8f0244d76576 -r 629dd81010d9 sys/dev/midi.c
--- a/sys/dev/midi.c    Mon Apr 26 21:53:53 2021 +0000
+++ b/sys/dev/midi.c    Mon Apr 26 21:54:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: midi.c,v 1.92 2021/04/24 23:36:52 thorpej Exp $        */
+/*     $NetBSD: midi.c,v 1.93 2021/04/26 21:54:56 thorpej Exp $        */
 
 /*
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.92 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.93 2021/04/26 21:54:56 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "midi.h"
@@ -1895,7 +1895,9 @@
        arg.type = AUDIODEV_TYPE_MIDI;
        arg.hwif = mhwp;
        arg.hdl = hdlp;
-       return (config_found(dev, &arg, audioprint, CFARG_EOL));
+       return (config_found(dev, &arg, audioprint,
+                            CFARG_IATTR, "midibus",
+                            CFARG_EOL));
 }
 
 #endif /* NMIDI > 0 || NMIDIBUS > 0 */



Home | Main Index | Thread Index | Old Index