From owner-freebsd-questions@FreeBSD.ORG Thu May 6 03:41:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FBEE16A4CE for ; Thu, 6 May 2004 03:41:29 -0700 (PDT) Received: from chello080110061116.502.15.vie.surfer.at (chello080110061116.502.15.vie.surfer.at [80.110.61.116]) by mx1.FreeBSD.org (Postfix) with SMTP id C008B43D31 for ; Thu, 6 May 2004 03:41:27 -0700 (PDT) (envelope-from 4711@chello.at) Received: (qmail 2652 invoked from network); 6 May 2004 10:41:26 -0000 Received: from matrix010.matrix.net (192.168.123.10) by ns.matrix.net with SMTP; 6 May 2004 10:41:26 -0000 From: Christian Hiris <4711@chello.at> To: "David Wassman" Date: Thu, 6 May 2004 12:41:26 +0200 User-Agent: KMail/1.6.2 References: <008901c432ba$fe9770a0$3400a8c0@Piranha> In-Reply-To: <008901c432ba$fe9770a0$3400a8c0@Piranha> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_WZhmAp9wRggfORZ"; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200405061241.26492.4711@chello.at> cc: freebsd-questions@freebsd.org Subject: Re: Sound server issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 10:41:29 -0000 --Boundary-02=_WZhmAp9wRggfORZ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 05 May 2004 18:06, David Wassman wrote: > I finally got it working using the manual settings in the LINT file. My > last question is how to configure the secondary DMA channel. The man > pages for sbc: > > The value of flags specifies the secondary DMA channel. If the > secondary DMA channel is C, set the flags to (C | 0x10). For a sound > card without the secondary DMA channel, the flags should be set to > zero. > > This is the sbc0 I am using > > device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15 > > I know the settings for the card (they are set in the BIOS). It has a 8 > bit channel at DMA 1 and a 16-bit at DMA 5. Am I right in guessing that > [drq 1] is the DMA designation? And then how do you get the second DMA > channel active? man device.hints explains that drq is the DMA channel number. You enable th= e=20 secondary DMA channel 5 by passing "flags 0x15" to the sound driver. If i read the ess.c source correctly, for pcm-playback, the secondary DMA=20 channel only will be used in duplex mode. The interesting point is that=20 duplex mode is disabled by default in the ess driver. The author of the=20 program writes: /* audio2 never generates irqs and sounds very noisy */=20 > I think I only have 8-bit sound as wav files are=20 > sounding pretty crappy. Am I right in thinking that the man page should > read like this: Did you try to overide the default sound device in your apps to /dev/dspW0.= 0=20 or /dev/dspW0.1? man pcm describes how to play around with the DMA=20 bufferspace size. Details of the ESS1869 are available in the chipset specs: http://www.diamondsystems.com/files/binaries/ES1869techmanual.pdf > If the secondary DMA channel is C (where C is the number of the > DMA channel) then set the flags to (C | 0x10) Yes, the bitwise or ensures that bit 4 in flags is set. > Or is C a DMA channel of some weird type? no :-) maybe C means Channel. regards ch=20 > > Again thanks for the help. > > David Wassman > Halcyon DIR Dive Systems > Director of Technical Services and Quality Control > Office: 1-800-425-2966 ext 315 > Fax: 386-454-0815 > Email: Wassman@halcyon.net > > > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" --Boundary-02=_WZhmAp9wRggfORZ Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAmhZWcyi/EZQbawsRAoFlAJ4oBafo0WKBkMzq6QGl9sILSsYH3gCfYMX9 scmVt6ywOSnuJPSVNUbV3XI= =ofTX -----END PGP SIGNATURE----- --Boundary-02=_WZhmAp9wRggfORZ--