NetBSD Problem Report #1277
From gnats Tue Jul 25 22:02:12 1995
Received: from azathoth (slip-5-11.shore.net [198.115.180.211]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id WAA03419 for <gnats-bugs@gnats.netbsd.org>; Tue, 25 Jul 1995 22:01:58 -0400
Message-Id: <199507260153.VAA00297@azathoth>
Date: Tue, 25 Jul 1995 21:53:26 -0400
From: Mike Long <mikel@shore.net>
Reply-To: Mike Long <mike.long@analog.com>
To: gnats-bugs@gnats.netbsd.org
Subject: delinting and small bug fixes for audio drivers
X-Send-Pr-Version: 3.2
>Number: 1277
>Category: kern
>Synopsis: delinting and small bug fixes for audio drivers
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 25 22:05:01 +0000 1995
>Closed-Date: Tue Mar 11 23:07:27 +0000 1997
>Last-Modified: Wed Mar 12 07:09:09 +0000 1997
>Originator: Mike Long
>Release: 7/24/95
>Organization:
We don't tolerate such perversity in these here parts
>Environment:
System: NetBSD azathoth 1.0A NetBSD 1.0A (AZATHOTH) #24: Tue Jul 25 01:54:42 EDT 1995 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386
>Description:
Prototype police, etc. The major changes (PSS & WSS) will be
sent in separately.
>How-To-Repeat:
build a GENERIC kernel.
>Fix:
1) Removed incorrect comment from /sys/dev/ic/cs4231reg.h.
(double-checked with John Kohl)
2) Prototypes for pasprobe() and pasattach().
3) Prototypes for sbprobe() and sbattach().
4) If you have more than one SB in your system, and they have
different version numbers, then the version number of the one last
attached is reported by the AUDIO_GETDEV ioctl.
*** cs4231reg.h.orig Fri Jul 7 02:57:34 1995
--- cs4231reg.h Sat Jul 8 13:17:01 1995
***************
*** 70,78 ****
- /*
- * The CS4231 mixer is write-only--it cannot be queried for current
- * settings. Drivers must keep track of current values themselves.
- */
-
/* CS4231/AD1845 mode2 registers; added to AD1848 registers */
#define CS_ALT_FEATURE1 0x10
--- 70,73 ----
*** pas.c.orig Mon Jul 24 08:29:17 1995
--- pas.c Mon Jul 24 20:52:00 1995
***************
*** 102,107 ****
int pasopen __P((dev_t, int));
! int pasprobe();
! void pasattach();
int pas_getdev __P((void *, struct audio_device *));
--- 102,107 ----
int pasopen __P((dev_t, int));
! int pasprobe __P((struct device *, void *, void *));
! void pasattach __P((struct device *, struct device *, void *));
int pas_getdev __P((void *, struct audio_device *));
*** sb.c.orig Mon Jul 24 08:29:18 1995
--- sb.c Mon Jul 24 23:40:48 1995
***************
*** 72,76 ****
};
! int sbprobe();
void sbattach __P((struct device *, struct device *, void *));
--- 72,76 ----
};
! int sbprobe __P((struct device *, void *, void *));
void sbattach __P((struct device *, struct device *, void *));
***************
*** 79,93 ****
};
- struct audio_device sb_device = {
- "SoundBlaster",
- "x",
- "sb"
- };
-
int sbopen __P((dev_t, int));
- int sbprobe();
- void sbattach();
-
int sb_getdev __P((void *, struct audio_device *));
--- 79,84 ----
***************
*** 145,152 ****
int
sbprobe(parent, self, aux)
! struct device *parent, *self;
! void *aux;
{
! register struct sbdsp_softc *sc = (void *)self;
register struct isa_attach_args *ia = aux;
register u_short iobase = ia->ia_iobase;
--- 136,143 ----
int
sbprobe(parent, self, aux)
! struct device *parent;
! void *self, *aux;
{
! register struct sbdsp_softc *sc = self;
register struct isa_attach_args *ia = aux;
register u_short iobase = ia->ia_iobase;
***************
*** 280,287 ****
sbdsp_attach(sc);
- sprintf(sb_device.version, "%d.%d",
- SBVER_MAJOR(sc->sc_model),
- SBVER_MINOR(sc->sc_model));
-
if ((err = audio_hardware_attach(&sb_hw_if, sc)) != 0)
printf("sb: could not attach to audio pseudo-device driver (%d)\n", err);
--- 271,274 ----
***************
*** 315,318 ****
--- 302,316 ----
struct audio_device *retp;
{
+ static struct audio_device sb_device = {
+ "SoundBlaster",
+ "",
+ "sb"
+ };
+ struct sbdsp_softc *sc = addr;
+
+ sprintf(sb_device.version, "%d.%02d",
+ SBVER_MAJOR(sc->sc_model),
+ SBVER_MINOR(sc->sc_model));
+
*retp = sb_device;
return 0;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed
State-Changed-By: mycroft
State-Changed-When: Fri Feb 16 03:10:05 EST 1996
State-Changed-Why:
Most of this patch applied. The change for multiple SBs is pending some
clarification on how AUDIO_GETDEV should really be handled.
State-Changed-From-To: analyzed->closed
State-Changed-By: mikel
State-Changed-When: Tue Mar 11 23:07:27 1997
State-Changed-Why:
closed by submitter's request (mine :). AUDIO_GETDEV will someday be
dealt with.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.