From owner-freebsd-multimedia Mon Aug 18 04:52:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA16202 for multimedia-outgoing; Mon, 18 Aug 1997 04:52:56 -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 EAA16174; Mon, 18 Aug 1997 04:52:50 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id MAA10169; Mon, 18 Aug 1997 12:41:43 +0200 From: Luigi Rizzo Message-Id: <199708181041.MAA10169@labinfo.iet.unipi.it> Subject: Re: Problem with my Wincast, fxtv To: hasty@rah.star-gate.com (Amancio Hasty) Date: Mon, 18 Aug 1997 12:41:43 +0200 (MET DST) Cc: msmith@atrad.adelaide.edu.au, terry@lambert.org, mestery@winternet.com, freebsd-multimedia@FreeBSD.ORG, current@FreeBSD.ORG In-Reply-To: <199708180405.VAA03040@rah.star-gate.com> from "Amancio Hasty" at Aug 17, 97 09:04:53 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Please, post proposed changes to the multimedia mailing first so at > the very least the multimedia group can present a unified consesus > agreement . the code is in the README file of my last snap (and I thought I also posted it explicitly, if I didn't it was just by mistake). At any rate the code is as follows: /* * this stops the dma channel and returns the residual count * derived calling isa_dmastatus */ int isa_dmastop(int chan) { if (dma_inuse & (1 << chan) == 0) printf("isa_dmastop: channel %d not acquired\n", chan); if (dma_busy & (1 << chan) == 0) printf("isa_dmastop: channel %d not acquired\n", chan); if ((chan & 4) == 0) outb(DMA1_SMSK, (chan & 3) | 4 /* disable mask */); else outb(DMA2_SMSK, (chan & 3) | 4 /* disable mask */); return isa_dmastatus(chan); } I am not at all concerned on the presence of the checks in the first two lines (since if the channel is already disable then there is no problem anyways). CHeers Luigi