Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio audio_attach_mi(): Be explicit about using the...



details:   https://anonhg.NetBSD.org/src/rev/7cbcde1d82d2
branches:  trunk
changeset: 378855:7cbcde1d82d2
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Apr 26 14:02:49 2021 +0000

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

diffstat:

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

diffs (29 lines):

diff -r 44336f0c362b -r 7cbcde1d82d2 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Mon Apr 26 14:01:47 2021 +0000
+++ b/sys/dev/audio/audio.c     Mon Apr 26 14:02:49 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.92 2021/04/24 23:36:52 thorpej Exp $       */
+/*     $NetBSD: audio.c,v 1.93 2021/04/26 14:02:49 thorpej Exp $       */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.92 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.93 2021/04/26 14:02:49 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -1440,7 +1440,9 @@ audio_attach_mi(const struct audio_hw_if
        arg.type = AUDIODEV_TYPE_AUDIO;
        arg.hwif = ahwp;
        arg.hdl = hdlp;
-       return config_found(dev, &arg, audioprint, CFARG_EOL);
+       return config_found(dev, &arg, audioprint,
+           CFARG_IATTR, "audiobus",
+           CFARG_EOL);
 }
 
 /*



Home | Main Index | Thread Index | Old Index