From owner-freebsd-multimedia Tue Aug 19 04:17:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA28415 for multimedia-outgoing; Tue, 19 Aug 1997 04:17:19 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA28405; Tue, 19 Aug 1997 04:17:13 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id VAA08058; Tue, 19 Aug 1997 21:10:41 +1000 Date: Tue, 19 Aug 1997 21:10:41 +1000 From: Bruce Evans Message-Id: <199708191110.VAA08058@godzilla.zeta.org.au> To: hasty@rah.star-gate.com, luigi@labinfo.iet.unipi.it Subject: Re: Problem with my Wincast, fxtv Cc: current@FreeBSD.ORG, freebsd-multimedia@FreeBSD.ORG, mestery@winternet.com, msmith@atrad.adelaide.edu.au, terry@lambert.org Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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); This is missing necessary parentheses, like the original committed version. Bruce