From owner-freebsd-multimedia Sun May 7 4:34:31 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail.surf1.de (mail.Surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id D261337B7C4 for ; Sun, 7 May 2000 04:34:26 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9D38D9.dip0.t-ipconnect.de [62.157.56.217]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id MAA03258 for ; Sun, 7 May 2000 12:33:02 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id 3FA4DAC2C for ; Sun, 7 May 2000 13:39:09 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id NAA05358 for multimedia@freebsd.org; Sun, 7 May 2000 13:34:20 +0200 (CEST) (envelope-from alex) Date: Sun, 7 May 2000 13:34:20 +0200 From: Alexander Langer To: multimedia@freebsd.org Subject: DVD API Message-ID: <20000507133420.A5320@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello! Please take a look at this: http://www.linuxtv.org/dvd/developer/ What do you say? I'm going to adopt this. Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Sun May 7 9:49:48 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2A8A637B568 for ; Sun, 7 May 2000 09:49:47 -0700 (PDT) (envelope-from roger@FreeBSD.org) Received: (from roger@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA07769 for multimedia@freebsd.org; Sun, 7 May 2000 09:49:47 -0700 (PDT) (envelope-from roger@FreeBSD.org) Date: Sun, 7 May 2000 09:49:47 -0700 (PDT) From: Message-Id: <200005071649.JAA07769@freefall.freebsd.org> To: multimedia@freebsd.org Subject: New grab.c sample program for bktr frame grabber Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, I've just uploaded a new version of grab.c, the bktr frame grabber sample program to grab frames. The new version can grab images and output then to standard out, allowing the output of grab.c to be piped to other programs. It can also output jpeg images as well as ppm images now Anyway, it is available from ftp://telepresence.dmem.strath.ac.uk/bt848/examples Let me know if you have any problems with it. Roger p.s. the old problem of interlaced images coming out the wrong way round is not fixed yet. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Sun May 7 12:12: 6 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from rah.star-gate.com (216-200-29-190.snj0.flashcom.net [216.200.29.194]) by hub.freebsd.org (Postfix) with ESMTP id 20C6D37B80E for ; Sun, 7 May 2000 12:12:04 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost [127.0.0.1]) by rah.star-gate.com (8.9.3/8.9.3) with ESMTP id MAA06777; Sun, 7 May 2000 12:11:44 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <200005071911.MAA06777@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Alexander Langer Cc: multimedia@FreeBSD.ORG Subject: Re: DVD API In-reply-to: Your message of "Sun, 07 May 2000 13:34:20 +0200." <20000507133420.A5320@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 07 May 2000 12:11:44 -0700 From: Amancio Hasty Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org It looks like a nice looking web page 8) I would probably model such an application first in UML using a tool such as jvision which there is a linux version or togetherJ's whiteboard. In particular , I would pay strong attention to factory and visitor patterns to implement the media player. There are of course other design patterns that are relevant such as the mediator, singleton design patterns, etc... For a brief introduction to design patterns see: A Little Java, A Few Patterns Matthias Felleisen and Daniel P. FriedMan 1998 ---------------------------- Design Patterns Elements of Reusable Object-Oriented Software Erich Gamma Richard Helm Ralph Johnson John Vlissides 1995 --------------------------------------------------- I also like Microsoft's Windows Media Player pluggable components and the fact that is an active X component . Or in Mozilla's language, it would be nice if this new media player could be an xpcom module so it could be embedded in Mozilla or any other packages which conforms to xpcom. --------------------------------------------------- Berkeley's MASH Project presents a wonderful system for building distributed multimedia applications and the project uses design patterns. Enjoy -- Amancio Hasty hasty@rah.star-gate.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon May 8 2: 9:13 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from gruft.de (gate.obh.snafu.de [195.21.6.17]) by hub.freebsd.org (Postfix) with ESMTP id CFE5437BE81 for ; Mon, 8 May 2000 02:09:07 -0700 (PDT) (envelope-from ob@gruft.de) Received: from localhost (1665 bytes) by gruft.de via sendmail with P:stdio/R:inet_hosts/T:smtp (sender: ) (ident using unix) id for ; Mon, 8 May 2000 11:07:28 +0200 (CEST) (Smail-3.2.0.106 1999-Mar-31 #1 built 1999-May-21) Date: Mon, 8 May 2000 11:07:28 +0200 From: Oliver Brandmueller To: multimedia@freebsd.org Subject: Strange problem: fxtv and sound Message-ID: <20000508110728.A33101@gruft.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi there, I just upgraded from 3.4-STABLE to 4.0-STABLE (as of Saturday). The same time I upgraded my KDE to the version in the packages (from the net), as compiling the port did not work. Since then I have a strange problem using fxtv (I tried reinstalling from the ports on Sunday, cvuspped ports saturday) but the problem kept the same: Everytime I change the channel (using mouse or keyboard) or just move the mouse over the edge of the fxtv window the sound gets a few percent louder. The slider in the window moves, fxtv shows the new volume setting with it's OSD. I have a Soundlblaster PCI with an ES1371 and use the newpcm driver and don't have any other problems related to that setup. The tV-Card is an old Hauppauge PCI card and the VGA is an ATI Rage IIC 8 MB. I can post more detailed things from /var/run/dmesg.boot if necessary this evening. But maybe the problem is known to anyone else (as though I don't remeber to have read something about it here). Thanx in advance, Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | http://www.obh.snafu.de/~ob/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon May 8 4:42:44 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from fleming.cs.strath.ac.uk (fleming.cs.strath.ac.uk [130.159.196.126]) by hub.freebsd.org (Postfix) with ESMTP id 45B4137B8DD for ; Mon, 8 May 2000 04:42:41 -0700 (PDT) (envelope-from roger@cs.strath.ac.uk) Received: from cs.strath.ac.uk (posh.dmem.strath.ac.uk [130.159.202.3]) by fleming.cs.strath.ac.uk (8.8.8/8.8.8) with ESMTP id LAA28744 Mon, 8 May 2000 11:27:34 +0100 (BST) Message-ID: <3916966C.C5C3EB31@cs.strath.ac.uk> Date: Mon, 08 May 2000 11:26:52 +0100 From: Roger Hardiman Organization: University of Strathclyde X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Oliver Brandmueller Cc: multimedia@FreeBSD.ORG Subject: Re: Strange problem: fxtv and sound References: <20000508110728.A33101@gruft.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Oliver, > Everytime I change the channel (using mouse or keyboard) or just move the > mouse over the edge of the fxtv window the sound gets a few percent > louder. The slider in the window moves, fxtv shows the new volume setting > with it's OSD. Does it keep getting louder and louder until it gets to maximum volume? Or does it get a bit louder and they stay there? Roger To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon May 8 4:45: 7 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from gruft.de (gate.obh.snafu.de [195.21.6.17]) by hub.freebsd.org (Postfix) with ESMTP id A241637B8DD for ; Mon, 8 May 2000 04:45:04 -0700 (PDT) (envelope-from ob@gruft.de) Received: from localhost (2026 bytes) by gruft.de via sendmail with P:stdio/R:inet_hosts/T:smtp (sender: ) (ident using unix) id for ; Mon, 8 May 2000 13:43:36 +0200 (CEST) (Smail-3.2.0.106 1999-Mar-31 #1 built 1999-May-21) Date: Mon, 8 May 2000 13:43:36 +0200 From: Oliver Brandmueller To: multimedia@freebsd.org Subject: Re: Strange problem: fxtv and sound Message-ID: <20000508134336.A33792@gruft.de> References: <20000508110728.A33101@gruft.de> <3916966C.C5C3EB31@cs.strath.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <3916966C.C5C3EB31@cs.strath.ac.uk>; from Roger Hardiman on Mon, May 08, 2000 at 11:26:52AM +0100 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hi, On Mon, May 08, 2000 at 11:26:52AM +0100, Roger Hardiman wrote: > > Everytime I change the channel (using mouse or keyboard) or just move the > > mouse over the edge of the fxtv window the sound gets a few percent > > louder. The slider in the window moves, fxtv shows the new volume setting > > with it's OSD. > > Does it keep getting louder and louder until it gets to maximum volume? When it reaches 100% it won't get louder, but it still shows the Volume OSD once I cross the edge of the window or I change the channel. The Volume gets louder first in steps of about 3 percent, these get larger then (can't test it at the moment). The volume slider is at it's end at about 80% though. I can use it without problems to lower the volume. > Or does it get a bit louder and they stay there? It get's louder everytime I cross the edge of the window or change the channel. It's doing one step of 3 to 5 percent for every one of these events. When I leave the window alone (watching a channel oder doing something else with the computer) the volume doesn't change... So it's not a big problem, it just keeps me from zapping ;) Thanx for the answer, Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | http://www.obh.snafu.de/~ob/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon May 8 10:14:51 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from rr.com (rdu25-28-172.nc.rr.com [24.25.28.172]) by hub.freebsd.org (Postfix) with ESMTP id 2236237B5DB for ; Mon, 8 May 2000 10:14:47 -0700 (PDT) (envelope-from rhh@rr.com) Received: (from rhh@localhost) by rr.com (8.9.3/8.9.3) id NAA10653; Mon, 8 May 2000 13:13:32 -0400 (EDT) (envelope-from rhh) Date: Mon, 8 May 2000 13:13:32 -0400 From: Randall Hopper To: Oliver Brandmueller Cc: multimedia@FreeBSD.ORG Subject: Re: Strange problem: fxtv and sound Message-ID: <20000508131332.A10497@ipass.net> References: <20000508110728.A33101@gruft.de> <3916966C.C5C3EB31@cs.strath.ac.uk> <20000508134336.A33792@gruft.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000508134336.A33792@gruft.de>; from ob@gruft.de on Mon, May 08, 2000 at 01:43:36PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Oliver Brandmueller: |On Mon, May 08, 2000 at 11:26:52AM +0100, Roger Hardiman wrote: |> > Everytime I change the channel (using mouse or keyboard) or just move the |> > mouse over the edge of the fxtv window the sound gets a few percent |> > louder. The slider in the window moves, fxtv shows the new volume setting |> > with it's OSD. |> |> Does it keep getting louder and louder until it gets to maximum volume? This could be explained by a few things. First, if the sound driver is not returning the same value on a "get" as the value that was issued by the last "set", that would do it. Alternatively, it might be due to another audio app rounding the numbers. It could also be Xaw3d. Try this. Build fxtv from ports with these changes. 1) In tvaudioc.c::TVAUDIOSetLineVolume(), put a: printf( "Set volume: %d %d\n", vol[0], vol[1] ); right before the MIXER_WRITE ioctl. 2) Also put a: printf( "Get volume: %d %d\n", vol[0], vol[1] ); inside the else clause in tvaudio.c::TVAUDIOResync() (this is after the MIXER_READ ioctl). 3) In actions.c::TVActionSetVolumeAction(), add: printf( "TVActionSetVolumeAction: value = %d\n", vol_val ); right before: TVAUDIOSetLineVolume( vol_val, TRUE ); 4) In tvmenu.c::TVTOOLSVolSliderJumpCB(), add: printf( "TVTOOLSVolSliderJumpCB: value = %d\n", vol ); right before: TVAUDIOSetLineVolume( vol, False ); This will tell us what values we're sending to the sound driver and receiving from the sound driver. -- Randall Hopper aa8vb@ipass.net / CLICK HERE TO GIVE FULL CONTROL OF YOUR MACHINE \ \ TO THE LATEST VIRUS / (Microsoft Outlook moto: "Do you feel lucky today?") To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Tue May 9 10:13:42 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from hbo.isi.edu (hbo.isi.edu [128.9.160.75]) by hub.freebsd.org (Postfix) with ESMTP id 2285737BE89 for ; Tue, 9 May 2000 10:13:37 -0700 (PDT) (envelope-from larse@hbo.isi.edu) Received: (from larse@localhost) by hbo.isi.edu (8.9.3/8.9.3) id KAA07312; Tue, 9 May 2000 10:13:33 -0700 (PDT) (envelope-from larse) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14616.18236.968899.283451@hbo.isi.edu> Date: Tue, 9 May 2000 10:13:32 -0700 (PDT) From: Lars Eggert To: freebsd-multimedia@freebsd.org Subject: Fwd: Re: FreeBSD-4.0 & CS461x & rat/vat Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Is there any documentation online on how to enable full duplex audio with newpcm? (See Colin's question below.) Thanks, Lars ________________________________________________________________________ Lars Eggert Information Sciences Institute http://www.isi.edu/~larse/ University of Southern California ------- start of forwarded message (RFC 934 encapsulation) ------- From: Colin Perkins To: Lars Eggert Subject: Re: FreeBSD-4.0 & CS461x & rat/vat Date: Tue, 09 May 2000 18:01:37 +0100 - --> Lars Eggert writes: > colin> I've built a debugging version of rat, which might yield more > colin> light on the problem. If you can try running > colin> http://www.cs.ucl.ac.uk/staff/c.perkins/miscellaneous/rat-4.2.3-freebsd3.1.tar.gz > colin> and mail me the output, it might be helpful. > >Here's what I see after starting the debug-rat, sent it some audio and >then quit: > >[larse@hbo: ~/bin] ./rat-4.2.3 dum/7777 >740:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS >741:main_ui.c:106 rat-ui started argc=5 >741:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS >741:main_ui.c:120 Waiting for mbus.waiting(rat-token-5b5c4df8) from controller... >741:main_ui.c:122 ...got it >741:main_ui.c:128 Waiting for mbus.go(rat-token-5b5c4df8) from controller... >742:auddev_luigi.c:530 dev (0) name (CS461x PCM Audio) >742:auddev.c:1172 Added "CS461x PCM Audio" to audio device table >742:auddev.c:1172 Added "No Audio Device" to audio device table >742:main_engine.c:154 Initializing session 0 >742:channel.c:204 Created encoder: "None" >742:audio.c:235 Change device requested. >742:auddev.c:552 Opened device: No Audio Device >742:auddev.c:577 Requested Input: 16-bit signed linear,8-kHz,Mono >742:auddev.c:579 Actual Input: 8-bit a-law,8-kHz,Mono >742:auddev.c:588 Requested Output: 16-bit signed linear,8-kHz,Mono >742:auddev.c:590 Actual Output: 8-bit a-law,8-kHz,Mono >742:transmit.c:134 Unit duration 160 channels 1 >742:mix.c:106 Mixer created. Aligned to 0 8000kHz >742:audio.c:296 0x00000000 0x00000201 >742:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS >742:main_engine.c:174 Waiting for mbus.waiting(rat-token-32c16c82) from controller... >742:main_engine.c:176 ...got it >742:main_engine.c:180 Waiting for mbus.go(rat-token-32c16c82) from controller... >742:rtp.c:551 Created database entry for ssrc 0x6ed35030 >742:main_engine.c:182 ...got it >742:audio.c:235 Change device requested. >742:mix.c:121 Mixer destroyed. Head 0 8000kHz Tail 0 8000kHz >742:auddev_luigi.c:62 Opening /dev/audio0 >742:auddev_luigi.c:70 soundcaps[0].rate_min = 11025 >742:auddev_luigi.c:71 soundcaps[0].rate_max = 48000 >742:auddev_luigi.c:72 soundcaps[0].formats = 0x10000010 ^^^^^^^^^^ This indicates the problem: rat is expecting that a full duplex card has the high order bit set (i.e. AFMT_FULLDUPLEX in ), such that this should read 0x90000010. Do you know if there's any documentation for the changes in the audio API in FreeBSD 4.0 available online? Probably there's now an ioctl() which is needed to enable full duplex, like on other platforms. Cheers, Colin ------- end ------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message 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 From owner-freebsd-multimedia Wed May 10 20:53:15 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from evil.2y.net (ztown3-3-227.adsl.one.net [206.112.211.227]) by hub.freebsd.org (Postfix) with ESMTP id D24FD37BB00 for ; Wed, 10 May 2000 20:53:12 -0700 (PDT) (envelope-from cokane@evil.2y.net) Received: (from cokane@localhost) by evil.2y.net (8.9.3/8.9.3) id XAA00484 for freebsd-multimedia@freebsd.org; Wed, 10 May 2000 23:59:10 -0400 (EDT) (envelope-from cokane) Date: Wed, 10 May 2000 23:59:10 -0400 From: Coleman Kane To: freebsd-multimedia@freebsd.org Subject: 3DFX Driver Message-ID: <20000510235910.A467@cokane.yi.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" X-Mailer: Mutt 1.0.1i X-Vim: vim:tw=70:ts=4:sw=4 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi, I have just finished the 3dfx driver for freebsd. I need a MAJOR # for = it, linux used 107, which appears to be free at the moment. --=20 Coleman Kane President,=20 UC Free O.S. Users Group - http://pohl.ececs.uc.edu --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.0 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE5GjANERViMObJ880RAXJeAKCccTexGOlRpfU7NGUETuuSnlXaqgCgzurI kZ1N5p3d29Ko+Wre8T3JSRM= =MdIg -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed May 10 20:59:23 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id D0CDF37B5B6 for ; Wed, 10 May 2000 20:59:19 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (doconnor@cain [203.38.152.97]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id DAA02899; Thu, 11 May 2000 03:59:11 GMT (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20000510235910.A467@cokane.yi.org> Date: Thu, 11 May 2000 13:29:11 +0930 (CST) From: "Daniel O'Connor" To: Coleman Kane Subject: RE: 3DFX Driver Cc: freebsd-multimedia@freebsd.org Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 11-May-00 Coleman Kane wrote: > Hi, I have just finished the 3dfx driver for freebsd. I need a MAJOR # for > it, > linux used 107, which appears to be free at the moment. Excellent!! So now we can play Quake as normal pleb users :) --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed May 10 21:23:39 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from evil.2y.net (ztown3-3-227.adsl.one.net [206.112.211.227]) by hub.freebsd.org (Postfix) with ESMTP id D625437B53B for ; Wed, 10 May 2000 21:23:35 -0700 (PDT) (envelope-from cokane@evil.2y.net) Received: (from cokane@localhost) by evil.2y.net (8.9.3/8.9.3) id AAA00655; Thu, 11 May 2000 00:28:55 -0400 (EDT) (envelope-from cokane) Date: Thu, 11 May 2000 00:28:55 -0400 From: Coleman Kane To: "Daniel O'Connor" Cc: Coleman Kane , freebsd-multimedia@freebsd.org Subject: Re: 3DFX Driver Message-ID: <20000511002855.A643@cokane.yi.org> References: <20000510235910.A467@cokane.yi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from doconnor@gsoft.com.au on Wed, May 10, 2000 at 11:59:34PM -0400 X-Vim: vim:tw=70:ts=4:sw=4 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Almost... one more thing has to be done, outside of the driver. I need to write lniux ioctl callovers for the implemented IOCTLs. I am thinking this would be best done as a simple add-on module that depends on the linux module, providing two effects: firstly, linux won't have to be statically compiled into the kernel, and second: people who don't want to use the linux ioctls for tdfx don't have to. --cokane Daniel O'Connor had the audacity to say: > On 11-May-00 Coleman Kane wrote: > > Hi, I have just finished the 3dfx driver for freebsd. I need a MAJOR # for > > it, > > linux used 107, which appears to be free at the moment. > > Excellent!! > So now we can play Quake as normal pleb users :) > > --- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message > -- Coleman Kane President, UC Free O.S. Users Group - http://pohl.ececs.uc.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed May 10 21:26:58 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 11CE837B54E for ; Wed, 10 May 2000 21:26:48 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (doconnor@cain [203.38.152.97]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id EAA03214; Thu, 11 May 2000 04:26:39 GMT (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20000511002855.A643@cokane.yi.org> Date: Thu, 11 May 2000 13:56:39 +0930 (CST) From: "Daniel O'Connor" To: Coleman Kane Subject: Re: 3DFX Driver Cc: freebsd-multimedia@freebsd.org Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 11-May-00 Coleman Kane wrote: > best done as a simple add-on module that depends on the linux module, > providing > two effects: firstly, linux won't have to be statically compiled into the > kernel, and second: people who don't want to use the linux ioctls for tdfx > don't > have to. Hmm, I am not sure the linux emulator is able to do what you want.. I don't think a few extra ioctl handlers in it is going to greatly increase its size either. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed May 10 21:40:22 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from evil.2y.net (ztown3-3-227.adsl.one.net [206.112.211.227]) by hub.freebsd.org (Postfix) with ESMTP id 92CFC37B751 for ; Wed, 10 May 2000 21:40:17 -0700 (PDT) (envelope-from cokane@evil.2y.net) Received: (from cokane@localhost) by evil.2y.net (8.9.3/8.9.3) id AAA00812; Thu, 11 May 2000 00:45:32 -0400 (EDT) (envelope-from cokane) Date: Thu, 11 May 2000 00:45:32 -0400 From: Coleman Kane To: "Daniel O'Connor" Cc: Coleman Kane , freebsd-multimedia@freebsd.org Subject: Re: 3DFX Driver Message-ID: <20000511004532.A797@cokane.yi.org> References: <20000511002855.A643@cokane.yi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from doconnor@gsoft.com.au on Thu, May 11, 2000 at 12:26:41AM -0400 X-Vim: vim:tw=70:ts=4:sw=4 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org For the linux emulation code, you need to explicitly write linux ioctl handlers for this. I may stick these in the file, but it might make it somewhat ugly. I have yet to really get a good look at the linux emu code. Maybe tonight... after school. Basically, the linux emu needs to have all ioctls explicitly handled, or it never calls the dev ioctl. The ioctl handler for the 3dfx driver is rather simple, if you've ever looked at the linux code, there is no ioctl to translate, they are both generic ones made by 3dfx. I'll take a crack at it tonight, dan. Daniel O'Connor had the audacity to say: > > On 11-May-00 Coleman Kane wrote: > > best done as a simple add-on module that depends on the linux module, > > providing > > two effects: firstly, linux won't have to be statically compiled into the > > kernel, and second: people who don't want to use the linux ioctls for tdfx > > don't > > have to. > > Hmm, I am not sure the linux emulator is able to do what you want.. I don't > think a few extra ioctl handlers in it is going to greatly increase its size > either. > -- Coleman Kane President, UC Free O.S. Users Group - http://pohl.ececs.uc.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri May 12 17: 2: 2 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from hbo.isi.edu (hbo.isi.edu [128.9.160.75]) by hub.freebsd.org (Postfix) with ESMTP id 4FDC437BC85; Fri, 12 May 2000 17:01:52 -0700 (PDT) (envelope-from larse@hbo.isi.edu) Received: (from larse@localhost) by hbo.isi.edu (8.9.3/8.9.3) id RAA22948; Fri, 12 May 2000 17:01:07 -0700 (PDT) (envelope-from larse) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14620.39746.774400.21559@hbo.isi.edu> Date: Fri, 12 May 2000 17:01:06 -0700 (PDT) From: Lars Eggert To: tanimura@r.dl.itc.u-tokyo.ac.jp, c.perkins@cs.ucl.ac.uk Cc: freebsd-multimedia@freebsd.org, rat-users@cs.ucl.ac.uk, freebsd-stable@freebsd.org Subject: Re: Fwd: Re: FreeBSD-4.0 & CS461x & rat/vat In-Reply-To: <14618.4634.680064.72159A@rina> References: <14616.18236.968899.283451@hbo.isi.edu> <14618.4634.680064.72159A@rina> Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org seigo> This is a problem of our pcm driver. We now simply return the seigo> statically defined capability of a driver to AIOGCAP. It seigo> would help you to add a workround done in SNDCTL_PCM_GETCAPS, seigo> attached below. I've tried to use the patch, and the situation gets more confusing. On a recent (built 5/10/00) FreeBSD-4.0-STABLE box, rat doesn't even start correctly anymore EVEN WITHOUT THE PATCH: [larse@hbo: ~] rat-4.2.3 hbo/7777 22919:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS 22920:main_ui.c:106 rat-ui started argc=5 22920:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS 22920:main_ui.c:120 Waiting for mbus.waiting(rat-token-5d54732b) from controller... And this is where it hangs. I doubt this new problem is newpcm related. It seems like rat cannot correctly set up the mcast bus between its helper processes - have there been multicast/route/network changes been committed to -STABLE recently that could explain this? Second try. On a FreeBSD-4.0-RELEASE box, I've applied your dsp.c patch, and I don't see the behavior above, even without the patch. (This is why I think someone broke something in STABLE.) With the patch, this is what rat tells me now: [larse@tbs: ~] rat-4.2.3 hbo/7777 550:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS 551:main_ui.c:106 rat-ui started argc=5 551:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS 551:main_ui.c:120 Waiting for mbus.waiting(rat-token-2172cb85) from controller... 551:main_ui.c:122 ...got it 551:main_ui.c:128 Waiting for mbus.go(rat-token-2172cb85) from controller... 552:auddev_luigi.c:530 dev (0) name (CS461x PCM Audio) 552:auddev.c:1172 Added "CS461x PCM Audio" to audio device table 552:auddev.c:1172 Added "No Audio Device" to audio device table 552:main_engine.c:154 Initializing session 0 552:channel.c:204 Created encoder: "None" 552:audio.c:235 Change device requested. 552:auddev.c:552 Opened device: No Audio Device 552:auddev.c:577 Requested Input: 16-bit signed linear,8-kHz,Mono 552:auddev.c:579 Actual Input: 8-bit a-law,8-kHz,Mono 552:auddev.c:588 Requested Output: 16-bit signed linear,8-kHz,Mono 552:auddev.c:590 Actual Output: 8-bit a-law,8-kHz,Mono 552:transmit.c:134 Unit duration 160 channels 1 552:mix.c:106 Mixer created. Aligned to 0 8000kHz 552:audio.c:296 0x00000000 0x00000201 552:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS 552:main_engine.c:174 Waiting for mbus.waiting(rat-token-431d8f8b) from controller... 552:main_engine.c:176 ...got it 552:main_engine.c:180 Waiting for mbus.go(rat-token-431d8f8b) from controller... 552:rtp.c:551 Created database entry for ssrc 0x75d6b28a 552:main_engine.c:182 ...got it 552:audio.c:235 Change device requested. 552:mix.c:121 Mixer destroyed. Head 0 8000kHz Tail 0 8000kHz 552:auddev_luigi.c:62 Opening /dev/audio0 552:auddev_luigi.c:70 soundcaps[0].rate_min = 11025 552:auddev_luigi.c:71 soundcaps[0].rate_max = 48000 552:auddev_luigi.c:72 soundcaps[0].formats = 0x90000010 552:auddev_luigi.c:73 soundcaps[0].bufsize = 320 552:auddev_luigi.c:74 soundcaps[0].mixers = 0x00000001 552:auddev_luigi.c:75 soundcaps[0].inputs = 0x004049f1 552:auddev_luigi.c:76 soundcaps[0].left = 0x0064 552:auddev_luigi.c:77 soundcaps[0].right = 0x0064 552:auddev_luigi.c:142 rec size 40, play size 40 bytes 552:auddev_luigi.c:178 Failed MIXER_WRITE(SOUND_MIXER_IMIX) 552:auddev.c:552 Opened device: CS461x PCM Audio 552:auddev.c:582 Input: 16-bit signed linear,8-kHz,Mono 552:auddev.c:593 Output: 16-bit signed linear,8-kHz,Mono 552:transmit.c:134 Unit duration 160 channels 1 552:mix.c:106 Mixer created. Aligned to 0 8000kHz 552:audio.c:296 0x00000201 0x00000101 552:auddev_luigi.c:335 Failed MIXER_WRITE(SOUND_MIXER_IMIX) 552:channel.c:204 Created encoder: "None" 552:auddev_luigi.c:335 Failed MIXER_WRITE(SOUND_MIXER_IMIX) 552:settings.c:434 gecos Lars Eggert,1045,(310) 448-9185,(310) 827-3569 name larse 552:settings.c:473 username Lars Eggert Lars Eggert 552:audio.c:426 catch up! read_dur(992) > cushion_size(560) 552:mix.c:389 Getting new cushion 800 old 560 552:audio.c:426 catch up! read_dur(1824) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 551:main_ui.c:130 ...got it 551:main_ui.c:133 Waiting for mbus.waiting(rat-ui-requested) from media engine... 552:audio.c:426 catch up! read_dur(992) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(928) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(1920) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(1056) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(864) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 551:main_ui.c:146 ...got it 552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 800 old 800 552:auddev_luigi.c:505 Device error!552:audio.c:426 catch up! read_dur(960) > cushion_size(800) 552:mix.c:389 Getting new cushion 1040 old 800 552:audio.c:482 Increasing cushion. 552:audio.c:426 catch up! read_dur(1856) > cushion_size(1120) 552:mix.c:389 Getting new cushion 1200 old 1120 Error writing device.: Device not configured 552:audio.c:467 Decreasing cushion Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured Error writing device.: Device not configured ^C550:main_control.c:679 Caught signal 2 550:main_control.c:164 Killing process 551 550:main_control.c:164 Killing process 552 552:main_engine.c:64 Caught signal 2 The signals are due to me killing the process, otherwise it happily executes spitting out error messages. So yes, your patch seems to fix part of the problem, but rat still doesn't work. (Other audio software, e.g. xmms, does; like before.) Lars ________________________________________________________________________ Lars Eggert Information Sciences Institute http://www.isi.edu/~larse/ University of Southern California To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message