From owner-freebsd-multimedia Wed May 10 18:51:34 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (rina.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id 1CF4737BAB2 for ; Wed, 10 May 2000 18:51:29 -0700 (PDT) (envelope-from tanimura@r.dl.itc.u-tokyo.ac.jp) Received: from rina.r.dl.itc.u-tokyo.ac.jp (tanimura@localhost [127.0.0.1]) by rina.r.dl.itc.u-tokyo.ac.jp (8.9.3+3.2W/3.7W-rina.r-0.1-11.01.2000) with ESMTP/IPv4 id KAA98965; Thu, 11 May 2000 10:51:23 +0900 (JST) Date: Thu, 11 May 2000 10:51:22 +0900 Message-ID: <14618.4634.680064.72159A@rina> From: Seigo Tanimura To: larse@isi.edu Cc: freebsd-multimedia@freebsd.org Subject: Re: Fwd: Re: FreeBSD-4.0 & CS461x & rat/vat In-Reply-To: In your message of "Tue, 9 May 2000 10:13:32 -0700 (PDT)" <14616.18236.968899.283451@hbo.isi.edu> References: <14616.18236.968899.283451@hbo.isi.edu> Cc: Seigo Tanimura User-Agent: Wanderlust/1.0.3 (Notorious) SEMI/1.13.4 (Terai) FLIM/1.12.7 (=?ISO-8859-4?Q?Y=FEzaki?=) MULE XEmacs/21.1 (patch 9) (Canyonlands) (i386--freebsd) Organization: Digital Library Research Division, Information Techinology Centre, The University of Tokyo MIME-Version: 1.0 (generated by SEMI 1.13.4 - "Terai") Content-Type: multipart/mixed; boundary="Multipart_Thu_May_11_10:51:22_2000-1" Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --Multipart_Thu_May_11_10:51:22_2000-1 Content-Type: text/plain; charset=US-ASCII On Tue, 9 May 2000 10:13:32 -0700 (PDT), Lars Eggert said: Lars> Is there any documentation online on how to enable full duplex audio Lars> with newpcm? (See Colin's question below.) >> 742:auddev_luigi.c:72 soundcaps[0].formats = 0x10000010 Lars> ^^^^^^^^^^ Lars> This indicates the problem: rat is expecting that a full duplex card has Lars> the high order bit set (i.e. AFMT_FULLDUPLEX in ), Lars> such that this should read 0x90000010. This is a problem of our pcm driver. We now simply return the statically defined capability of a driver to AIOGCAP. It would help you to add a workround done in SNDCTL_PCM_GETCAPS, attached below. --Multipart_Thu_May_11_10:51:22_2000-1 Content-Type: text/plain; type=patch; charset=US-ASCII Content-Disposition: attachment; filename="dsp.c.diff" Content-Transfer-Encoding: 7bit Index: sys/dev/sound/pcm/dsp.c =================================================================== RCS file: /home/naklab/tanimura/silver/CVS/FreeBSD/sys/dev/sound/pcm/dsp.c,v retrieving revision 1.1.1.1.2.3 diff -u -r1.1.1.1.2.3 dsp.c --- sys/dev/sound/pcm/dsp.c 2000/05/05 12:29:24 1.1.1.1.2.3 +++ sys/dev/sound/pcm/dsp.c 2000/05/11 01:48:20 @@ -271,6 +271,8 @@ /* XXX bad on sb16 */ p->formats = (rcaps? rcaps->formats : 0xffffffff) & (pcaps? pcaps->formats : 0xffffffff); + if (rdch && wrch && !(d->flags & SD_F_SIMPLEX)) + p->formats |= AFMT_FULLDUPLEX; p->mixers = 1; /* default: one mixer */ p->inputs = d->mixer.devs; p->left = p->right = 100; --Multipart_Thu_May_11_10:51:22_2000-1 Content-Type: text/plain; charset=US-ASCII If the patch works, I will commit it. -- Seigo Tanimura --Multipart_Thu_May_11_10:51:22_2000-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message