Module Name: src Committed By: thorpej Date: Mon Apr 26 14:02:49 UTC 2021
Modified Files: src/sys/dev/audio: audio.c Log Message: audio_attach_mi(): Be explicit about using the "audiobus" interface attribute, as the caller may be a device that carries more than one. To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/dev/audio/audio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/audio/audio.c diff -u src/sys/dev/audio/audio.c:1.92 src/sys/dev/audio/audio.c:1.93 --- src/sys/dev/audio/audio.c:1.92 Sat Apr 24 23:36:52 2021 +++ src/sys/dev/audio/audio.c Mon Apr 26 14:02:49 2021 @@ -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); } /*