From owner-freebsd-current Sat Apr 17 11:26:41 1999 Delivered-To: freebsd-current@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 504EF14D87 for ; Sat, 17 Apr 1999 11:26:36 -0700 (PDT) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id OAA21905; Sat, 17 Apr 1999 14:24:03 -0400 (EDT) Date: Sat, 17 Apr 1999 14:24:01 -0400 (EDT) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Peter Wemm Cc: current@FreeBSD.ORG Subject: Re: new-bus breaks both sound drivers In-Reply-To: <19990417173603.95D531F58@spinner.netplex.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 18 Apr 1999, Peter Wemm wrote: > Brian Feldman wrote: > > On Sat, 17 Apr 1999, Peter Wemm wrote: > > > Chris Piazza wrote: > > > > On 17-Apr-99 Brian Feldman wrote: > > > > > Both sound drivers are broken with the new-bus code. My SB16, in the ol > d > > > > > driver, now gets recognized but sbxvi is never looked for. pcm0, the ne > w > > > > > driver, never initializes with the new code :( > > > > > > > > > > device pcm0 at isa? port? tty irq 5 drq 1 flags 0x16 > > > > > > > > > > > > > The pcm0 sounddriver works for me. In fact, the only problem I had with > new > > > > bus was it is now pcm0 instead of pcm1 ;-). > > > > > > > > es0: at device 9.0 on pci0 > > > > pcm0: using I/O space register mapping at 0xd800 > > > > es0: interrupting at irq 4 > > > > > > > > device pcm0 > > > > > > On two different systems it works for me using pcm0.. > > > Here's what's going on with the pcm code. I've got an on-board audio device > > that should probably eventually be supported, is PnP and detected, but > > not recognized by the pcm driver. However, my SB16 ALSO fails to be attached. > > My SB16 is a nice pre-PnP one, which used to work fine with either audio > > driver. I'll paste my current config and dmesg. > > [..] > > # Luigi's snd code. > > # You may also wish to enable the pnp controller with this, for pnp > > # sound cards. > > # > > device pcm0 > > device pcm1 at isa? port? tty irq 5 drq 1 flags 0x16 > [..] > > > Hmm, you might like to try this patch and see what happens, there is > a missing old driver wrapper for the pcm stuff. As a result, it's not > getting run from the isa probe. Regarding the other driver, I'm not > sure what's going on there as the hooks appear to be present. Thank you, that did work :) Now if someone could tell me why I need to keep seeing sorry, read DMA channel unavailable let me know. This seems to be something that I do NOT need to see from sb_dsp.c :P Other than that, everything's nice and peachy. No, wait, I forgot. IPFW is _not_ being recognized in the kernel, and the module is getting loaded instead (ipfw not being initialized?). > > Index: i386/isa/isa_compat.h > =================================================================== > RCS file: /home/ncvs/src/sys/i386/isa/isa_compat.h,v > retrieving revision 1.1 > diff -u -r1.1 isa_compat.h > --- isa_compat.h 1999/04/16 21:22:23 1.1 > +++ isa_compat.h 1999/04/17 17:30:34 > @@ -49,6 +49,7 @@ > #include "ze.h" > #include "zp.h" > #include "oltr.h" > +#include "pcm.h" > #include "pas.h" > #include "sb.h" > #include "sbxvi.h" > @@ -117,6 +118,7 @@ > extern struct isa_driver zedriver; > extern struct isa_driver zpdriver; > extern struct isa_driver oltrdriver; > +extern struct isa_driver pcmdriver; > extern struct isa_driver pasdriver; > extern struct isa_driver sbdriver; > extern struct isa_driver sbxvidriver; > @@ -320,6 +322,9 @@ > > #if NOLTR > 0 > { DRIVER_TYPE_MISC, &oltrdriver }, > +#endif > +#if NPCM > 0 > + { DRIVER_TYPE_MISC, &pcmdriver }, > #endif > #if NPAS > 0 > { DRIVER_TYPE_MISC, &pasdriver }, > > > Cheers, > -Peter > > Brian Feldman _ __ ___ ____ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ __ \ |) | http://www.freebsd.org _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message