Subject: kern/996: audio driver nits
To: None <gnats-admin@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 04/26/1995 00:05:05
>Number: 996
>Category: kern
>Synopsis: some minor things with the audio drivers
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 26 00:05:02 1995
>Originator: Mike Long
>Organization:
We don't need no steenking organization!
>Release: 4/25/95
>Environment:
System: NetBSD azathoth 1.0A NetBSD 1.0A (AZATHOTH) #2: Sun Mar 26 06:39:10 EST 1995 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386
>Description:
Just a few minor things in the audio driver that have been
bothering me:
1) change #include so pss.c will compile
2) add/update driver descriptions to files.isa
3) SB DSP minor version # is always two digits: 2.01 instead of 2.1
>How-To-Repeat:
build a kernel?
>Fix:
--- /sys/dev/isa/pss.c~ Tue Apr 18 06:16:41 1995
+++ /sys/dev/isa/pss.c Sun Apr 23 19:03:23 1995
@@ -67,7 +67,7 @@
#include <dev/audio_if.h>
#include <dev/isa/isavar.h>
-#include <dev/isa/dmavar.h>
+#include <dev/isa/isadmavar.h>
#include <i386/isa/icu.h> /* XXX BROKEN; WHY? */
#include <dev/isa/ad1848var.h>
--- /sys/dev/isa/files.isa~ Thu Apr 20 06:18:47 1995
+++ /sys/dev/isa/files.isa Wed Apr 26 02:06:49 1995
@@ -173,11 +173,11 @@
device pas at isa: audio, isadma, sbdsp
file dev/isa/pas.c pas needs-flag
-# ad1848 (XXX what is it?) chip spport; used by other drivers
+# AD1848 (CS4248, CS4231, AD1845) audio codec support; used by other drivers
define ad1848
file dev/isa/ad1848.c ad1848
-# (XXX what is this?)
+# Audio systems based on Echo Speech Corp. ESC61[45] ASICs
device pss at isa {[port = -1], [size = 0],
[iomem = -1], [iosiz = 0],
[irq = -1], [drq = -1]}
--- /sys/dev/isa/sbdsp.c~ Tue Apr 18 06:16:44 1995
+++ /sys/dev/isa/sbdsp.c Wed Apr 26 01:48:37 1995
@@ -188,7 +188,7 @@
for (i = 0; i < SB_NDEVS; i++)
sc->gain[i] = sbdsp_stereo_vol(SBP_MAXVOL, SBP_MAXVOL);
}
- printf(": dsp v%d.%d\n",
+ printf(": dsp v%d.%02d\n",
SBVER_MAJOR(sc->sc_model), SBVER_MINOR(sc->sc_model));
}
>Audit-Trail:
>Unformatted: