Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add RECORD to the conversion table, otherwise we...



details:   https://anonhg.NetBSD.org/src/rev/67e5bea94df5
branches:  trunk
changeset: 571305:67e5bea94df5
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Nov 16 19:33:56 2004 +0000

description:
Add RECORD to the conversion table, otherwise we panic on boot.
The fact that we cannot record (yet) is found out later anyway.

diffstat:

 sys/dev/pci/auacer.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 843fbd1f7bb8 -r 67e5bea94df5 sys/dev/pci/auacer.c
--- a/sys/dev/pci/auacer.c      Tue Nov 16 18:36:15 2004 +0000
+++ b/sys/dev/pci/auacer.c      Tue Nov 16 19:33:56 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auacer.c,v 1.4 2004/11/13 15:00:48 kent Exp $  */
+/*     $NetBSD: auacer.c,v 1.5 2004/11/16 19:33:56 augustss Exp $      */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 /*
  * Acer Labs M5455 audio driver
  *
- * Acer provides data sheets after signing an NDA.
+ * Acer provides data sheets after signing an NDA, so this is guess work.
  * The chip behaves somewhat like the Intel i8x0, so this driver
  * is loosely based on the auich driver.  Additional information taken from
  * the ALSA intel8x0.c driver (which handles M5455 as well).
@@ -51,7 +51,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auacer.c,v 1.4 2004/11/13 15:00:48 kent Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auacer.c,v 1.5 2004/11/16 19:33:56 augustss Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -236,7 +236,7 @@
 #define AUACER_FORMATS_4CH     1
 #define AUACER_FORMATS_6CH     2
 static const struct audio_format auacer_formats[AUACER_NFORMATS] = {
-       {NULL, AUMODE_PLAY /*| AUMODE_RECORD*/, AUDIO_ENCODING_SLINEAR_LE, 16, 16,
+       {NULL, AUMODE_PLAY | AUMODE_RECORD, AUDIO_ENCODING_SLINEAR_LE, 16, 16,
         2, AUFMT_STEREO, 0, {8000, 48000}},
        {NULL, AUMODE_PLAY, AUDIO_ENCODING_SLINEAR_LE, 16, 16,
         4, AUFMT_SURROUND4, 0, {8000, 48000}},
@@ -1007,7 +1007,7 @@
        if ((error = bus_dmamap_load(sc->dmat, sc->sc_cddmamap,
                                     sc->sc_cdata, sizeof(struct auacer_cdata),
                                     NULL, 0)) != 0) {
-               printf("%s: unable tp load control data DMA map, "
+               printf("%s: unable to load control data DMA map, "
                    "error = %d\n", sc->sc_dev.dv_xname, error);
                goto fail_3;
        }



Home | Main Index | Thread Index | Old Index