Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't return the raw audio formats; return the o...



details:   https://anonhg.NetBSD.org/src/rev/b4f01b0077b2
branches:  trunk
changeset: 451229:b4f01b0077b2
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 11 02:34:19 2019 +0000

description:
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.

diffstat:

 sys/dev/pci/auich.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 815b5da1e813 -r b4f01b0077b2 sys/dev/pci/auich.c
--- a/sys/dev/pci/auich.c       Fri May 10 23:21:42 2019 +0000
+++ b/sys/dev/pci/auich.c       Sat May 11 02:34:19 2019 +0000
@@ -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 @@
                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);
        }
 }



Home | Main Index | Thread Index | Old Index