From owner-freebsd-multimedia Mon Jul 14 01:11:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA07341 for multimedia-outgoing; Mon, 14 Jul 1997 01:11:55 -0700 (PDT) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id BAA07291 for ; Mon, 14 Jul 1997 01:11:08 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id IAA10172; Mon, 14 Jul 1997 08:57:48 +0200 From: Luigi Rizzo Message-Id: <199707140657.IAA10172@labinfo.iet.unipi.it> Subject: Re: guspnp9: strange dma #s in probe output To: rhh@ct.picker.com (Randall Hopper) Date: Mon, 14 Jul 1997 08:57:48 +0200 (MET DST) Cc: hasty@rah.star-gate.com, multimedia@FreeBSD.ORG In-Reply-To: <19970713204557.61315@ct.picker.com> from "Randall Hopper" at Jul 13, 97 08:45:38 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I noticed that in the verbose probe output from the sound driver, that > there are "two" DMAs being printed for the "sb" and "sbxvi" devices. They > each only use one. > > The should be sb = 1 and sbxvi = 5. It's printing sb = 1,7; sbxvi = 5,7. > > Does this indicate a problem, or should I ignore it? I think I know where the problem is. The "flags" field is misused to hold the secondary dma channel, but originally 0 meant no secondary dma. Now it appears that some PnP cards that I have default to use DMA 0 as the secondary DMA, so I had to patch the code in order to make this possible. The solution I used was to use the low three bits as dma address, and an additional bit to flag that the secondary dma address was used. Because of this masking, the "-1" which is the internal representation of "no secondary dma" has become 7. This might or might not cause problems later, so better check it. Thanks for pointing this out. Cheers Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________