From owner-freebsd-stable Thu Feb 8 10:59:59 2001 Delivered-To: freebsd-stable@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 609CE37B6BC for ; Thu, 8 Feb 2001 10:59:36 -0800 (PST) Received: from curly.cs.duke.edu (curly.cs.duke.edu [152.3.140.76]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id NAA07103; Thu, 8 Feb 2001 13:59:32 -0500 (EST) From: Darrell Anderson Received: (anderson@localhost) by curly.cs.duke.edu (8.8.5/8.6.9) id NAA12039; Thu, 8 Feb 2001 13:59:32 -0500 (EST) Message-Id: <200102081859.NAA12039@curly.cs.duke.edu> Subject: Re: FW: maestro3 driver broken? To: freebsd-stable@freebsd.org Date: Thu, 8 Feb 2001 13:59:31 -0500 (EST) Cc: vladimir@math.uic.edu, scott_long@btc.adaptec.com In-Reply-To: from "Long, Scott" at Feb 08, 2001 11:25:24 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: vladimir@math.uic.edu [mailto:vladimir@math.uic.edu] > Sent: Thursday, February 08, 2001 10:29 AM > To: freebsd-stable@freebsd.org > Subject: maestro3 driver broken? > > I had no luck compiling a recently-committed driver for > maestro3 sounds cards. The system is 4.2-STABLE, source > cvsup'ed on Feb 7, 2001. Running 'make depend; make' > in /usr/src/sys/modules/sound/driver/maestro3 > produces the output attached below. > > I have emailed to Darrell Anderson , > who seems to have written this driver, but just want to confirm > that I am not doing something wrong. Has anyone else run > into the same problem? I could compile the driver > before I did an upgrade (I believe my old sources were from > Jan 15, 2001, but I am not sure). 4.2-STABLE recently had the kobj changes from 5.0-CURRENT backported. I am moving to Scott Long's 5.0-CURRENT version, which should work in the STABLE now: http://people.freebsd.org/~scottl/maestro3/ That said, it doesn't work yet. It compiles cleanly and the module loads, but the attach fails. The driver's m3_pci_attach() calls pcm_addchan(), which in turn calls chn_init(). Then chn_init() calls CHANNEL_INIT(), but it doesn't invoke the driver's m3_pchan_init() as it should. The sound buf is never allocated, so chn_init() returns ENOMEM. I haven't had time to play with it much yet. The driver works in CURRENT; is there something different in the new method/class pcm framework between CURRENT and STABLE? -Darrell -- Department of Computer Science, Duke University, Durham, NC 27708-0129 Darrell Anderson, anderson -at- cs.duke.edu, http://www.cs.duke.edu/~anderson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message