Module Name: src Committed By: christos Date: Sat May 11 02:34:19 UTC 2019
Modified Files: src/sys/dev/pci: auich.c Log Message: Don't return the raw audio formats; return the ones after we disabled some of them because the device does not support them. Fixes panic in virtualbox. To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 src/sys/dev/pci/auich.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/pci/auich.c diff -u src/sys/dev/pci/auich.c:1.155 src/sys/dev/pci/auich.c:1.156 --- src/sys/dev/pci/auich.c:1.155 Wed May 8 09:40:18 2019 +++ src/sys/dev/pci/auich.c Fri May 10 22:34:19 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: auich.c,v 1.155 2019/05/08 13:40:18 isaki Exp $ */ +/* $NetBSD: auich.c,v 1.156 2019/05/11 02:34:19 christos Exp $ */ /*- * Copyright (c) 2000, 2004, 2005, 2008 The NetBSD Foundation, Inc. @@ -111,7 +111,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.155 2019/05/08 13:40:18 isaki Exp $"); +__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.156 2019/05/11 02:34:19 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -959,7 +959,7 @@ auich_query_format(void *v, struct audio return audio_query_format(auich_spdif_formats, AUICH_SPDIF_NFORMATS, afp); } else { - return audio_query_format(auich_audio_formats, + return audio_query_format(sc->sc_audio_formats, AUICH_AUDIO_NFORMATS, afp); } }