From owner-freebsd-multimedia Sun Jul 15 5:26:49 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mailin2.email.bigpond.com (juicer14.bigpond.com [139.134.6.23]) by hub.freebsd.org (Postfix) with ESMTP id E363A37B405 for ; Sun, 15 Jul 2001 05:26:41 -0700 (PDT) (envelope-from shogun70@bigpond.net.au) Received: from home ([139.134.4.58]) by mailin2.email.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GGILI200.7DE; Sun, 15 Jul 2001 22:32:26 +1000 Received: from 144.137.70.212 ([144.137.70.212]) by mail1.bigpond.com(MailRouter V2.9g 1/8827972); 15 Jul 2001 22:26:47 From: "Sean Hogan" To: "Jerry Murdock" , Subject: RE: Sound Card Problems - Aureal Vortex I Date: Sun, 15 Jul 2001 22:35:32 +1000 Message-ID: <001401c10d2a$a32c1fd0$1400a8c0@celaboru.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <001a01c10ce5$e5691dc0$0201a8c0@bellsouth.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I think I have the same card and I believe you still need to use the audio/aureal-kmod port. I did NOT add the "device pcm" to my kernel config. Just installed the port. I'm not sure if this matters. The home-page for the port is http://home.columbus.rr.com/amatey/au88x0/ I had no troubles... good luck. SDH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Sun Jul 15 6:51:11 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by hub.freebsd.org (Postfix) with ESMTP id B7CFD37B401 for ; Sun, 15 Jul 2001 06:51:07 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 15 Jul 2001 09:51:07 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6FDnux01596; Sun, 15 Jul 2001 09:49:56 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Sun, 15 Jul 2001 09:49:56 -0400 From: Randall Hopper To: "Kenneth D. Merry" Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010715094956.C1240@nc.rr.com> References: <20010711224717.A1723@nc.rr.com> <200107121621.f6CGLZk04238@beauty.kobe1995.net> <20010711225308.A1769@nc.rr.com> <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010714211740.A55034@panzer.kdm.org>; from ken@kdm.org on Sat, Jul 14, 2001 at 09:17:40PM -0600 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Kenneth D. Merry: |Randall Hopper: |> For those that also haven't had success with DGA (direct video) with Fxtv |> and XFree86, try the attached patches. | |It doesn't seem to work for me. The behavior is still the same as before. |I have to have something partially blocking the fxtv window in order for |the video to update. | |I'm using XFree86 4.1.0, with a MGA driver I built back in March from the |XFree86 CVS tree. Hmm. I received mail from Frank Nobis last night who has a G450 running XFree86 4.1.0 on 4.3-S SMP with DGA & no problems. Here I've got G450/4.0.3/4.3-S. So the "MGA driver" version difference may be the difference between your two configs. Also appears XFree86 may have fixed the GetVideo bug/feature in 4.1.0. I really just got my G450/Athlon system built and haven't yet gotten to tuned it up for FreeBSD/XFree86 (DRI, mga/agp modules, etc.; any URLs to web pages or list posts appreciated). So I'm not sure exactly what you mean when you say "MGA driver". Is this the MGA kernel module? The driver linked into the "XFree86" X server? To your problem, here are a few DGA tests: http://people.freebsd.org/~rhh/fxtv/dgatest.c http://people.freebsd.org/~rhh/fxtv/dgafbtest.c http://people.freebsd.org/~rhh/fxtv/tv-dgatest.c It would be interesting to see if these work for you, and what the first one prints. The first dumps the GetVideo returns. The second draws crosshairs in the corners of your screen via DGA & /dev/mem. The third plops a frame of colorbar video in the corners of your screen, and then bounces a TV around (to test TV card memory access vs. CPU memory access). Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Sun Jul 15 11:26: 8 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 3275C37B403 for ; Sun, 15 Jul 2001 11:25:59 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 15 Jul 2001 14:25:36 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6FIOnu04121; Sun, 15 Jul 2001 14:24:49 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Sun, 15 Jul 2001 14:24:49 -0400 From: Randall Hopper To: The Hermit Hacker Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: Monitor "streaking" ... Message-ID: <20010715142449.A3966@nc.rr.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from scrappy@hub.org on Mon, Jul 09, 2001 at 09:21:01PM -0300 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The Hermit Hacker: |For lack of a better word ... I have a Samtron 19" monitor with an NVidia |video card (GeForce2, I think) ... in X, I'm getting a weird "streaking" |effect I've never seen before ... Sounds similar like what I used to see with my straight 15-pin VGA cables running high resolutions and refresh rates. I'd describe it as "color echos". Terrible for text. Switching to BNC cables cleared it up. Also have read about text clarity issues with NVidia GForce* cards (some net folks that spend alot of time with text dumped them for other cards with clearer text). Haven't seen this first hand so I just mention it as something you might want to investigate... Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Sun Jul 15 19:10:56 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 51F6237B408 for ; Sun, 15 Jul 2001 19:10:45 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id UAA60177; Sun, 15 Jul 2001 20:10:38 -0600 (MDT) (envelope-from ken) Date: Sun, 15 Jul 2001 20:10:38 -0600 From: "Kenneth D. Merry" To: Randall Hopper Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010715201038.A60120@panzer.kdm.org> References: <20010711224717.A1723@nc.rr.com> <200107121621.f6CGLZk04238@beauty.kobe1995.net> <20010711225308.A1769@nc.rr.com> <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> <20010715094956.C1240@nc.rr.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010715094956.C1240@nc.rr.com>; from aa8vb@nc.rr.com on Sun, Jul 15, 2001 at 09:49:56AM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Jul 15, 2001 at 09:49:56 -0400, Randall Hopper wrote: > Kenneth D. Merry: > |Randall Hopper: > |> For those that also haven't had success with DGA (direct video) with Fxtv > |> and XFree86, try the attached patches. > | > |It doesn't seem to work for me. The behavior is still the same as before. > |I have to have something partially blocking the fxtv window in order for > |the video to update. > | > |I'm using XFree86 4.1.0, with a MGA driver I built back in March from the > |XFree86 CVS tree. > > Hmm. I received mail from Frank Nobis last night who has a G450 running > XFree86 4.1.0 on 4.3-S SMP with DGA & no problems. Here I've got > G450/4.0.3/4.3-S. So the "MGA driver" version difference may be the > difference between your two configs. Also appears XFree86 may have fixed > the GetVideo bug/feature in 4.1.0. Yes, that may be the difference. I forgot that the problem I had with the MGA driver in 4.1.0 is that my monitor won't sync up at all. I'm using the same mode line I've always used, so my assumption is that it's doing something funky with the timing that puts it out of range. So it's possible that the stock driver in 4.1.0 would work, if it worked with my monitor. > I really just got my G450/Athlon system built and haven't yet gotten to > tuned it up for FreeBSD/XFree86 (DRI, mga/agp modules, etc.; any URLs to > web pages or list posts appreciated). So I'm not sure exactly what you > mean when you say "MGA driver". Is this the MGA kernel module? The driver > linked into the "XFree86" X server? The driver module linked into the XFree86 server. i.e. /usr/X11R6/lib/modules/drivers/mga_drv.o > To your problem, here are a few DGA tests: > > http://people.freebsd.org/~rhh/fxtv/dgatest.c > http://people.freebsd.org/~rhh/fxtv/dgafbtest.c > http://people.freebsd.org/~rhh/fxtv/tv-dgatest.c > > It would be interesting to see if these work for you, and what the first > one prints. The first dumps the GetVideo returns. The second draws > crosshairs in the corners of your screen via DGA & /dev/mem. The third > plops a frame of colorbar video in the corners of your screen, and then > bounces a TV around (to test TV card memory access vs. CPU memory access). The first one works, I suppose. The second one doesn't work like it's supposed to. It's kinda hard to describe, so I put an X window dump here: http://people.FreeBSD.org/~ken/foo.xwd.gz The colors are off, but I think only the vertical line in the top left corner was yellow. The third one didn't work at all. It hung after printing out the pixel format information. The text output from the tests is attached. Ken -- Kenneth Merry ken@kdm.org --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=dgainfo XF86 DGA Extension Version = 2.00 Direct Video = NO-DirectGraphics NO-DirectMouse NO-DirectKeyb XF86DGAGetVideo: Video Address = 0x28400000 Width = 1280 BankSize = 32768K MemSize = 32768K XF86DGAGetVideoLL: Video Address = 0xfa000000 Width = 1280 BankSize = 32768K MemSize = 32768K XIO: fatal IO error 9 (Bad file descriptor) on X server ":0.0" after 16 requests (15 known processed) with 0 events remaining. ================================================================================ ========== XF86 DGA Query Test ========== Version = 2.00 Direct Video = NO-DirectGraphics NO-DirectMouse NO-DirectKeyb XF86DGAGetVideo: Video Address = 0x28400000 Width = 1280 BankSize = 32768K MemSize = 32768K XF86DGAGetVideoLL: Video Address = 0xfa000000 Width = 1280 BankSize = 32768K MemSize = 32768K Using Pixel Format: Bpp,shifts[R,G,B],masks[R,G,B],byteswap = 4,16,8,0,ff0000,00ff00,0000ff,1 ========== XF86 DGA Draw Test ========== Next we'll draw 8 yellow radial lines from the corners of your desktop. Check that: 1) you see all 8 lines (2 in each corner: 1 horiz, 1 vert), 2) they are in the corners of your desktop, and 3) they are all pure yellow (no odd-color borders) Move everything away from the corners of your desktop, and then hit . Testing complete. Examine the screen, and then hit . ========== Any problems? ========== If you observe a DGA bug, first verify that the XFree86 FAQ does not discuss it: http://www.xfree86.org/FAQ/ If not, report it to the XFree86 Team. See the FAQ for details. (http://www.xfree86.org/cgi-bin/bugform.cgi) Be sure to report the -f number (fuzz) required to shift the lines into place. For debugging, it might also be helpful to include a URL to where you grabbed this program. -f NOTE: If all looks well with 'dgafbtest -f 1024', then the frame buffer is really 1024 bytes positive offset from where DGA says it is. XIO: fatal IO error 9 (Bad file descriptor) on X server ":0.0" after 30 requests (29 known processed) with 0 events remaining. ================================================================================ # ./tv-dgatest XF86 DGA Extension Test Version = 2.00 Direct Video = NO-DirectGraphics NO-DirectMouse NO-DirectKeyb XF86DGAGetVideo: Video Address = 0x28400000 Width = 1280 BankSize = 32768K MemSize = 32768K XF86DGAGetVideoLL: Video Address = 0xfa000000 Width = 1280 BankSize = 32768K MemSize = 32768K Using Pixel Format: Bpp,shifts[R,G,B],masks[R,G,B],byteswap = 4,16,8,0,ff0000,00ff00,0000ff,1 ^C --X1bOJ3K7DJ5YkBrT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Sun Jul 15 20:22:55 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail7.nc.rr.com (fe7.southeast.rr.com [24.93.67.54]) by hub.freebsd.org (Postfix) with ESMTP id B746437B407 for ; Sun, 15 Jul 2001 20:22:50 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 15 Jul 2001 23:22:47 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6G3LcK02237; Sun, 15 Jul 2001 23:21:38 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Sun, 15 Jul 2001 23:21:38 -0400 From: Randall Hopper To: "Kenneth D. Merry" Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010715232138.A2174@nc.rr.com> References: <20010711224717.A1723@nc.rr.com> <200107121621.f6CGLZk04238@beauty.kobe1995.net> <20010711225308.A1769@nc.rr.com> <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> <20010715094956.C1240@nc.rr.com> <20010715201038.A60120@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010715201038.A60120@panzer.kdm.org>; from ken@kdm.org on Sun, Jul 15, 2001 at 08:10:38PM -0600 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Kenneth D. Merry: |> http://people.freebsd.org/~rhh/fxtv/dgatest.c |> http://people.freebsd.org/~rhh/fxtv/dgafbtest.c |> http://people.freebsd.org/~rhh/fxtv/tv-dgatest.c | |The first one works, I suppose. The second one doesn't work like it's |supposed to. It's kinda hard to describe, so I put an X window dump here: | |http://people.FreeBSD.org/~ken/foo.xwd.gz | |The colors are off, but I think only the vertical line in the top left |corner was yellow. It's mis-guessing your 24bpp mode has 4 bytes per pixel when it has 3. The alternating colors indicate that. I see the same here when I run "--depth 24". Try this in your Fxtv app-default file; that fixes it here: ! Video-mode specific stuff Fxtv.bswap2Bpp: true Fxtv.bswap3Bpp: true Fxtv.bswap4Bpp: true Fxtv.wswap4Bpp: true Fxtv.Bpp24bit: 3 Fxtv.Bpp32bit: 4 |# ./tv-dgatest ... |Using Pixel Format: | Bpp,shifts[R,G,B],masks[R,G,B],byteswap = | 4,16,8,0,ff0000,00ff00,0000ff,1 ^ Yep, that's what's going on. The Bpp24bit=3 setting should do the trick. Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Sun Jul 15 21:27:23 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id EB85E37B401 for ; Sun, 15 Jul 2001 21:27:17 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id WAA60899; Sun, 15 Jul 2001 22:27:13 -0600 (MDT) (envelope-from ken) Date: Sun, 15 Jul 2001 22:27:13 -0600 From: "Kenneth D. Merry" To: Randall Hopper Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010715222713.A60880@panzer.kdm.org> References: <20010711224717.A1723@nc.rr.com> <200107121621.f6CGLZk04238@beauty.kobe1995.net> <20010711225308.A1769@nc.rr.com> <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> <20010715094956.C1240@nc.rr.com> <20010715201038.A60120@panzer.kdm.org> <20010715232138.A2174@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010715232138.A2174@nc.rr.com>; from aa8vb@nc.rr.com on Sun, Jul 15, 2001 at 11:21:38PM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Jul 15, 2001 at 23:21:38 -0400, Randall Hopper wrote: > Kenneth D. Merry: > |> http://people.freebsd.org/~rhh/fxtv/dgatest.c > |> http://people.freebsd.org/~rhh/fxtv/dgafbtest.c > |> http://people.freebsd.org/~rhh/fxtv/tv-dgatest.c > | > |The first one works, I suppose. The second one doesn't work like it's > |supposed to. It's kinda hard to describe, so I put an X window dump here: > | > |http://people.FreeBSD.org/~ken/foo.xwd.gz > | > |The colors are off, but I think only the vertical line in the top left > |corner was yellow. > > It's mis-guessing your 24bpp mode has 4 bytes per pixel when it has 3. The > alternating colors indicate that. I see the same here when I run "--depth > 24". Try this in your Fxtv app-default file; that fixes it here: > > ! Video-mode specific stuff > Fxtv.bswap2Bpp: true > Fxtv.bswap3Bpp: true > Fxtv.bswap4Bpp: true > Fxtv.wswap4Bpp: true > Fxtv.Bpp24bit: 3 > Fxtv.Bpp32bit: 4 > > |# ./tv-dgatest > ... > |Using Pixel Format: > | Bpp,shifts[R,G,B],masks[R,G,B],byteswap = > | 4,16,8,0,ff0000,00ff00,0000ff,1 > ^ > > Yep, that's what's going on. The Bpp24bit=3 setting should do the trick. Unfortunately that doesn't seem to have any effect. The Bpp24bit setting was already 3 in my app-defaults file. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 7:12: 8 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtpproxy2.mitre.org (smtpproxy2.mitre.org [128.29.154.90]) by hub.freebsd.org (Postfix) with ESMTP id 1909F37B403 for ; Mon, 16 Jul 2001 07:12:02 -0700 (PDT) (envelope-from jandrese@mitre.org) Received: from avsrv2.mitre.org (avsrv2.mitre.org [128.29.154.4]) by smtpproxy2.mitre.org (8.11.3/8.11.3) with ESMTP id f6GEBn115822; Mon, 16 Jul 2001 10:11:49 -0400 (EDT) Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) by smtpsrv2.mitre.org (8.11.3/8.11.3) with ESMTP id f6GEBma08660; Mon, 16 Jul 2001 10:11:48 -0400 (EDT) Received: from dhcp-105-164.mitre.org (128.29.105.164) by mailhub2.mitre.org with SMTP id 7175324; Mon, 16 Jul 2001 10:11:46 -0400 Message-ID: <3B52F625.4FC380BF@mitre.org> Date: Mon, 16 Jul 2001 10:11:49 -0400 From: Jason Andresen Organization: The MITRE Corporation X-Mailer: Mozilla 4.75 [en]C-20000818M (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Randall Hopper Cc: multimedia@freebsd.org Subject: Re: fxtv, G450, & DGA anyone? References: <20010711225308.A1769@nc.rr.com> <3B4DA217.A51E08ED@mitre.org> <20010714204525.C8839@nc.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Randall Hopper wrote: > > Jason Andresen: > |Randall Hopper wrote: > |> > |> Before I dig into this, anybody had success with a G450, fxtv, and DGA > |> (direct video mode)? > |> > |> Looks fine if I disable direct video, but I get no update at all when it's > |> on (the TV card's not DMAing where it's supposed to...; not good). > | > |Not exactly the same setup, but I have a G200, fxtv, and DGA mode > |(using the Matrox HAL that was included in the XFree 4.0.3 port) > |which works OK. There is an issue with the fullscreen mode (it gets > |the alignment 2 pixels off) but it seems to work fine otherwise. > > IIRC, my G200 PCI worked with DGA and 4.0.3 as well. Maybe this is > AGP-related... My G200 is AGP. -- \ |_ _|__ __|_ \ __| Jason Andresen jandrese@mitre.org |\/ | | | / _| Network and Distributed Systems Engineer _| _|___| _| _|_\___| Office: 703-883-7755 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 13:48:56 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from moo.sysabend.org (moo.sysabend.org [63.86.88.201]) by hub.freebsd.org (Postfix) with ESMTP id BF63737B401 for ; Mon, 16 Jul 2001 13:48:52 -0700 (PDT) (envelope-from ragnar@sysabend.org) Received: by moo.sysabend.org (Postfix, from userid 1004) id 9A4757574; Mon, 16 Jul 2001 13:50:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by moo.sysabend.org (Postfix) with ESMTP id 9788E1D93; Mon, 16 Jul 2001 13:50:16 -0700 (PDT) Date: Mon, 16 Jul 2001 13:50:16 -0700 (PDT) From: Jamie Bowden To: Randall Hopper Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv, G450, & DGA anyone? In-Reply-To: <20010714203545.B8839@nc.rr.com> Message-ID: Approved: yep X-representing: Only myself. X-badge: We don't need no stinking badges. X-obligatory-profanity: Fuck X-moo: Moo. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 14 Jul 2001, Randall Hopper wrote: :Interesting. You can tell for sure if you do an "fxtv -debug startup". If :you see one of these messages: : : XF86DGA not available...X Server isn't local. : XF86DGA extension not found : XF86DGA{QueryVersion,QueryDirectVideo}() failed : XF86DGAQueryDirectVideo() reports DGA not avail : :you're not using DGA. : :BTW, I'm also running 4.0.3 on 4.3-STABLE (from 6/24). : :If you "don't" see one of these messages, I'd love to know how it is :working for you. Can I get your XF86Config? It fails for me, but here's output in case you're interested. Did I see somone in this thread mention using fxtv fullscreen? FreeBSD 4.3-RELEASE, XF86 4.0.3, Geforce2 GTS yeilds the following: Xlib: extension "XFree86-DGA" missing on display ":0.0". XF86DGA{QueryVersion,QueryDirectVideo}() failed Rating Available Visuals: Rating Class bpp Bpp R,G,B Masks Swap DirectVid ------ ----------- --- --- ---------------------------- ---- --------- 4 TrueColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No 0 DirectColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No Chosen Visual is 24-bpp TrueColor XF86VidModeQueryVersion() succeeded - version = 2.00 Direct Video not supported by visual...using XImages Jamie Bowden -- "It was half way to Rivendell when the drugs began to take hold" Hunter S Tolkien "Fear and Loathing in Barad Dur" Iain Bowen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 15:16:47 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id DE1F237B401 for ; Mon, 16 Jul 2001 15:16:38 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 16 Jul 2001 18:16:32 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6GMFdW01571; Mon, 16 Jul 2001 18:15:39 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Mon, 16 Jul 2001 18:15:39 -0400 From: Randall Hopper To: Jamie Bowden Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv, G450, & DGA anyone? Message-ID: <20010716181539.B1320@nc.rr.com> References: <20010714203545.B8839@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from ragnar@sysabend.org on Mon, Jul 16, 2001 at 01:50:16PM -0700 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Jamie Bowden: |It fails for me, but here's output in case you're interested. Did I see |somone in this thread mention using fxtv fullscreen? | |FreeBSD 4.3-RELEASE, XF86 4.0.3, Geforce2 GTS yeilds the following: | |Xlib: extension "XFree86-DGA" missing on display ":0.0". |XF86DGA{QueryVersion,QueryDirectVideo}() failed That'll do it. See if you can get this result: > xdpyinfo | grep DGA XFree86-DGA by tweaking your XF86Config. In particular, make sure this isn't there: SubSection "extmod" Option "omit xfree86-dga" EndSubSection Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 15:43:41 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from theinternet.com.au (co3040619-a.kelvn1.qld.optushome.com.au [203.164.207.8]) by hub.freebsd.org (Postfix) with ESMTP id 454B637B405 for ; Mon, 16 Jul 2001 15:43:31 -0700 (PDT) (envelope-from akm@theinternet.com.au) Received: (from akm@localhost) by theinternet.com.au (8.11.3/8.11.3) id f6GMcNd15771; Tue, 17 Jul 2001 08:38:23 +1000 (EST) (envelope-from akm) Date: Tue, 17 Jul 2001 08:38:23 +1000 From: Andrew Kenneth Milton To: Randall Hopper Cc: Jamie Bowden , freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv, G450, & DGA anyone? Message-ID: <20010717083823.A13900@zeus.theinternet.com.au> References: <20010714203545.B8839@nc.rr.com> <20010716181539.B1320@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20010716181539.B1320@nc.rr.com>; from Randall Hopper on Mon, Jul 16, 2001 at 06:15:39PM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org +-------[ Randall Hopper ]---------------------- | Jamie Bowden: | |It fails for me, but here's output in case you're interested. Did I see | |somone in this thread mention using fxtv fullscreen? | | | |FreeBSD 4.3-RELEASE, XF86 4.0.3, Geforce2 GTS yeilds the following: | | | |Xlib: extension "XFree86-DGA" missing on display ":0.0". | |XF86DGA{QueryVersion,QueryDirectVideo}() failed [snip] | by tweaking your XF86Config. In particular, make sure this isn't there: | | SubSection "extmod" | Option "omit xfree86-dga" | EndSubSection I've also noticed with things (particularly xawtv), that if DISPLAY is localhost:0.0 it is a lot happier, than if display is simply :0.0. So if you're sure you've got DGA enabled, and it's still not being detected, try changing your DISPLAY to localhost:0.0 to see if that makes a difference. -- Totally Holistic Enterprises Internet| | Andrew Milton The Internet (Aust) Pty Ltd | | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 16:12:11 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail8.nc.rr.com (fe8.southeast.rr.com [24.93.67.55]) by hub.freebsd.org (Postfix) with ESMTP id 2F45B37B401 for ; Mon, 16 Jul 2001 16:12:09 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail8.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 16 Jul 2001 19:12:08 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6GNAq102242; Mon, 16 Jul 2001 19:10:52 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Mon, 16 Jul 2001 19:10:52 -0400 From: Randall Hopper To: Andrew Kenneth Milton Cc: Jamie Bowden , freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv, G450, & DGA anyone? Message-ID: <20010716191052.A2208@nc.rr.com> References: <20010714203545.B8839@nc.rr.com> <20010716181539.B1320@nc.rr.com> <20010717083823.A13900@zeus.theinternet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010717083823.A13900@zeus.theinternet.com.au>; from akm@theinternet.com.au on Tue, Jul 17, 2001 at 08:38:23AM +1000 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Andrew Kenneth Milton: |+-------[ Randall Hopper ]---------------------- || |Xlib: extension "XFree86-DGA" missing on display ":0.0". || |XF86DGA{QueryVersion,QueryDirectVideo}() failed ... |I've also noticed with things (particularly xawtv), that if DISPLAY is |localhost:0.0 it is a lot happier, than if display is simply :0.0. |So if you're sure you've got DGA enabled, and it's still not being detected, |try changing your DISPLAY to localhost:0.0 to see if that makes a |difference. You will not be able to get Direct Video (DGA) with Fxtv using localhost:0.0. If the display is not connected to the X server using local IPC (":..." or "unix:..."), fxtv disables Direct Video. localhost:... forces the slower TCP stack X server communication similar to displaying on remote displays. Fxtv does not investigate the hostname and interfaces of the local machine to try and devine whether it is local or remote. So :... is always treated as remote. Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 17:15:30 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail8.nc.rr.com (fe8.southeast.rr.com [24.93.67.55]) by hub.freebsd.org (Postfix) with ESMTP id 29A6F37B405 for ; Mon, 16 Jul 2001 17:15:27 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail8.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 16 Jul 2001 18:20:05 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6GMIus01623; Mon, 16 Jul 2001 18:18:56 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Mon, 16 Jul 2001 18:18:56 -0400 From: Randall Hopper To: "Kenneth D. Merry" Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010716181856.C1320@nc.rr.com> References: <20010711224717.A1723@nc.rr.com> <200107121621.f6CGLZk04238@beauty.kobe1995.net> <20010711225308.A1769@nc.rr.com> <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> <20010715094956.C1240@nc.rr.com> <20010715201038.A60120@panzer.kdm.org> <20010715232138.A2174@nc.rr.com> <20010715222713.A60880@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010715222713.A60880@panzer.kdm.org>; from ken@kdm.org on Sun, Jul 15, 2001 at 10:27:13PM -0600 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Kenneth D. Merry: |>Try this in your Fxtv app-default file; that fixes it here: |> |> ! Video-mode specific stuff |> Fxtv.bswap2Bpp: true |> Fxtv.bswap3Bpp: true |> Fxtv.bswap4Bpp: true |> Fxtv.wswap4Bpp: true |> Fxtv.Bpp24bit: 3 |> Fxtv.Bpp32bit: 4 ... |Unfortunately that doesn't seem to have any effect. The Bpp24bit setting |was already 3 in my app-defaults file. Ok, one final thing to check. Those resources may or may not be found by Fxtv based on your environment. Try: > appres Fxtv | grep Bpp And makes sure you see the right settings. Also try putting these in your ~/.Xdefaults and run "xrdb -load ~/.Xdefaults", then run Fxtv. Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 17:22:20 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from moo.sysabend.org (moo.sysabend.org [63.86.88.201]) by hub.freebsd.org (Postfix) with ESMTP id C5F5337B408 for ; Mon, 16 Jul 2001 17:22:12 -0700 (PDT) (envelope-from ragnar@sysabend.org) Received: by moo.sysabend.org (Postfix, from userid 1004) id 6BD1C7574; Mon, 16 Jul 2001 17:23:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by moo.sysabend.org (Postfix) with ESMTP id 50AFF1D93; Mon, 16 Jul 2001 17:23:36 -0700 (PDT) Date: Mon, 16 Jul 2001 17:23:36 -0700 (PDT) From: Jamie Bowden To: Randall Hopper Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv, G450, & DGA anyone? In-Reply-To: <20010716181539.B1320@nc.rr.com> Message-ID: Approved: yep X-representing: Only myself. X-badge: We don't need no stinking badges. X-obligatory-profanity: Fuck X-moo: Moo. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 16 Jul 2001, Randall Hopper wrote: :Jamie Bowden: : |It fails for me, but here's output in case you're interested. Did I see : |somone in this thread mention using fxtv fullscreen? : | : |FreeBSD 4.3-RELEASE, XF86 4.0.3, Geforce2 GTS yeilds the following: : | : |Xlib: extension "XFree86-DGA" missing on display ":0.0". : |XF86DGA{QueryVersion,QueryDirectVideo}() failed : :That'll do it. See if you can get this result: : : > xdpyinfo | grep DGA : XFree86-DGA : :by tweaking your XF86Config. In particular, make sure this isn't there: : : SubSection "extmod" : Option "omit xfree86-dga" : EndSubSection That was there. I've commented it out, but DGA is still not loading. It's not a huge deal, I was originally just giving you another data point. I plan on going to XFree86 4.1.0 soon, I'll see if I have working DGA after that. The error msg has changed, BTW. Here it is with the omit-dga commented out: Xlib: extension "XFree86-DGA" missing on display ":0.0". XF86DGA{QueryVersion,QueryDirectVideo}() failed Rating Available Visuals: Rating Class bpp Bpp R,G,B Masks Swap DirectVid ------ ----------- --- --- ---------------------------- ---- --------- 4 TrueColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No 0 DirectColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No Chosen Visual is 24-bpp TrueColor Xlib: extension "XFree86-VidModeExtension" missing on display ":0.0". XF86VidModeQueryVersion() failed Direct Video not supported by visual...using XImages Previously, I think only one of those failed. Jamie Bowden -- "It was half way to Rivendell when the drugs began to take hold" Hunter S Tolkien "Fear and Loathing in Barad Dur" Iain Bowen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 17:25:50 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from moo.sysabend.org (moo.sysabend.org [63.86.88.201]) by hub.freebsd.org (Postfix) with ESMTP id 6896E37B405 for ; Mon, 16 Jul 2001 17:25:46 -0700 (PDT) (envelope-from ragnar@sysabend.org) Received: by moo.sysabend.org (Postfix, from userid 1004) id 132697574; Mon, 16 Jul 2001 17:27:10 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by moo.sysabend.org (Postfix) with ESMTP id E62CA1D93; Mon, 16 Jul 2001 17:27:10 -0700 (PDT) Date: Mon, 16 Jul 2001 17:27:10 -0700 (PDT) From: Jamie Bowden To: Andrew Kenneth Milton Cc: Randall Hopper , freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv, G450, & DGA anyone? In-Reply-To: <20010717083823.A13900@zeus.theinternet.com.au> Message-ID: Approved: yep X-representing: Only myself. X-badge: We don't need no stinking badges. X-obligatory-profanity: Fuck X-moo: Moo. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 17 Jul 2001, Andrew Kenneth Milton wrote: :+-------[ Randall Hopper ]---------------------- :| Jamie Bowden: :| |It fails for me, but here's output in case you're interested. Did I see :| |somone in this thread mention using fxtv fullscreen? :| | :| |FreeBSD 4.3-RELEASE, XF86 4.0.3, Geforce2 GTS yeilds the following: :| | :| |Xlib: extension "XFree86-DGA" missing on display ":0.0". :| |XF86DGA{QueryVersion,QueryDirectVideo}() failed : :[snip] : :| by tweaking your XF86Config. In particular, make sure this isn't there: :| :| SubSection "extmod" :| Option "omit xfree86-dga" :| EndSubSection : :I've also noticed with things (particularly xawtv), that if DISPLAY is :localhost:0.0 it is a lot happier, than if display is simply :0.0. :So if you're sure you've got DGA enabled, and it's still not being detected, :try changing your DISPLAY to localhost:0.0 to see if that makes a difference. Changing the $DISPLAY to localhost:0.0 or :0.0 gives yet another error, as follows: Shm Extension not available...X Server isn't local. XF86DGA not available...X Server isn't local. Rating Available Visuals: Rating Class bpp Bpp R,G,B Masks Swap DirectVid ------ ----------- --- --- ---------------------------- ---- --------- 4 TrueColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No 0 DirectColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No Chosen Visual is 24-bpp TrueColor XF86VidMode probably isn't enabled, if even available...X Server isn't local. Direct Video not supported by visual...using XImages I know with XFree86 4.x, the X server is wrapped in a virtual frame buffer. At least, that's my understanding of the docs. Might this be interfering? Jamie Bowden -- "It was half way to Rivendell when the drugs began to take hold" Hunter S Tolkien "Fear and Loathing in Barad Dur" Iain Bowen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 17:28:27 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 078AC37B403 for ; Mon, 16 Jul 2001 17:28:23 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id SAA68515; Mon, 16 Jul 2001 18:28:20 -0600 (MDT) (envelope-from ken) Date: Mon, 16 Jul 2001 18:28:20 -0600 From: "Kenneth D. Merry" To: Randall Hopper Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010716182820.A68499@panzer.kdm.org> References: <200107121621.f6CGLZk04238@beauty.kobe1995.net> <20010711225308.A1769@nc.rr.com> <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> <20010715094956.C1240@nc.rr.com> <20010715201038.A60120@panzer.kdm.org> <20010715232138.A2174@nc.rr.com> <20010715222713.A60880@panzer.kdm.org> <20010716181856.C1320@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010716181856.C1320@nc.rr.com>; from aa8vb@nc.rr.com on Mon, Jul 16, 2001 at 06:18:56PM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Jul 16, 2001 at 18:18:56 -0400, Randall Hopper wrote: > Kenneth D. Merry: > |>Try this in your Fxtv app-default file; that fixes it here: > |> > |> ! Video-mode specific stuff > |> Fxtv.bswap2Bpp: true > |> Fxtv.bswap3Bpp: true > |> Fxtv.bswap4Bpp: true > |> Fxtv.wswap4Bpp: true > |> Fxtv.Bpp24bit: 3 > |> Fxtv.Bpp32bit: 4 > ... > |Unfortunately that doesn't seem to have any effect. The Bpp24bit setting > |was already 3 in my app-defaults file. > > Ok, one final thing to check. Those resources may or may not be found by > Fxtv based on your environment. Try: > > > appres Fxtv | grep Bpp > > And makes sure you see the right settings. Also try putting these in your > ~/.Xdefaults and run "xrdb -load ~/.Xdefaults", then run Fxtv. You're right, the fxtv app defaults weren't getting loaded, for whatever reason. Putting them in .Xdefaults makes them show up with appres: {gondolin:/usr/home/ken:7:0} appres Fxtv |grep Bpp Fxtv.Bpp32bit: 4 Fxtv.bswap3Bpp: true Fxtv.bswap4Bpp: true Fxtv.wswap4Bpp: true Fxtv.Bpp24bit: 3 Fxtv.bswap2Bpp: true Unfortunately, that still doesn't fix the DGA problem. It only works if there's something partially obstructing the fxtv window. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 18:31:43 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail8.nc.rr.com (fe8.southeast.rr.com [24.93.67.55]) by hub.freebsd.org (Postfix) with ESMTP id B84A937B42C for ; Mon, 16 Jul 2001 18:28:56 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail8.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 16 Jul 2001 21:28:03 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6H1Qiq08897; Mon, 16 Jul 2001 21:26:44 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Mon, 16 Jul 2001 21:26:44 -0400 From: Randall Hopper To: "Kenneth D. Merry" Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010716212644.A8863@nc.rr.com> References: <20010711225308.A1769@nc.rr.com> <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> <20010715094956.C1240@nc.rr.com> <20010715201038.A60120@panzer.kdm.org> <20010715232138.A2174@nc.rr.com> <20010715222713.A60880@panzer.kdm.org> <20010716181856.C1320@nc.rr.com> <20010716182820.A68499@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716182820.A68499@panzer.kdm.org>; from ken@kdm.org on Mon, Jul 16, 2001 at 06:28:20PM -0600 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Kenneth D. Merry: |{gondolin:/usr/home/ken:7:0} appres Fxtv |grep Bpp |Fxtv.Bpp32bit: 4 |Fxtv.bswap3Bpp: true |Fxtv.bswap4Bpp: true |Fxtv.wswap4Bpp: true |Fxtv.Bpp24bit: 3 |Fxtv.bswap2Bpp: true | |Unfortunately, that still doesn't fix the DGA problem. It only works if |there's something partially obstructing the fxtv window. So do you see odd "screen door"-lookin' TV video sprayed on your screen via DGA, or do you not see anything. If the former, for kicks try changing the "Bpp32bit: 4" to a 3. If the latter, and if you're running with the patch that adds the GetVideo call (and requires running as root), then... hmm... I guess we're back to the MGA driver version thing. Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 18:50:13 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 1478A37B40E for ; Mon, 16 Jul 2001 18:48:17 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id TAA68951; Mon, 16 Jul 2001 19:33:00 -0600 (MDT) (envelope-from ken) Date: Mon, 16 Jul 2001 19:33:00 -0600 From: "Kenneth D. Merry" To: Randall Hopper Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010716193259.A68927@panzer.kdm.org> References: <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> <20010715094956.C1240@nc.rr.com> <20010715201038.A60120@panzer.kdm.org> <20010715232138.A2174@nc.rr.com> <20010715222713.A60880@panzer.kdm.org> <20010716181856.C1320@nc.rr.com> <20010716182820.A68499@panzer.kdm.org> <20010716212644.A8863@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010716212644.A8863@nc.rr.com>; from aa8vb@nc.rr.com on Mon, Jul 16, 2001 at 09:26:44PM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Jul 16, 2001 at 21:26:44 -0400, Randall Hopper wrote: > Kenneth D. Merry: > |{gondolin:/usr/home/ken:7:0} appres Fxtv |grep Bpp > |Fxtv.Bpp32bit: 4 > |Fxtv.bswap3Bpp: true > |Fxtv.bswap4Bpp: true > |Fxtv.wswap4Bpp: true > |Fxtv.Bpp24bit: 3 > |Fxtv.bswap2Bpp: true > | > |Unfortunately, that still doesn't fix the DGA problem. It only works if > |there's something partially obstructing the fxtv window. > > So do you see odd "screen door"-lookin' TV video sprayed on your screen via > DGA, or do you not see anything. If the former, for kicks try changing the > "Bpp32bit: 4" to a 3. If the latter, and if you're running with the patch > that adds the GetVideo call (and requires running as root), > then... hmm... I guess we're back to the MGA driver version thing. When I have something partially obstructing the fxtv window, it looks normal. (No screen-door problem, and I definitely see the right picture.) If I don't have something partially obstructing the window, I either have a black window (when it first cranks up), or it stays frozen on the last frame displayed when something was obstructing the window. After further tests, I can run with the stock 4.1.0 driver, if I have the Matrox HAL around. The problem there is that my screen looks like a mild trapezoid. Also, it doesn't fix the DGA problem. The problem is the same as above. I am running with the patch that adds the GetVideo call; my fxtv binary was installed setuid root by the port. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Mon Jul 16 22:33:13 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 4448437B40E for ; Mon, 16 Jul 2001 22:33:10 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 16 Jul 2001 21:07:53 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6H17Er08286; Mon, 16 Jul 2001 21:07:14 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Mon, 16 Jul 2001 21:07:14 -0400 From: Randall Hopper To: Jamie Bowden Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv, G450, & DGA anyone? Message-ID: <20010716210714.A8205@nc.rr.com> References: <20010717083823.A13900@zeus.theinternet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from ragnar@sysabend.org on Mon, Jul 16, 2001 at 05:27:10PM -0700 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Jamie Bowden: |Changing the $DISPLAY to localhost:0.0 or :0.0 gives yet another |error, as follows: | |Shm Extension not available...X Server isn't local. Yep, same reason. Shared memory transfer presumes you're local, and local is only presumed for ":..." and "unix:..." display settings. |I know with XFree86 4.x, the X server is wrapped in a virtual frame |buffer. At least, that's my understanding of the docs. Might this be |interfering? You got me there. I knew there was a virtual frame buffer X server that lets you render to a memory frame buffer instead of a video card, but never heard of 4.x wrapping this in. Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Tue Jul 17 19:54:56 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 6A10F37B403; Tue, 17 Jul 2001 19:54:53 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f6I2sqR09989; Tue, 17 Jul 2001 19:54:52 -0700 Date: Tue, 17 Jul 2001 19:54:52 -0700 From: Brooks Davis To: multimedia@freebsd.org Cc: roger@freebsd.org Subject: bktr and smbus Message-ID: <20010717195452.A9080@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm working on reducing the number of devices with count entries in sys/conf/files*. (i.e. devices that you configure with entries like "device XXX 2" instead of "device XXX".) While looking for low hanging fruit, I noticed the only consumer of NSMBUS in the tree is the bktr driver and that the only significan code in the bktr driver the uses NBKTR is the smbus code in bktr_i2c.c. After spending some time trying to remove NSMBUS and NBKTR, I'm wondering why the smbus code exists as all. Are there any advantages to running with this? There certaintly aren't any code savings (the support functions are larger then the builtin i2c code) and the easiest way to remove NSMBUS and NBKTR would be to remove the smbus code followed by a four line patch define NBKTR to 1 in one place. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7VPp7XY6L6fI4GtQRAjlHAKC9MlJh0c/rI49FIKzJae+uwHox0gCfV4Qz 7RA9bAtfmUeulB8c4FSKWMQ= =TjJH -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Jul 18 8:42:58 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.RWTH-Aachen.DE [137.226.46.168]) by hub.freebsd.org (Postfix) with ESMTP id 3760137B405 for ; Wed, 18 Jul 2001 08:42:56 -0700 (PDT) (envelope-from kuku@gilberto.physik.rwth-aachen.de) Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.11.1/8.9.3) id f6IFgtl63993 for multimedia@freebsd.org; Wed, 18 Jul 2001 17:42:55 +0200 (CEST) (envelope-from kuku) Date: Wed, 18 Jul 2001 17:42:55 +0200 (CEST) From: Christoph Kukulies Message-Id: <200107181542.f6IFgtl63993@gilberto.physik.rwth-aachen.de> To: multimedia@freebsd.org Subject: writing a sine to a .wav Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Does anyone know of a function (API) or whatever that allows for generating .wav data (or .mp3) data out of mathematical functions like sin(x),sin(2x), sin(3x) etc. -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Jul 18 8:46: 4 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail.numachi.com (numachi.numachi.com [198.175.254.2]) by hub.freebsd.org (Postfix) with SMTP id 8550037B40C for ; Wed, 18 Jul 2001 08:46:01 -0700 (PDT) (envelope-from reichert@natto.numachi.com) Received: (qmail 19729 invoked by uid 3001); 18 Jul 2001 15:45:59 -0000 Received: from natto.numachi.com (198.175.254.216) by numachi.numachi.com with SMTP; 18 Jul 2001 15:45:59 -0000 Received: (qmail 71822 invoked by uid 1001); 18 Jul 2001 15:45:59 -0000 Date: Wed, 18 Jul 2001 11:45:59 -0400 From: Brian Reichert To: Christoph Kukulies Cc: multimedia@freebsd.org Subject: Re: writing a sine to a .wav Message-ID: <20010718114559.Q49286@numachi.com> References: <200107181542.f6IFgtl63993@gilberto.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107181542.f6IFgtl63993@gilberto.physik.rwth-aachen.de>; from kuku@gilberto.physik.rwth-aachen.de on Wed, Jul 18, 2001 at 05:42:55PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jul 18, 2001 at 05:42:55PM +0200, Christoph Kukulies wrote: > Does anyone know of a function (API) or whatever that allows for generating > .wav data (or .mp3) data out of mathematical functions like sin(x),sin(2x), > sin(3x) etc. Well, sox(1) seems to be the switchblade knife for sound file conversion, and it can accept 'raw' and 'textual' data. .dat Text Data files These files contain a textual representation of the sample data. There is one line at the beginning that contains the sample rate. Subse- quent lines contain two numeric data items: the time since the beginning of the sample and the sample value. Values are normalized so that the maximum and minimum are 1.00 and -1.00. This file format can be used to create data files for external programs such as FFT analyzers or graph routines. SoX can also convert a file in this format back into one of the other file formats. I have no idea if that's useful for you, though... > -- > Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Jul 18 9:28: 1 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from kumr.lns.com (kumr.lns.com [140.174.7.1]) by hub.freebsd.org (Postfix) with ESMTP id B4BB137B406 for ; Wed, 18 Jul 2001 09:27:54 -0700 (PDT) (envelope-from pozar@kumr.lns.com) Received: (from pozar@localhost) by kumr.lns.com (8.11.3/8.9.3) id f6IGQT442834; Wed, 18 Jul 2001 09:26:29 -0700 (PDT) (envelope-from pozar) Date: Wed, 18 Jul 2001 09:26:29 -0700 From: Tim Pozar To: Brian Reichert Cc: Christoph Kukulies , multimedia@FreeBSD.ORG Subject: Re: writing a sine to a .wav Message-ID: <20010718092628.A42443@lns.com> References: <200107181542.f6IFgtl63993@gilberto.physik.rwth-aachen.de> <20010718114559.Q49286@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010718114559.Q49286@numachi.com>; from reichert@numachi.com on Wed, Jul 18, 2001 at 11:45:59AM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have a quicky program that will generate the raw PCM sine audio (sans WAV headers) that you can run into SOX or write directly to /dev/dsp (OSS). It is called tonegen and is availible at: http://www.lns.com/papers/tonegen/ Functions include... tonegen: Generates a sine wave on the sound card or standard out. -a dB Sets attenuation from "all ones" in dB. Default is "0 db". -d device Sets device name. Default is "/dev/dspW". If "device" is "-" then it uses STDOUT -f Hz Sets tone in Hertz. Default is "400 Hz". -r rate Sets device sample rate in Hertz. Default is "44100 Hz". -t seconds Sets time to run. Default is infinite. The length of the tone will run over slightly until full cycle stops at a "zero crossing" to prevent clicks. It is distributed as source only and compiles on FreeBSD and Linux. On Wed, Jul 18, 2001 at 11:45:59AM -0400, Brian Reichert wrote: > On Wed, Jul 18, 2001 at 05:42:55PM +0200, Christoph Kukulies wrote: > > Does anyone know of a function (API) or whatever that allows for generating > > .wav data (or .mp3) data out of mathematical functions like sin(x),sin(2x), > > sin(3x) etc. > > Well, sox(1) seems to be the switchblade knife for sound file > conversion, and it can accept 'raw' and 'textual' data. > > .dat Text Data files > These files contain a textual representation of > the sample data. There is one line at the > beginning that contains the sample rate. Subse- > quent lines contain two numeric data items: the > time since the beginning of the sample and the > sample value. Values are normalized so that the > maximum and minimum are 1.00 and -1.00. This > file format can be used to create data files for > external programs such as FFT analyzers or graph > routines. SoX can also convert a file in this > format back into one of the other file formats. > > I have no idea if that's useful for you, though... > > > -- > > Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-multimedia" in the body of the message > > -- > Brian 'you Bastard' Reichert > 37 Crystal Ave. #303 Daytime number: (603) 434-6842 > Derry NH 03038-1713 USA Intel architecture: the left-hand path > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message -- Snail: Tim Pozar / LNS / 1978 45th Ave / San Francisco CA 94116 / USA POTS: +1 415 665 3790 Radio: KC6GNJ / KAE6247 "It's a damn poor mind that can only think of one way to spell a word." - Andrew Jackson "What is wanted is not the will to believe, but the will to find out, which is the exact opposite." - Bertrand Russell, "Skeptical_Essays" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Jul 18 9:41:41 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.RWTH-Aachen.DE [137.226.46.168]) by hub.freebsd.org (Postfix) with ESMTP id 823FC37B403 for ; Wed, 18 Jul 2001 09:41:37 -0700 (PDT) (envelope-from kuku@gilberto.physik.rwth-aachen.de) Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.11.1/8.9.3) id f6IGfKH64566; Wed, 18 Jul 2001 18:41:20 +0200 (CEST) (envelope-from kuku) Date: Wed, 18 Jul 2001 18:41:20 +0200 From: Christoph Kukulies To: Tim Pozar Cc: Brian Reichert , Christoph Kukulies , multimedia@FreeBSD.ORG Subject: Re: writing a sine to a .wav Message-ID: <20010718184119.A64530@gil.physik.rwth-aachen.de> References: <200107181542.f6IFgtl63993@gilberto.physik.rwth-aachen.de> <20010718114559.Q49286@numachi.com> <20010718092628.A42443@lns.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20010718092628.A42443@lns.com>; from pozar@lns.com on Wed, Jul 18, 2001 at 09:26:29AM -0700 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Nice. That's very close to what I'm looking for. Thanks. I'll play with it and try to understand what you are doing. On Wed, Jul 18, 2001 at 09:26:29AM -0700, Tim Pozar wrote: > I have a quicky program that will generate the raw PCM sine audio > (sans WAV headers) that you can run into SOX or write directly to > /dev/dsp (OSS). It is called tonegen and is availible at: > > http://www.lns.com/papers/tonegen/ > > Functions include... > > tonegen: Generates a sine wave on the sound card or standard out. > -a dB Sets attenuation from "all ones" in dB. Default is "0 db". > -d device Sets device name. Default is "/dev/dspW". > If "device" is "-" then it uses STDOUT > -f Hz Sets tone in Hertz. Default is "400 Hz". > -r rate Sets device sample rate in Hertz. Default is "44100 Hz". > -t seconds Sets time to run. Default is infinite. > The length of the tone will run over slightly until full > cycle stops at a "zero crossing" to prevent clicks. > > It is distributed as source only and compiles on FreeBSD and Linux. > > On Wed, Jul 18, 2001 at 11:45:59AM -0400, Brian Reichert wrote: > > On Wed, Jul 18, 2001 at 05:42:55PM +0200, Christoph Kukulies wrote: > > > Does anyone know of a function (API) or whatever that allows for generating > > > .wav data (or .mp3) data out of mathematical functions like sin(x),sin(2x), > > > sin(3x) etc. > > > > Well, sox(1) seems to be the switchblade knife for sound file > > conversion, and it can accept 'raw' and 'textual' data. > > > > .dat Text Data files > > These files contain a textual representation of > > the sample data. There is one line at the > > beginning that contains the sample rate. Subse- > > quent lines contain two numeric data items: the > > time since the beginning of the sample and the > > sample value. Values are normalized so that the > > maximum and minimum are 1.00 and -1.00. This > > file format can be used to create data files for > > external programs such as FFT analyzers or graph > > routines. SoX can also convert a file in this > > format back into one of the other file formats. > > > > I have no idea if that's useful for you, though... > > > > Brian 'you Bastard' Reichert > > 37 Crystal Ave. #303 Daytime number: (603) 434-6842 > > Derry NH 03038-1713 USA Intel architecture: the left-hand path > > -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de "The Hammond Tonewheel Organ - God's harmonica" http://blues.physik.rwth-aachen.de/hammond.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Jul 18 13:17:56 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from av.fks.lan (tc4-1-13.cyberport.net [216.166.149.108]) by hub.freebsd.org (Postfix) with ESMTP id CC69637B401 for ; Wed, 18 Jul 2001 13:17:51 -0700 (PDT) (envelope-from myke@ees.com) Received: from localhost (myke@localhost) by av.fks.lan (8.11.3/8.11.1) with ESMTP id f6IKIJa41917; Wed, 18 Jul 2001 14:18:20 -0600 (MDT) (envelope-from myke@ees.com) X-Authentication-Warning: av.fks.lan: myke owned process doing -bs Date: Wed, 18 Jul 2001 14:18:18 -0600 (MDT) From: Mike Holling X-Sender: myke@av.fks.lan To: Christoph Kukulies Cc: multimedia@FreeBSD.ORG Subject: Re: writing a sine to a .wav In-Reply-To: <200107181542.f6IFgtl63993@gilberto.physik.rwth-aachen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Does anyone know of a function (API) or whatever that allows for generating > .wav data (or .mp3) data out of mathematical functions like sin(x),sin(2x), > sin(3x) etc. Here's a quick and dirty perl script to generate a tone. Just direct the output to /dev/dsp, which should be set for 8khz mono 8 bit by default: perl wave.pl > /dev/dsp You can use sox to convert the output to a .wav file. #!/usr/bin/perl # Generate a sine wave at some frequency $rate="8196"; $pi=3.141; $seconds=5; $length= $rate*$seconds; foreach $f (220) { $period= $rate/$f; $glob=2*$pi/$period; for($s=1;$s<$length;$s++) { $out=sin($s*$glob)*127+128; printf("%c",$out); } } - Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Jul 18 13:27: 1 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from av.fks.lan (tc4-1-13.cyberport.net [216.166.149.108]) by hub.freebsd.org (Postfix) with ESMTP id 84A0A37B401 for ; Wed, 18 Jul 2001 13:26:57 -0700 (PDT) (envelope-from myke@ees.com) Received: from localhost (myke@localhost) by av.fks.lan (8.11.3/8.11.1) with ESMTP id f6IKS4v47473 for ; Wed, 18 Jul 2001 14:28:04 -0600 (MDT) (envelope-from myke@ees.com) X-Authentication-Warning: av.fks.lan: myke owned process doing -bs Date: Wed, 18 Jul 2001 14:28:03 -0600 (MDT) From: Mike Holling X-Sender: myke@av.fks.lan To: freebsd-multimedia@freebsd.org Subject: state of newmidi in 4.3R? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm considering trying to get MIDI enabled on my workstation/music experimentation machine. It has two soundcards which work fine for DSP playback and recording: av% cat /dev/sndstat FreeBSD Audio Driver (newpcm) May 20 2001 20:36:50 Installed devices: pcm0: at io 0xe800 irq 11 (1p/1r channels duplex) pcm1: at io 0x220 irq 5 drq 1 (1p/1r channels) However I'm not able to get any basic MIDI functionality working: av% playmidi -e somethin.mid Playmidi 2.4 Copyright (C) 1994-1997 Nathan I. Laredo, AWE32 by Takashi Iwai This is free software with ABSOLUTELY NO WARRANTY. For details please see the file COPYING. open /dev/sequencer: Device not configured There doesn't seem to be much info about newmidi in the archives or on the web. I found a page for newmidi patches on the FreeBSD site, but they seem old (around 4.0 time) and there's no "midi" device in LINT and no "midistat" in MAKEDEV. I had an external synth hooked up to the AudioPCI back in 1999, using FreeBSD 3.x and the commercial OSS drivers. Is there something else that needs to be configured before MIDI is functional? - Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Wed Jul 18 14:11: 8 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from jupiter.linuxengine.net (jupiter.linuxengine.net [209.61.188.254]) by hub.freebsd.org (Postfix) with ESMTP id B0CA137B406 for ; Wed, 18 Jul 2001 14:11:05 -0700 (PDT) (envelope-from john@utzweb.net) Received: from jupiterweb.commercevault.com (jupiterweb.commercevault.com [209.61.179.16] (may be forged)) by jupiter.linuxengine.net (8.11.0/8.11.0) with ESMTP id f6ILEr026357; Wed, 18 Jul 2001 16:14:53 -0500 Date: Wed, 18 Jul 2001 16:14:53 -0500 (CDT) From: John Utz X-X-Sender: To: Mike Holling Cc: Subject: Re: state of newmidi in 4.3R? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org per some mail from the hardworking cg: you are waiting for either 5.0 or 4.4 if it ships mewmidi is in the tree, as i understand it. On Wed, 18 Jul 2001, Mike Holling wrote: > I'm considering trying to get MIDI enabled on my workstation/music > experimentation machine. It has two soundcards which work fine for DSP > playback and recording: > > av% cat /dev/sndstat > FreeBSD Audio Driver (newpcm) May 20 2001 20:36:50 > Installed devices: > pcm0: at io 0xe800 irq 11 (1p/1r channels duplex) > pcm1: at io 0x220 irq 5 drq 1 (1p/1r channels) > > However I'm not able to get any basic MIDI functionality working: > > av% playmidi -e somethin.mid > Playmidi 2.4 Copyright (C) 1994-1997 Nathan I. Laredo, AWE32 by Takashi Iwai > This is free software with ABSOLUTELY NO WARRANTY. > For details please see the file COPYING. > open /dev/sequencer: Device not configured > > There doesn't seem to be much info about newmidi in the archives or on the > web. I found a page for newmidi patches on the FreeBSD site, but they > seem old (around 4.0 time) and there's no "midi" device in LINT and no > "midistat" in MAKEDEV. I had an external synth hooked up to the AudioPCI > back in 1999, using FreeBSD 3.x and the commercial OSS drivers. Is there > something else that needs to be configured before MIDI is functional? > > - Mike > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message > -- John L. Utz III john@utzweb.net Idiocy is the Impulse Function in the Convolution of Life To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Jul 19 6:17:31 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtp.alcove.fr (smtp.alcove.fr [212.155.209.139]) by hub.freebsd.org (Postfix) with ESMTP id 5B9D137B406; Thu, 19 Jul 2001 06:17:24 -0700 (PDT) (envelope-from nsouch@fr.alcove.com) Received: from nsouch by smtp.alcove.fr with local (Exim 3.12 #1 (Debian)) id 15NDfq-0002pN-00; Thu, 19 Jul 2001 15:17:02 +0200 Date: Thu, 19 Jul 2001 15:17:02 +0200 From: Nicolas Souchu To: Brooks Davis Cc: multimedia@freebsd.org, roger@freebsd.org Subject: Re: bktr and smbus Message-ID: <20010719151701.M32191@ontario.alcove-fr> References: <20010717195452.A9080@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.4i In-Reply-To: <20010717195452.A9080@Odin.AC.HMC.Edu>; from brooks@one-eyed-alien.net on Tue, Jul 17, 2001 at 07:54:52PM -0700 Organization: =?iso-8859-1?Q?Alc=F4ve=2C_http:=2F=2Fwww=2Ealcove=2Ecom?= Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jul 17, 2001 at 07:54:52PM -0700, Brooks Davis wrote: > I'm working on reducing the number of devices with count entries in > sys/conf/files*. (i.e. devices that you configure with entries like > "device XXX 2" instead of "device XXX".) While looking for low hanging > fruit, I noticed the only consumer of NSMBUS in the tree is the bktr > driver and that the only significan code in the bktr driver the uses > NBKTR is the smbus code in bktr_i2c.c. After spending some time trying to > remove NSMBUS and NBKTR, I'm wondering why the smbus code exists as all. > Are there any advantages to running with this? There certaintly aren't At the opposite, FreeBSD has an smbus framework, why don't use it and duplicate the I2C logic everywhere? There's no reason not using FreeBSD smbus. > any code savings (the support functions are larger then the builtin > i2c code) and the easiest way to remove NSMBUS and NBKTR would be to > remove the smbus code followed by a four line patch define NBKTR to 1 > in one place. The solution is rather at http://people.freebsd.org/~nsouch/iicbus.html I've uploaded a patch for -current. I'd be very happy to get feedback about it. Nicolas -- Alcôve Technical Manager - Nicolas.Souchu@fr.alcove.com - http://www.alcove.com Open Source Software Developer - nsouch@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Jul 19 6:46:50 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from email03.aon.at (WARSL401PIP7.highway.telekom.at [195.3.96.115]) by hub.freebsd.org (Postfix) with SMTP id 5921437B401 for ; Thu, 19 Jul 2001 06:46:43 -0700 (PDT) (envelope-from sperber@w3.brgkepler.asn-graz.ac.at) Received: (qmail 171562 invoked from network); 19 Jul 2001 13:46:40 -0000 Received: from l0819p20.dipool.highway.telekom.at ([62.46.166.84]) (envelope-sender ) by qmail3.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 19 Jul 2001 13:46:40 -0000 Date: Thu, 19 Jul 2001 15:47:06 +0000 (GMT) From: Sperber X-X-Sender: To: Subject: TV, fxtv, too slow Message-ID: <20010719153849.I339-100000@www.omega-project.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi! I just upgraded my computer and since this upgrade my tv doesn't work properly any more. - It's too slow. I had a K6-2 500 and a PCI (Riva TNT2) graphic card, now i have a Thunderbird 1.2 Ghz and a Geforce 2 MX (AGP). When I maximise the fxtv window it is suddenly interlaced and shadows of former pictures stay... - I tried several things, but nothing worked... It's also intressting that my dga test is slower than the one of my cousin who has a Celeron 300, Matrox Milenium G450. I hope someone can help me. Thx in advance Sperber <-- dga output--> 1 addr:0x28400000, width 1600, bank size 33554432, depth 24 planes Framebuffer write speed: 199168K/s Framebuffer read speed: 6055K/s <-- --> <-- dmesg --> Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.3-STABLE #0: Thu Jul 19 00:00:44 GMT 2001 root@www.omega-project.net:/usr/src/sys/compile/OMEGA Timecounter "i8254" frequency 1193182 Hz CPU: AMD Athlon(tm) Processor (1202.13-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x642 Stepping = 2 Features=0x183f9ff AMD Features=0xc0440000<,AMIE,DSP,3DNow!> real memory = 805240832 (786368K bytes) avail memory = 778756096 (760504K bytes) Preloaded elf kernel "kernel" at 0xc046d000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc046d09c. VESA: v3.0, 32768k memory, flags:0x1, mode table:0xc03e5bc2 (1000022) VESA: NVidia Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xd000-0xd00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 9 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: Microsoft Microsoft IntelliMouse\M-. Optical, rev 1.10/1.08, addr 2, iclass 3/1 ums0: 5 buttons and Z dir. uhid0: THRUSTMASTER Top Gun Afterburner, rev 1.10/1.00, addr 3, iclass 3/0 uhci1: port 0xd800-0xd81f irq 9 at device 7.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered chip1: at device 7.4 on pci0 sym0: <810a> port 0xdc00-0xdcff mem 0xdd000000-0xdd0000ff irq 11 at device 14.0 on pci0 sym0: No NVRAM, ID 7, Fast-10, SE, parity checking ed0: port 0xe000-0xe01f irq 5 at device 15.0 on pci0 ed0: address 48:54:e8:29:89:8c, type NE2000 (16 bit) isic0: port 0xe400-0xe41f mem 0xdd001000-0xdd00101f irq 9 at device 16.0 on pci0 isic0: ISAC 2085 Version A1/A2 or 2086/2186 Version 1.1 (IOM-2) bktr0: mem 0xdd002000-0xdd002fff irq 11 at device 17.0 on pci0 iicbb0: on bti2c0 iicbus0: on iicbb0 master-only smbus0: on bti2c0 bktr0: Hauppauge Model 61314 B1M bktr0: Detected a MSP3410D-B4 at 0x80 bktr0: Hauppauge WinCast/TV, Philips PAL I tuner, msp3400c stereo. pci0: (vendor=0x109e, dev=0x0878) at 17.1 irq 11 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sbc1: at port 0x220-0x22f,0x300-0x301,0x388-0x38b irq 10 drq 1,5 on isa0 pcm0: on sbc1 IPv6 packet filtering initialized, logging limited to 100 packets/entry i4b: ISDN call control device attached i4brbch: 4 raw B channel access device(s) attached i4bipr: 4 IP over raw HDLC ISDN device(s) attached (VJ header compression) i4bctl: ISDN system control port attached i4btrc: 4 ISDN trace device(s) attached i4bisppp: 4 ISDN SyncPPP device(s) attached IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default i4btel: 2 ISDN telephony interface device(s) attached IP Filter: v3.4.16 initialized. Default = pass all, Logging = enabled ad0: 3445MB [7000/16/63] at ata0-master WDMA2 ad1: 24405MB [49585/16/63] at ata0-slave UDMA66 ad2: 514MB [1046/16/63] at ata1-master PIO3 acd0: CDROM at ata1-slave using PIO4 Waiting 15 seconds for SCSI devices to settle Mounting root from ufs:/dev/ad1s1a cd0 at sym0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 8) cd0: cd present [331608 x 2048 byte records] <-- --> ----------------------------* signature *----------------------------- | _ | | ~\\_ | | \\\\ | | ... .--. . .-. -... . .-. `\\\\\ | | |\\\\\ | | \\\\\|__.--~~\ | | _--~ / | | /~ ////// _-~~~~' | | sperber@w3.brgkepler.asn-graz.ac.at ('-//////-// | | http://sperber.cjb.net //////(((-) | | /////" | | _///" | | ~ | ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Jul 19 10:25:40 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 843AF37B405; Thu, 19 Jul 2001 10:25:12 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f6JHOus01420; Thu, 19 Jul 2001 10:24:56 -0700 Date: Thu, 19 Jul 2001 10:24:56 -0700 From: Brooks Davis To: Nicolas Souchu Cc: multimedia@freebsd.org, roger@freebsd.org Subject: Re: bktr and smbus Message-ID: <20010719102456.A30157@Odin.AC.HMC.Edu> References: <20010717195452.A9080@Odin.AC.HMC.Edu> <20010719151701.M32191@ontario.alcove-fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010719151701.M32191@ontario.alcove-fr>; from nsouch@fr.alcove.com on Thu, Jul 19, 2001 at 03:17:02PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 19, 2001 at 03:17:02PM +0200, Nicolas Souchu wrote: > At the opposite, FreeBSD has an smbus framework, why don't use it and > duplicate the I2C logic everywhere? There's no reason not using FreeBSD > smbus. Well, my origional argument was that the driver was alwasy going to have it's own I2C code (at least until someone gets smbus comitted to NetBSD, OpenBSD, and BSD/OS) and the current code was kinda messy. However, roger mentioned that he's planning to use the smbus I2C code for a new driver so keeping it and more or less making it mandatory is probably the better approach. > The solution is rather at http://people.freebsd.org/~nsouch/iicbus.html >=20 > I've uploaded a patch for -current. I'd be very happy to get feedback > about it. Looks good, I can't test it because my bktr cards are both in STABLE systems, but with a couple of changes, I was able to remove NBKTR and bktr.h from the picture. Below I've provided alternate diffs for conf/files, dev/bktr/* and modules/bktr/Makefile. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 Index: conf/files =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/conf/files,v retrieving revision 1.551 diff -u -r1.551 files --- conf/files 2001/07/14 08:25:18 1.551 +++ conf/files 2001/07/19 17:15:44 @@ -274,7 +274,7 @@ dev/awi/if_awi_pccard.c optional awi pccard dev/bktr/bktr_audio.c optional bktr pci dev/bktr/bktr_card.c optional bktr pci -dev/bktr/bktr_core.c count bktr pci +dev/bktr/bktr_core.c optional bktr pci dev/bktr/bktr_i2c.c optional bktr pci smbus dev/bktr/bktr_os.c optional bktr pci dev/bktr/bktr_tuner.c optional bktr pci @@ -437,6 +437,8 @@ dev/pdq/pdq.c optional fpa pci dev/pdq/pdq_ifsubr.c optional fea eisa dev/pdq/pdq_ifsubr.c optional fpa pci +dev/pm/viapm.c optional viapm +dev/pm/amdpm.c optional amdpm dev/ppbus/ppbus_if.m optional ppbus dev/ppbus/if_plip.c optional plip dev/ppbus/immio.c optional vpo @@ -471,7 +473,7 @@ dev/smbus/smbus_if.m optional smbus dev/smbus/smb.c optional smb dev/smbus/smbconf.c optional smbus -dev/smbus/smbus.c count smbus +dev/smbus/smbus.c optional smbus dev/sn/if_sn.c optional sn dev/sn/if_sn_isa.c optional sn isa dev/sn/if_sn_pccard.c optional sn card Index: dev/bktr//bktr_core.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/bktr/bktr_core.c,v retrieving revision 1.116 diff -u -r1.116 bktr_core.c --- dev/bktr//bktr_core.c 2001/05/01 08:11:56 1.116 +++ dev/bktr//bktr_core.c 2001/07/19 17:18:55 @@ -96,12 +96,8 @@ =20 #include "opt_bktr.h" /* Include any kernel config options */ =20 -#ifdef __FreeBSD__ -#include "bktr.h" -#endif /* __FreeBSD__ */ - #if ( \ - (defined(__FreeBSD__) && (NBKTR > 0)) \ + (defined(__FreeBSD__)) \ || (defined(__bsdi__)) \ || (defined(__OpenBSD__)) \ || (defined(__NetBSD__)) \ Index: dev/bktr//bktr_i2c.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/bktr/bktr_i2c.c,v retrieving revision 1.19 diff -u -r1.19 bktr_i2c.c --- dev/bktr//bktr_i2c.c 2001/01/20 02:24:01 1.19 +++ dev/bktr//bktr_i2c.c 2001/07/19 17:17:44 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998 Nicolas Souchu + * Copyright (c) 1998, 2001 Nicolas Souchu * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -33,10 +33,9 @@ * From brooktree848.c */ =20 -#include "bktr.h" - #include #include +#include #include #include #include @@ -62,196 +61,91 @@ #include #include #include /* extensions to ioctl_meteor.h */ -#include =20 +#include #include =20 -#include -#include - #include - -#include "iicbb_if.h" -#include "smbus_if.h" - - +#include =20 #define I2C_DELAY 40 =20 #define BTI2C_DEBUG(x) if (bti2c_debug) (x) static int bti2c_debug =3D 0; =20 -struct bti2c_softc { - - bus_space_tag_t memt; /* Bus space register access */ - bus_space_handle_t memh; /* Bus space register access */ - - int iic_owned; /* 1 if we own the iicbus */ - int smb_owned; /* 1 if we own the smbbus */ - - device_t smbus; - device_t iicbus; -}; - -struct bt_data { - bus_space_tag_t memt; - bus_space_handle_t memh;=20 -}; -struct bt_data btdata[NBKTR]; - -static int bti2c_probe(device_t); -static int bti2c_attach(device_t); - -static int bti2c_iic_callback(device_t, int, caddr_t *); -static void bti2c_iic_setlines(device_t, int, int); -static int bti2c_iic_getdataline(device_t); -static int bti2c_iic_reset(device_t, u_char, u_char, u_char *); - -static int bti2c_smb_callback(device_t, int, caddr_t *); -static int bti2c_smb_writeb(device_t dev, u_char slave, char cmd, char byt= e); -static int bti2c_smb_writew(device_t dev, u_char slave, char cmd, short wo= rd); -static int bti2c_smb_readb(device_t dev, u_char slave, char cmd, char *byt= e); - -static devclass_t bti2c_devclass; - -static device_method_t bti2c_methods[] =3D { - /* device interface */ - DEVMETHOD(device_probe, bti2c_probe), - DEVMETHOD(device_attach, bti2c_attach), - - /* bus interface */ - DEVMETHOD(bus_print_child, bus_generic_print_child), - - /* iicbb interface */ - DEVMETHOD(iicbb_callback, bti2c_iic_callback), - DEVMETHOD(iicbb_setlines, bti2c_iic_setlines), - DEVMETHOD(iicbb_getdataline, bti2c_iic_getdataline), - DEVMETHOD(iicbb_reset, bti2c_iic_reset), -=09 - /* smbus interface */ - DEVMETHOD(smbus_callback, bti2c_smb_callback), - DEVMETHOD(smbus_writeb, bti2c_smb_writeb), - DEVMETHOD(smbus_writew, bti2c_smb_writew), - DEVMETHOD(smbus_readb, bti2c_smb_readb), -=09 - { 0, 0 } -}; - -#if (__FreeBSD_version < 400000) -/* FreeBSD 3.x needs DRIVER_TYPE_MISC */ -static driver_t bti2c_driver =3D { - "bti2c", - bti2c_methods, - DRIVER_TYPE_MISC, - sizeof(struct bti2c_softc), -}; -#endif - -#if (__FreeBSD_version >=3D400000) - static driver_t bti2c_driver =3D { - "bti2c", - bti2c_methods, - sizeof(struct bti2c_softc), -}; =20 -#endif - /* * Call this to pass the address of the bktr device to the * bti2c_i2c layer and initialize all the I2C bus architecture */ -int -bt848_i2c_attach(int unit, struct bktr_softc * bktr, struct bktr_i2c_softc= *i2c_sc) +int bt848_i2c_attach(device_t dev) { - device_t interface; - device_t bitbang; + struct bktr_softc *bktr_sc =3D (struct bktr_softc *)device_get_softc(dev); + struct bktr_i2c_softc *sc =3D &bktr_sc->i2c_sc; =20 - btdata[unit].memh =3D bktr->memh; - btdata[unit].memt =3D bktr->memt; + device_t *list; + int count; =20 - /* XXX add the I2C interface to the root_bus until pcibus is ready */ -#if (__FreeBSD_version < 400000) - interface =3D device_add_child(root_bus, "bti2c", unit, NULL); -#else - interface =3D device_add_child(root_bus, "bti2c", unit); -#endif + sc->smbus =3D device_add_child(dev, "smbus", -1); + sc->iicbb =3D device_add_child(dev, "iicbb", -1); =20 - /* add bit-banging generic code onto bti2c interface */ -#if (__FreeBSD_version < 400000) - bitbang =3D device_add_child(interface, "iicbb", -1, NULL); -#else - bitbang =3D device_add_child(interface, "iicbb", -1); -#endif + if (!sc->iicbb || !sc->smbus) + return ENXIO; =20 - /* probe and attach the interface, we need it NOW - * bit-banging code is also probed and attached */ - device_probe_and_attach(interface); - device_probe_and_attach(bitbang); - - /* smb and i2c interfaces are available for the bt848 chip - * connect bit-banging generic code to an iicbus */ - if ((i2c_sc->iicbus =3D iicbus_alloc_bus(bitbang))) - device_probe_and_attach(i2c_sc->iicbus); - - /* hardware i2c is actually smb over the bti2c interface */ - if ((i2c_sc->smbus =3D smbus_alloc_bus(interface))) - device_probe_and_attach(i2c_sc->smbus); + bus_generic_attach(dev); + + /* the iicbus is the first child of device iicbb */ + device_get_children(sc->iicbb, &list, &count); + if (count) { + sc->iicbus =3D list[0]; + free(list, M_TEMP); + } =20 return (0); }; =20 -/* - * Not a real probe, we know the device exists since the device has - * been added after the successfull pci probe. - */ -static int -bti2c_probe(device_t dev) +int bt848_i2c_detach(device_t dev) { - device_set_desc(dev, "bt848 Hard/Soft I2C controller"); + struct bktr_softc *bktr_sc =3D (struct bktr_softc *)device_get_softc(dev); + struct bktr_i2c_softc *sc =3D &bktr_sc->i2c_sc; + int error =3D 0; =20 - return (0); -} + if ((error =3D bus_generic_detach(dev))) + goto error; =20 -static int -bti2c_attach(device_t dev) -{ - struct bti2c_softc *sc =3D (struct bti2c_softc *)device_get_softc(dev); + if (sc->iicbb && (error =3D device_delete_child(dev, sc->iicbb))) + goto error; =20 - /* XXX should use ivars with pcibus or pcibus methods to access - * onboard memory */ - sc->memh =3D btdata[device_get_unit(dev)].memh; - sc->memt =3D btdata[device_get_unit(dev)].memt; + if (sc->smbus && (error =3D device_delete_child(dev, sc->smbus))) + goto error; =20 - return (0); +error: + return (error); } =20 -static int -bti2c_smb_callback(device_t dev, int index, caddr_t *data) +int bti2c_smb_callback(device_t dev, int index, caddr_t *data) { - struct bti2c_softc *sc =3D (struct bti2c_softc *)device_get_softc(dev); + struct bktr_softc *bktr_sc =3D (struct bktr_softc *)device_get_softc(dev); + struct bktr_i2c_softc *sc =3D &bktr_sc->i2c_sc; int error =3D 0; - int how; =20 /* test each time if we already have/haven't the iicbus * to avoid deadlocks */ switch (index) { case SMB_REQUEST_BUS: - if (!sc->iic_owned) { - /* request the iicbus */ - how =3D *(int *)data; - error =3D iicbus_request_bus(sc->iicbus, dev, how); - if (!error) - sc->iic_owned =3D 1; - } + /* XXX test & set */ + if (!sc->bus_owned) { + sc->bus_owned =3D 1; + } else + error =3D EWOULDBLOCK; break; =20 case SMB_RELEASE_BUS: - if (sc->iic_owned) { - /* release the iicbus */ - error =3D iicbus_release_bus(sc->iicbus, dev); - if (!error) - sc->iic_owned =3D 0; - } + /* XXX test & set */ + if (sc->bus_owned) { + sc->bus_owned =3D 0; + } else + error =3D EINVAL; break; =20 default: @@ -261,34 +155,30 @@ return (error); } =20 -static int -bti2c_iic_callback(device_t dev, int index, caddr_t *data) +int bti2c_iic_callback(device_t dev, int index, caddr_t *data) { - struct bti2c_softc *sc =3D (struct bti2c_softc *)device_get_softc(dev); + struct bktr_softc *bktr_sc =3D (struct bktr_softc *)device_get_softc(dev); + struct bktr_i2c_softc *sc =3D &bktr_sc->i2c_sc; int error =3D 0; - int how; =20 /* test each time if we already have/haven't the smbus * to avoid deadlocks */ switch (index) { case IIC_REQUEST_BUS: - if (!sc->smb_owned) { - /* request the smbus */ - how =3D *(int *)data; - error =3D smbus_request_bus(sc->smbus, dev, how); - if (!error) - sc->smb_owned =3D 1; - } + /* XXX test & set */ + if (!sc->bus_owned) { + sc->bus_owned =3D 1; + } else + error =3D EWOULDBLOCK; break; =20 case IIC_RELEASE_BUS: - if (sc->smb_owned) { - /* release the smbus */ - error =3D smbus_release_bus(sc->smbus, dev); - if (!error) - sc->smb_owned =3D 0; - } + /* XXX test & set */ + if (sc->bus_owned) { + sc->bus_owned =3D 0; + } else + error =3D EINVAL; break; =20 default: @@ -298,8 +188,7 @@ return (error); } =20 -static int -bti2c_iic_reset(device_t dev, u_char speed, u_char addr, u_char * oldaddr) +int bti2c_iic_reset(device_t dev, u_char speed, u_char addr, u_char * olda= ddr) { if (oldaddr) *oldaddr =3D 0; /* XXX */ @@ -307,48 +196,77 @@ return (IIC_ENOADDR); } =20 -static void -bti2c_iic_setlines(device_t dev, int ctrl, int data) +void bti2c_iic_setsda(device_t dev, int val) { - struct bti2c_softc *sc =3D (struct bti2c_softc *)device_get_softc(dev); + struct bktr_softc *sc =3D (struct bktr_softc *)device_get_softc(dev); + int clock; =20 - OUTL(sc, BKTR_I2C_DATA_CTL, (ctrl << 1) | data);; + clock =3D INL(sc, BKTR_I2C_DATA_CTL) & 0x2; + + if (val) + OUTL(sc, BKTR_I2C_DATA_CTL, clock | 1); + else + OUTL(sc, BKTR_I2C_DATA_CTL, clock); + DELAY(I2C_DELAY); =20 return; } =20 -static int -bti2c_iic_getdataline(device_t dev) +void bti2c_iic_setscl(device_t dev, int val) +{ + struct bktr_softc *sc =3D (struct bktr_softc *)device_get_softc(dev); + int data; + + data =3D INL(sc, BKTR_I2C_DATA_CTL) & 0x1; + + if (val) + OUTL(sc, BKTR_I2C_DATA_CTL, 0x2 | data); + else + OUTL(sc, BKTR_I2C_DATA_CTL, data); + + DELAY(I2C_DELAY); + + return; +} + +int +bti2c_iic_getsda(device_t dev) { - struct bti2c_softc *sc =3D (struct bti2c_softc *)device_get_softc(dev); + struct bktr_softc *sc =3D (struct bktr_softc *)device_get_softc(dev); =20 - return ( INL(sc,BKTR_I2C_DATA_CTL) & 0x1); + return (INL(sc,BKTR_I2C_DATA_CTL) & 0x1); } =20 +int +bti2c_iic_getscl(device_t dev) +{ + return (0); +} + static int -bti2c_write(struct bti2c_softc* bti2c_sc, u_long data) +bti2c_write(struct bktr_softc *sc, u_long data) { u_long x; =20 /* clear status bits */ - OUTL(bti2c_sc, BKTR_INT_STAT, (BT848_INT_RACK | BT848_INT_I2CDONE)); + OUTL(sc, BKTR_INT_STAT, (BT848_INT_RACK | BT848_INT_I2CDONE)); =20 BTI2C_DEBUG(printf("w%lx", data)); =20 /* write the address and data */ - OUTL(bti2c_sc, BKTR_I2C_DATA_CTL, data); + OUTL(sc, BKTR_I2C_DATA_CTL, data); =20 /* wait for completion */ for ( x =3D 0x7fffffff; x; --x ) { /* safety valve */ - if ( INL(bti2c_sc, BKTR_INT_STAT) & BT848_INT_I2CDONE ) + if ( INL(sc, BKTR_INT_STAT) & BT848_INT_I2CDONE ) break; } =20 /* check for ACK */ - if ( !x || !( INL(bti2c_sc, BKTR_INT_STAT) & BT848_INT_RACK) ) { + if ( !x || !( INL(sc, BKTR_INT_STAT) & BT848_INT_RACK) ) { BTI2C_DEBUG(printf("%c%c", (!x)?'+':'-', - (!( INL(bti2c_sc, BKTR_INT_STAT) & BT848_INT_RACK))?'+':'-')); + (!( INL(sc, BKTR_INT_STAT) & BT848_INT_RACK))?'+':'-')); return (SMB_ENOACK); } BTI2C_DEBUG(printf("+")); @@ -357,10 +275,10 @@ return( 0 ); } =20 -static int +int bti2c_smb_writeb(device_t dev, u_char slave, char cmd, char byte) { - struct bti2c_softc *sc =3D (struct bti2c_softc *)device_get_softc(dev); + struct bktr_softc *sc =3D (struct bktr_softc *)device_get_softc(dev); u_long data; =20 data =3D ((slave & 0xff) << 24) | ((byte & 0xff) << 16) | (u_char)cmd; @@ -372,10 +290,10 @@ * byte1 becomes low byte of word * byte2 becomes high byte of word */ -static int +int bti2c_smb_writew(device_t dev, u_char slave, char cmd, short word) { - struct bti2c_softc *sc =3D (struct bti2c_softc *)device_get_softc(dev); + struct bktr_softc *sc =3D (struct bktr_softc *)device_get_softc(dev); u_long data; char low, high; =20 @@ -391,10 +309,10 @@ /* * The Bt878 and Bt879 differed on the treatment of i2c commands */ -static int +int bti2c_smb_readb(device_t dev, u_char slave, char cmd, char *byte) { - struct bti2c_softc *sc =3D (struct bti2c_softc *)device_get_softc(dev); + struct bktr_softc *sc =3D (struct bktr_softc *)device_get_softc(dev); u_long x; =20 /* clear status bits */ @@ -422,5 +340,3 @@ =20 return (0); } - -DRIVER_MODULE(bti2c, root, bti2c_driver, bti2c_devclass, 0, 0); Index: dev/bktr//bktr_i2c.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/bktr/bktr_i2c.h,v retrieving revision 1.3 diff -u -r1.3 bktr_i2c.h --- dev/bktr//bktr_i2c.h 2000/04/04 16:54:12 1.3 +++ dev/bktr//bktr_i2c.h 2001/07/19 17:15:09 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998 Nicolas Souchu + * Copyright (c) 1998, 2001 Nicolas Souchu * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,6 +29,19 @@ #ifndef _BT848_I2C_H #define _BT848_I2C_H =20 -extern int bt848_i2c_attach(int, struct bktr_softc *bktr, struct bktr_i2c_= softc *); +extern int bt848_i2c_attach(device_t); +extern int bt848_i2c_detach(device_t); + +extern int bti2c_iic_callback(device_t, int, caddr_t *); +extern void bti2c_iic_setsda(device_t, int); +extern void bti2c_iic_setscl(device_t, int); +extern int bti2c_iic_getsda(device_t); +extern int bti2c_iic_getscl(device_t); +extern int bti2c_iic_reset(device_t, u_char, u_char, u_char *); + +extern int bti2c_smb_callback(device_t, int, caddr_t *); +extern int bti2c_smb_writeb(device_t dev, u_char slave, char cmd, char byt= e); +extern int bti2c_smb_writew(device_t dev, u_char slave, char cmd, short wo= rd); +extern int bti2c_smb_readb(device_t dev, u_char slave, char cmd, char *byt= e); =20 #endif Index: dev/bktr//bktr_os.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/bktr/bktr_os.c,v retrieving revision 1.22 diff -u -r1.22 bktr_os.c --- dev/bktr//bktr_os.c 2001/03/26 12:40:14 1.22 +++ dev/bktr//bktr_os.c 2001/07/19 17:19:19 @@ -49,7 +49,9 @@ =20 =20 #ifdef __FreeBSD__ +#if ((__FreeBSD__ =3D=3D 2) || (__FreeBSD__ =3D=3D 3)) #include "bktr.h" +#endif #endif /* __FreeBSD__ */ =20 #include "opt_bktr.h" /* include any kernel config options */ @@ -83,7 +85,7 @@ #include #include =20 -#if (__FreeBSD_version >=3D400000) || (NSMBUS > 0) +#if (__FreeBSD_version >=3D400000) #include /* used by smbus and newbus */ #endif =20 @@ -190,13 +192,19 @@ #include #include #include + #if defined(BKTR_USE_FREEBSD_SMBUS) #include + +#include "iicbb_if.h" +#include "smbus_if.h" + +#include "dev/iicbus/iiconf.h" +#include "dev/smbus/smbconf.h" #endif #endif =20 =20 - /****************************/ /* *** FreeBSD 4.x code *** */ /****************************/ @@ -215,6 +223,22 @@ DEVMETHOD(device_detach, bktr_detach), DEVMETHOD(device_shutdown, bktr_shutdown), =20 +#if defined(BKTR_USE_FREEBSD_SMBUS) + /* iicbb interface */ + DEVMETHOD(iicbb_callback, bti2c_iic_callback), + DEVMETHOD(iicbb_setsda, bti2c_iic_setsda), + DEVMETHOD(iicbb_setscl, bti2c_iic_setscl), + DEVMETHOD(iicbb_getsda, bti2c_iic_getsda), + DEVMETHOD(iicbb_getscl, bti2c_iic_getscl), + DEVMETHOD(iicbb_reset, bti2c_iic_reset), +=09 + /* smbus interface */ + DEVMETHOD(smbus_callback, bti2c_smb_callback), + DEVMETHOD(smbus_writeb, bti2c_smb_writeb), + DEVMETHOD(smbus_writew, bti2c_smb_writew), + DEVMETHOD(smbus_readb, bti2c_smb_readb), +#endif + { 0, 0 } }; =20 @@ -254,6 +278,10 @@ DRIVER_MODULE(bktr, pci, bktr_driver, bktr_devclass, 0, 0); #if (__FreeBSD_version > 410000) MODULE_DEPEND(bktr, bktr_mem, 1,1,1); +#if defined(BKTR_USE_FREEBSD_SMBUS) +MODULE_DEPEND(bktr, iicbb, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER); +MODULE_DEPEND(bktr, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); +#endif MODULE_VERSION(bktr, 1); #endif =20 @@ -392,14 +420,11 @@ #endif pci_write_config(dev, 0x40, fun, 2); =20 - - /* XXX call bt848_i2c dependent attach() routine */ #if defined(BKTR_USE_FREEBSD_SMBUS) - if (bt848_i2c_attach(unit, bktr, &bktr->i2c_sc)) + if (bt848_i2c_attach(dev)) printf("bktr%d: i2c_attach: can't attach\n", unit); #endif =20 - /* * PCI latency timer. 32 is a good value for 4 bus mastering slots, if * you have more than four, then 16 would probably be a better value. @@ -477,6 +502,11 @@ OUTL(bktr, BKTR_INT_MASK, ALL_INTS_DISABLED); OUTW(bktr, BKTR_GPIO_DMA_CTL, FIFO_RISC_DISABLED); =20 +#if defined(BKTR_USE_FREEBSD_SMBUS) + if (bt848_i2c_detach(dev)) + printf("bktr%d: i2c_attach: can't attach\n", unit); +#endif + /* Note: We do not free memory for RISC programs, grab buffer, vbi buffer= s */ /* The memory is retained by the bktr_mem module so we can unload and */ /* then reload the main bktr driver module */ @@ -981,13 +1011,10 @@ #endif pci_conf_write(tag, 0x40, fun); =20 - - /* XXX call bt848_i2c dependent attach() routine */ #if defined(BKTR_USE_FREEBSD_SMBUS) - if (bt848_i2c_attach(unit, bktr, &bktr->i2c_sc)) + if (bt848_i2c_attach(dev)) printf("bktr%d: i2c_attach: can't attach\n", unit); #endif - =20 /* * PCI latency timer. 32 is a good value for 4 bus mastering slots, if Index: dev/bktr//bktr_reg.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/bktr/bktr_reg.h,v retrieving revision 1.42 diff -u -r1.42 bktr_reg.h --- dev/bktr//bktr_reg.h 2000/10/31 13:09:56 1.42 +++ dev/bktr//bktr_reg.h 2001/07/19 17:15:09 @@ -34,17 +34,6 @@ * */ =20 -#ifdef __FreeBSD__ -# if (__FreeBSD_version >=3D 310000) -# include "smbus.h" -# else -# define NSMBUS 0 /* FreeBSD before 3.1 does not have SMBUS */ -# endif -# if (NSMBUS > 0) -# define BKTR_USE_FREEBSD_SMBUS -# endif -#endif - #ifdef __NetBSD__ #include /* struct device */ #include @@ -457,6 +446,9 @@ =20 #if defined(BKTR_USE_FREEBSD_SMBUS) struct bktr_i2c_softc { + int bus_owned; + + device_t iicbb; device_t iicbus; device_t smbus; }; @@ -556,9 +548,9 @@ bus_space_handle_t memh; /* Bus space register access functions */ bus_size_t obmemsz;/* Size of card (bytes) */ #endif - #if (NSMBUS > 0) +#if defined(BKTR_USE_FREEBSD_SMBUS) struct bktr_i2c_softc i2c_sc; /* bt848_i2c device */ - #endif +#endif char bktr_xname[7]; /* device name and unit number */ #endif =20 Index: modules/bktr/bktr/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/modules/bktr/bktr/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- modules/bktr/bktr/Makefile 2001/01/06 13:59:41 1.2 +++ modules/bktr/bktr/Makefile 2001/07/19 17:22:18 @@ -5,18 +5,9 @@ .PATH: ${.CURDIR}/../../../dev/bktr =20 KMOD=3D bktr=20 -SRCS=3D bktr_core.c bktr_os.c bktr_audio.c bktr_tuner.c bktr_card.c \ - bktr.h opt_devfs.h opt_bktr.h smbus.h bus_if.h device_if.h \ - pci_if.h vnode_if.h -CLEANFILES=3D bktr.h smbus.h - -bktr.h: - echo "#define NBKTR 1" > bktr.h - echo "#define BKTR_FREEBSD_MODULE 1" >> bktr.h - -# Does not use SMBUS/IICBUS. Uses the old i2c code self contained in -# the bt848 driver. -smbus.h: - echo "#define NSMBUS 0" > smbus.h +SRCS=3D bktr_i2c.c bktr_core.c bktr_os.c bktr_audio.c bktr_tuner.c bktr_ca= rd.c \ + opt_devfs.h opt_bktr.h iicbb_if.h iicbus_if.h smbus_if.h \ + bus_if.h device_if.h pci_if.h vnode_if.h +CFLAGS+=3D -DBKTR_USE_FREEBSD_SMBUS -DBKTR_FREEBSD_MODULE =20 .include --FCuugMFkClbJLl1L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7VxfnXY6L6fI4GtQRAvlyAJ0UCkeQfIfeaCl7L4uN1jAxFejXSACaAnol ipgSqkNv6OhUuz9JqHJeF4M= =pc07 -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Jul 19 17:25: 4 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id C788737B401 for ; Thu, 19 Jul 2001 17:25:02 -0700 (PDT) (envelope-from fmela0@sm.socccd.cc.ca.us) Received: from sm.socccd.cc.ca.us (pool0274.cvx14-bradley.dialup.earthlink.net [209.179.39.19]) by albatross.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id RAA24485 for ; Thu, 19 Jul 2001 17:25:01 -0700 (PDT) Message-ID: <3B577AFA.39D5B7F@sm.socccd.cc.ca.us> Date: Thu, 19 Jul 2001 17:27:38 -0700 From: Farooq Mela X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: multimedia@FreeBSD.ORG Subject: Matrox G400 and XFree86-4/DRI Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Anybody have any luck getting a G400 working with XFree86-4 and DRI? I've got a dual head I'd like to get working with Xinerama as well. Any help appreciated. -- farooq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Thu Jul 19 23:42:34 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 95E1F37B405 for ; Thu, 19 Jul 2001 23:42:32 -0700 (PDT) (envelope-from aa8vb@nc.rr.com) Received: from stealth.cary.dummynet ([66.26.228.229]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Thu, 19 Jul 2001 23:41:23 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f6K3eeD04224; Thu, 19 Jul 2001 23:40:40 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Thu, 19 Jul 2001 23:40:40 -0400 From: Randall Hopper To: Sperber Cc: multimedia@FreeBSD.ORG Subject: Re: TV, fxtv, too slow Message-ID: <20010719234040.A4124@nc.rr.com> References: <20010719153849.I339-100000@www.omega-project.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010719153849.I339-100000@www.omega-project.net>; from sperber@w3.brgkepler.asn-graz.ac.at on Thu, Jul 19, 2001 at 03:47:06PM +0000 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sperber: |I just upgraded my computer and since this upgrade my tv doesn't work |properly any more. - It's too slow. |I had a K6-2 500 and a PCI (Riva TNT2) graphic card, now i have a |Thunderbird 1.2 Ghz and a Geforce 2 MX (AGP). |When I maximise the fxtv window it is suddenly interlaced and shadows of |former pictures stay... - I tried several things, but nothing worked... |It's also intressting that my dga test is slower than the one of my cousin |who has a Celeron 300, Matrox Milenium G450. Hmm. Let's see your "fxtv -debug startup" output. Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 1:14: 8 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from email01.aon.at (WARSL401PIP7.highway.telekom.at [195.3.96.115]) by hub.freebsd.org (Postfix) with SMTP id 6FF5D37B403 for ; Fri, 20 Jul 2001 01:14:03 -0700 (PDT) (envelope-from sperber@w3.brgkepler.asn-graz.ac.at) Received: (qmail 429280 invoked from network); 20 Jul 2001 08:14:01 -0000 Received: from l0823p30.dipool.highway.telekom.at ([62.46.166.222]) (envelope-sender ) by qmail1.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 20 Jul 2001 08:14:01 -0000 Date: Fri, 20 Jul 2001 10:14:27 +0000 (GMT) From: Sperber X-X-Sender: To: Randall Hopper Cc: Subject: Re: TV, fxtv, too slow In-Reply-To: <20010719234040.A4124@nc.rr.com> Message-ID: <20010720101219.H352-100000@www.omega-project.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 19 Jul 2001, Randall Hopper wrote: > Sperber: > |I just upgraded my computer and since this upgrade my tv doesn't work > |properly any more. - It's too slow. > |I had a K6-2 500 and a PCI (Riva TNT2) graphic card, now i have a > |Thunderbird 1.2 Ghz and a Geforce 2 MX (AGP). > |When I maximise the fxtv window it is suddenly interlaced and shadows of > |former pictures stay... - I tried several things, but nothing worked... > |It's also intressting that my dga test is slower than the one of my cousin > |who has a Celeron 300, Matrox Milenium G450. > > Hmm. Let's see your "fxtv -debug startup" output. Here it comes... ;) <-- debug of fxtv --> Fxtv v1.03 DETECTED CAPTURE CARD(S) [DRIVER PROBES]: bktr0: mem 0xdd001000-0xdd001fff irq 11 at device 14.0 on pci0 iicbb0: on bti2c0 bktr0: Hauppauge Model 61314 B1M bktr0: Detected a MSP3410D-B4 at 0x80 bktr0: Hauppauge WinCast/TV, Philips PAL I tuner, msp3400c stereo. pci0: (vendor=0x109e, dev=0x0878) at 14.1 irq 11 SYSCTL MIB VALUES: kern.version: FreeBSD 4.3-STABLE #0: Thu Jul 19 15:04:29 GMT 2001 root@www.omega-project.net:/usr/src/sys/compile/OMEGA hw.bt848.card: -1 hw.bt848.tuner: -1 hw.bt848.reverse_mute: -1 hw.bt848.format: -1 hw.bt848.slow_msp_audio: -1 TUNER SIGNATURE (0x01 - 0xff): 00 00 00 00 00 00 00 00 01 00 01 00 02 00 00 00 TUNER I2C DEVICES FOUND AT: 0x80, 0xa0, 0xc2 CAPTURE CARD EEPROM CONTENTS: Read 256 EEPROM bytes (0x00 - 0xff) 84 12 00 00 05 50 0e 7f 04 08 23 82 ef 40 1b 89 00 00 00 00 00 84 0a 00 01 01 20 77 00 40 98 9e 30 00 74 02 01 06 02 79 3f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 13 eb 00 70 84 12 00 00 05 50 0e 7f 04 08 23 82 ef 40 1b 89 00 00 00 00 00 84 0a 00 01 01 20 77 00 40 98 9e 30 00 74 02 01 06 02 79 3f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 13 eb 00 70 SUPPORTED FREQUENCY SETS: 1 nabcst 2 cableirc 3 cablehrc 4 weurope 5 jpnbcst 6 jpncable 7 xussr 8 australia 9 france Supported RGB Capture Pixel Formats: bpp Bpp RGB Masks Swap --- --- ---------------------------- ---- 15 2 00007c00, 000003e0, 0000001f NB 16 2 0000f800, 000007e0, 0000001f NB 24 3 00ff0000, 0000ff00, 000000ff B 24 4 00ff0000, 0000ff00, 000000ff NBWb Supported YUV Capture Pixel Formats: YUVSize HSamp VSamp Pack CompOrder T->B L->R YTrans ------- ----- ----- ------ --------- ---- ---- ------ 8,8,8 1,2,2 1,1,1 PLANAR YUV Y Y N 8,8,8 1,2,2 1,1,1 PACKED YUYV Y Y N 8,8,8 1,2,2 1,2,2 PLANAR YUV Y Y N XSERVER: 'The XFree86 Project, Inc' v40100000, Protocol Verson 11.0 Screen Res = 1600x1200, DefDepth = 24; NumScreens = 1 Bitmap Unit/BitOrder/Pad = 32/LSBFirst/32, Image ByteOrder = LSBFirst XF86DGAQueryVersion() succeeded - vers = 2.00 BaseAddr = 0xd0000000, Pitch = 1600, BankSize/RamSize = 33554432/33554432 Rating Available Visuals: Rating Class bpp Bpp R,G,B Masks Swap DirectVid ------ ----------- --- --- ---------------------------- ---- --------- 7 TrueColor 24 4,4 00ff0000, 0000ff00, 000000ff -- Yes 4 TrueColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No 0 DirectColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No 0 DirectColor 24 4,4 00ff0000, 0000ff00, 000000ff -- No Chosen Visual is 24-bpp TrueColor XF86VidModeQueryVersion() succeeded - version = 2.01 <-- --> Sperber ----------------------------* signature *----------------------------- | _ | | ~\\_ | | \\\\ | | ... .--. . .-. -... . .-. `\\\\\ | | |\\\\\ | | \\\\\|__.--~~\ | | _--~ / | | /~ ////// _-~~~~' | | sperber@w3.brgkepler.asn-graz.ac.at ('-//////-// | | http://sperber.cjb.net //////(((-) | | /////" | | _///" | | ~ | ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 1:34:48 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtp05.mail.onemain.com (SMTP-OUT003.ONEMAIN.COM [63.208.208.73]) by hub.freebsd.org (Postfix) with SMTP id 4807B37B405 for ; Fri, 20 Jul 2001 01:34:45 -0700 (PDT) (envelope-from anholt@teleport.com) Received: (qmail 1893 invoked from network); 20 Jul 2001 08:34:02 -0000 Received: from apx1-02-122.pdx.du.teleport.com (HELO positron.anholt.dyn.dhs.org) ([216.26.61.122]) (envelope-sender ) by smtp05.mail.onemain.com (qmail-ldap-1.03) with SMTP for ; 20 Jul 2001 08:34:02 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Eric Anholt Reply-To: anholt@teleport.com To: Farooq Mela Subject: Re: Matrox G400 and XFree86-4/DRI Date: Fri, 20 Jul 2001 01:35:04 -0700 X-Mailer: KMail [version 1.2] References: <3B577AFA.39D5B7F@sm.socccd.cc.ca.us> In-Reply-To: <3B577AFA.39D5B7F@sm.socccd.cc.ca.us> Cc: multimedia@FreeBSD.ORG MIME-Version: 1.0 Message-Id: <01072001350401.00581@positron.anholt.dyn.dhs.org> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You can visit my page http://gladstone.uoregon.edu/~eanholt/dri/ for information on the DRI for FreeBSD. At this point, the G400 is mostly working, but there have been some hangs reported. Unfortunately, I can't reproduce them on my hardware. The DRI is incompatible with xinerama, and will not be compatible in the forseeable future. I can't remember if there was any hope for DRI on the dual-head G400s, which don't use xinerama. On Thursday 19 July 2001 17:27, you wrote: > Hi, > > Anybody have any luck getting a G400 working with XFree86-4 and DRI? > I've got a dual head I'd like to get working with Xinerama as well. > Any help appreciated. -- Eric Anholt anholt@teleport.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 6: 8:52 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtpproxy1.mitre.org (mb-20-100.mitre.org [129.83.20.100]) by hub.freebsd.org (Postfix) with ESMTP id 0894237B403 for ; Fri, 20 Jul 2001 06:08:46 -0700 (PDT) (envelope-from jandrese@mitre.org) Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.11.3/8.11.3) with ESMTP id f6KD8dD15636; Fri, 20 Jul 2001 09:08:39 -0400 (EDT) Received: from MAILHUB1 (mailhub1.mitre.org [129.83.20.31]) by smtpsrv1.mitre.org (8.11.3/8.11.3) with ESMTP id f6KD8cX18781; Fri, 20 Jul 2001 09:08:38 -0400 (EDT) Received: from dhcp-105-164.mitre.org (128.29.105.164) by mailhub1.mitre.org with SMTP id 7104163; Fri, 20 Jul 2001 09:08:49 -0400 Message-ID: <3B582D57.87F11357@mitre.org> Date: Fri, 20 Jul 2001 09:08:39 -0400 From: Jason Andresen Organization: The MITRE Corporation X-Mailer: Mozilla 4.75 [en]C-20000818M (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Sperber Cc: Randall Hopper , multimedia@freebsd.org Subject: Weird Fxtv issue, flaky card? References: <20010720101219.H352-100000@www.omega-project.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Well, with the flood of Fxtv issues on this list recently, I guess I might as well ask anyone if they've seen the same thing I have. When I start Fxtv, it is fine on lower channels (I use cable), but on the upper channels I get vertical "noise bars" running through the screen. They're fairly evenly spaced and take up about 1/3 of the screen. I also get quite a bit of noise in the sound. The strange this is, if I unmap the window (iconify it for instance) the noise in the audio channel goes away. Also, there is no noise on a regular TV plugged into the cable. If I run an svideo cable off of the cablebox to the tuner card I get a clear picture on all of the channels. Is this flaky hardware or something I can fix in software? I'm running XFree 4.1.0_4 on a Matrox Mystique G200 with an AverMedia TV98 Stereo. Also I should note that channels 4 and 5 were unwatchable for awhile on this card, and then suddenly magically cleared up one day. They were pretty much just filled with noise, although you could see a bit of the picture on 5 (4 was completely destroyed). The channels numbers I've been using are for US cable channel frequencies. Output from Fxtv -debug: Fxtv v1.03 DETECTED CAPTURE CARD(S) [DRIVER PROBES]: bktr0: mem 0xda001000-0xda001fff irq 5 at device 13.0 on pci0 iicbb0: on bti2c0 bktr0: AVer Media TV/FM, Philips FR1236 NTSC FM tuner. pci0: (vendor=0x109e, dev=0x0878) at 13.1 irq 5 SYSCTL MIB VALUES: kern.version: FreeBSD 4.3-STABLE #3: Thu Jun 14 19:18:39 EDT 2001 root@escaflowne.el.hazard:/usr/src/sys/compile/ESCAFLOWNE hw.bt848.card: -1 hw.bt848.tuner: -1 hw.bt848.reverse_mute: -1 hw.bt848.format: -1 hw.bt848.slow_msp_audio: -1 TUNER SIGNATURE (0x01 - 0xff): 00 00 00 00 00 00 00 00 00 00 01 00 02 00 00 00 TUNER I2C DEVICES FOUND AT: 0xa0, 0xc2 CAPTURE CARD EEPROM CONTENTS: Read 256 EEPROM bytes (0x00 - 0xff) ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 48 02 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 01 14 61 SUPPORTED FREQUENCY SETS: 1 nabcst 2 cableirc 3 cablehrc 4 weurope 5 jpnbcst 6 jpncable 7 xussr 8 australia 9 france Supported RGB Capture Pixel Formats: bpp Bpp RGB Masks Swap --- --- ---------------------------- ---- 15 2 00007c00, 000003e0, 0000001f NB 16 2 0000f800, 000007e0, 0000001f NB 24 3 00ff0000, 0000ff00, 000000ff B 24 4 00ff0000, 0000ff00, 000000ff NBWb Supported YUV Capture Pixel Formats: YUVSize HSamp VSamp Pack CompOrder T->B L->R YTrans ------- ----- ----- ------ --------- ---- ---- ------ 8,8,8 1,2,2 1,1,1 PLANAR YUV Y Y N 8,8,8 1,2,2 1,1,1 PACKED YUYV Y Y N 8,8,8 1,2,2 1,2,2 PLANAR YUV Y Y N XSERVER: 'The XFree86 Project, Inc' v40100000, Protocol Verson 11.0 Screen Res = 1280x1024, DefDepth = 16; NumScreens = 1 Bitmap Unit/BitOrder/Pad = 32/LSBFirst/32, Image ByteOrder = LSBFirst XF86DGAQueryVersion() succeeded - vers = 2.00 BaseAddr = 0xd8000000, Pitch = 1280, BankSize/RamSize = 16777216/16777216 Rating Available Visuals: Rating Class bpp Bpp R,G,B Masks Swap DirectVid ------ ----------- --- --- ---------------------------- ---- --------- 5 TrueColor 16 2,2 0000f800, 000007e0, 0000001f -- Yes 4 TrueColor 16 2,2 0000f800, 000007e0, 0000001f -- No 0 DirectColor 16 2,2 0000f800, 000007e0, 0000001f -- No 0 DirectColor 16 2,2 0000f800, 000007e0, 0000001f -- No Chosen Visual is 16-bpp TrueColor XF86VidModeQueryVersion() succeeded - version = 2.01 -- \ |_ _|__ __|_ \ __| Jason Andresen jandrese@mitre.org |\/ | | | / _| Network and Distributed Systems Engineer _| _|___| _| _|_\___| Office: 703-883-7755 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 7:29:14 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from email04.aon.at (WARSL401PIP7.highway.telekom.at [195.3.96.115]) by hub.freebsd.org (Postfix) with SMTP id E34E637B401 for ; Fri, 20 Jul 2001 07:29:11 -0700 (PDT) (envelope-from sperber@w3.brgkepler.asn-graz.ac.at) Received: (qmail 67340 invoked from network); 20 Jul 2001 14:29:01 -0000 Received: from l0821p15.dipool.highway.telekom.at ([62.46.166.143]) (envelope-sender ) by qmail4.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 20 Jul 2001 14:29:01 -0000 Date: Fri, 20 Jul 2001 16:29:23 +0000 (GMT) From: Sperber X-X-Sender: To: Subject: Creative Soundblaster Live! Player 5.1 Message-ID: <20010720162714.T470-100000@www.omega-project.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- Hi! Today i bought the sb live... installed it and as i listened to some music i noticed that the quality was rather low... Has someone experiences with that soundcard? Sperber - ----------------------------* signature *----------------------------- | _ | | ~\\_ | | \\\\ | | ... .--. . .-. -... . .-. `\\\\\ | | |\\\\\ | | \\\\\|__.--~~\ | | _--~ / | | /~ ////// _-~~~~' | | sperber@w3.brgkepler.asn-graz.ac.at ('-//////-// | | http://sperber.cjb.net //////(((-) | | /////" | | _///" | | ~ | - ---------------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Made with pgp4pine 1.76 iQEVAwUBO1hcZ/ZcoSmtQcKZAQEilAgAjJxWbfGanWE0nRZLfX3qX1TFBab9WiJg aR4TdgIzGnT0nifr45BUbiHmNEpRGDXsm268j0q5mfRG72z84eSAH8IYT6YBIoDW KHtms7GksjJX7koj0C5gQvma/7bAjtwutVdcNfFXOQUvXHJj9bsChfaf5lhIuwfm 4aguXaP3YQo13DzLPJ8/BmigrC/oc/QNrG+UGypmqG66OOqKvtPgviloqcJ9vZMm qiNwTA9QwopWstJY/QNQdwT+rw9XeoF90t5H1Nlr7oH+0dfO7fo6Kxik8tFdEFHt yMTtC5qwxL2OCECoGZhP/PGHVc+EUjiD6AP9Eo+IipjWJ3idfGj8cA== =Mtkc -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 7:37:34 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtpproxy1.mitre.org (mb-20-100.mitre.org [129.83.20.100]) by hub.freebsd.org (Postfix) with ESMTP id D583D37B401 for ; Fri, 20 Jul 2001 07:37:30 -0700 (PDT) (envelope-from jandrese@mitre.org) Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.11.3/8.11.3) with ESMTP id f6KEbPD01589; Fri, 20 Jul 2001 10:37:25 -0400 (EDT) Received: from MAILHUB1 (mailhub1.mitre.org [129.83.20.31]) by smtpsrv1.mitre.org (8.11.3/8.11.3) with ESMTP id f6KEbOX04836; Fri, 20 Jul 2001 10:37:24 -0400 (EDT) Received: from dhcp-105-164.mitre.org (128.29.105.164) by mailhub1.mitre.org with SMTP id 7106099; Fri, 20 Jul 2001 10:37:34 -0400 Message-ID: <3B584225.D1098BB9@mitre.org> Date: Fri, 20 Jul 2001 10:37:25 -0400 From: Jason Andresen Organization: The MITRE Corporation X-Mailer: Mozilla 4.75 [en]C-20000818M (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Sperber Cc: multimedia@freebsd.org Subject: Re: Creative Soundblaster Live! Player 5.1 References: <20010720162714.T470-100000@www.omega-project.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sperber wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hi! > > Today i bought the sb live... installed it and as i listened to some music > i noticed that the quality was rather low... > Has someone experiences with that soundcard? I have an SB Live and from what I can tell it sounds no worse than my old SB16. Sometimes its a little quieter than I'd like (I usually have to have the volume set at >75, frequently closer to 95 across the board to get anything audible out of the card in FreeBSD, although the windows driver needs to be turned down to about 30 or so to be tolerable). Also, it doesn't support multichannel audio in FreeBSD (IE no /dev/dsp0.1 /dev/dsp0.2 etc...). In what way is the "quality low" anyway? Is it scratchy? Noisy? Tinny? Does it sound like 8bit 4khz audio? What were you using to test? -- \ |_ _|__ __|_ \ __| Jason Andresen jandrese@mitre.org |\/ | | | / _| Network and Distributed Systems Engineer _| _|___| _| _|_\___| Office: 703-883-7755 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 7:45:10 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from email04.aon.at (WARSL401PIP7.highway.telekom.at [195.3.96.115]) by hub.freebsd.org (Postfix) with SMTP id EA3CA37B401 for ; Fri, 20 Jul 2001 07:45:04 -0700 (PDT) (envelope-from sperber@w3.brgkepler.asn-graz.ac.at) Received: (qmail 404036 invoked from network); 20 Jul 2001 14:45:02 -0000 Received: from l0821p15.dipool.highway.telekom.at ([62.46.166.143]) (envelope-sender ) by qmail4.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 20 Jul 2001 14:45:02 -0000 Date: Fri, 20 Jul 2001 16:45:25 +0000 (GMT) From: Sperber X-X-Sender: To: Jason Andresen Cc: Subject: Re: Creative Soundblaster Live! Player 5.1 In-Reply-To: <3B584225.D1098BB9@mitre.org> Message-ID: <20010720164330.H470-100000@www.omega-project.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- On Fri, 20 Jul 2001, Jason Andresen wrote: > Sperber wrote: > > > > Hi! > > > > Today i bought the sb live... installed it and as i listened to some music > > i noticed that the quality was rather low... > > Has someone experiences with that soundcard? > > I have an SB Live and from what I can tell it sounds no worse than > my old SB16. Sometimes its a little quieter than I'd like (I usually > have to have the volume set at >75, frequently closer to 95 across > the board to get anything audible out of the card in FreeBSD, although > the windows driver needs to be turned down to about 30 or so to be > tolerable). Also, it doesn't support multichannel audio in FreeBSD > (IE no /dev/dsp0.1 /dev/dsp0.2 etc...). > > In what way is the "quality low" anyway? Is it scratchy? Noisy? > Tinny? Does it sound like 8bit 4khz audio? > > What were you using to test? I used xmms, and it sounded "overloaded", turning the volume down helped :) But sometimes it is scratchy... (the mp3 files are ok...) - ----------------------------* signature *----------------------------- | _ | | ~\\_ | | \\\\ | | ... .--. . .-. -... . .-. `\\\\\ | | |\\\\\ | | \\\\\|__.--~~\ | | _--~ / | | /~ ////// _-~~~~' | | sperber@w3.brgkepler.asn-graz.ac.at ('-//////-// | | http://sperber.cjb.net //////(((-) | | /////" | | _///" | | ~ | - ---------------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Made with pgp4pine 1.76 iQEVAwUBO1hgKPZcoSmtQcKZAQHgoAgArnLUwIXz61DWflFdnYU3XukgpgxCWd+2 q7R354yiBdYYpYLfTsSlYwTkvEJk5aZRr7IfirggW2ufjwP0mfsvtF5OMZPz6d3J ROWZ93J9vuDCYERzUWZs6DcJFR/V4MePBdox78YSKQtbwbnBTw54bMoFUgaP4k/m p9VN2n/GATH0yOqHLcjFoZAeXPXGyzNg2Y4jwQPMzX2g5Sm0izdqpztUK40gVSjH oGID0zpZx9xFkQ1vhfL7v0eJwvcCbSO1HY/H+1v0GGrVjKM7gzKi5QNTRtrgSgVK wRGwLHQyK7l+1whxo5QHO4PIpjYuWvUTxaqELU4cIMIOiccsz2G6cw== =bFWt -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 10:56:52 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by hub.freebsd.org (Postfix) with ESMTP id D73FB37B406; Fri, 20 Jul 2001 10:56:49 -0700 (PDT) (envelope-from Alexander@leidinger.net) Received: from [194.97.50.135] (helo=mx2.freenet.de) by mout0.freenet.de with esmtp (Exim 3.30 #3) id 15NeW5-00037b-00; Fri, 20 Jul 2001 19:56:45 +0200 Received: from adfeb.pppool.de ([213.6.223.235] helo=Magelan.Leidinger.net) by mx2.freenet.de with esmtp (Exim 3.30 #3) id 15NeW4-0005d7-00; Fri, 20 Jul 2001 19:56:45 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.4/8.11.4) with ESMTP id f6KHuIK00790; Fri, 20 Jul 2001 19:56:19 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200107201756.f6KHuIK00790@Magelan.Leidinger.net> Date: Fri, 20 Jul 2001 19:56:17 +0200 (CEST) From: Alexander Leidinger Subject: VIA VT82C686A onboard sound didn't work (-current) To: cg@freebsd.org Cc: multimedia@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I didn't get any sound out of my onborad soundchip except the pc-speaker beep, which seems to get routed via the line-out connector to my amplifier. That's not satisfactory. :-( The PnP OS switch in the BIOS is off and I played with the Soundblaster switch in the BIOS. (10) netchild@ttyp2 % cat /dev/sndstat FreeBSD Audio Driver (newpcm) Jul 20 2001 23:05:29 Installed devices: pcm0: at io 0xdc00 irq 10 (1p/1r/0v channels duplex default) (11) netchild@ttyp2 % dmesg |grep pcm Preloaded elf module "snd_pcm.ko" at 0xc043c284. pcm0: port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 10 at device 7.5 on pci0 pcm0: play interrupt timeout, channel dead Yes, I load the module from loader.conf, it isn't compiled in. (12) netchild@ttyp2 % sysctl -a |grep snd hw.snd.verbose: 0 hw.snd.unit: 0 hw.snd.autovchans: 0 hw.snd.maxvchans: 0 hw.snd.pcm0.vchans: 0 This is -current from Jul 6, cvs only displays differences in als4000.c and maestro3.c. Is this a known problem or am I doing something wrong? Bye, Alexander. -- The best things in life are free, but the expensive ones are still worth a look. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 12:26:46 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id A9D5F37B407 for ; Fri, 20 Jul 2001 12:26:44 -0700 (PDT) (envelope-from fmela0@sm.socccd.cc.ca.us) Received: from sm.socccd.cc.ca.us (pool0044.cvx22-bradley.dialup.earthlink.net [209.179.198.44]) by falcon.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id MAA23060; Fri, 20 Jul 2001 12:26:42 -0700 (PDT) Message-ID: <3B588690.1BED5560@sm.socccd.cc.ca.us> Date: Fri, 20 Jul 2001 12:29:20 -0700 From: Farooq Mela X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: anholt@teleport.com Cc: multimedia@FreeBSD.ORG Subject: Re: Matrox G400 and XFree86-4/DRI References: <3B577AFA.39D5B7F@sm.socccd.cc.ca.us> <01072001350401.00581@positron.anholt.dyn.dhs.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Thanks for that link -- looks like I got everything I need right on that page. The Dual-Head G400's don't use Xinerama, so is there any way to get the G400 working dual-head, as two seperate screens or something? Eric Anholt wrote: > > You can visit my page http://gladstone.uoregon.edu/~eanholt/dri/ for > information on the DRI for FreeBSD. At this point, the G400 is mostly > working, but there have been some hangs reported. Unfortunately, I can't > reproduce them on my hardware. > > The DRI is incompatible with xinerama, and will not be compatible in the > forseeable future. I can't remember if there was any hope for DRI on the > dual-head G400s, which don't use xinerama. -- farooq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 16:13: 9 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from cokane.org (ip-216-23-49-49.adsl.one.net [216.23.49.49]) by hub.freebsd.org (Postfix) with ESMTP id 08FF437B403 for ; Fri, 20 Jul 2001 16:13:04 -0700 (PDT) (envelope-from cokane@cokane.org) Received: (from cokane@localhost) by cokane.org (8.11.4/8.11.4) id f6LBG0P83312; Sat, 21 Jul 2001 07:16:00 -0400 (EDT) (envelope-from cokane) Date: Sat, 21 Jul 2001 07:16:00 -0400 From: Coleman Kane To: Sperber Cc: Jason Andresen , multimedia@freebsd.org Subject: Re: Creative Soundblaster Live! Player 5.1 Message-ID: <20010721071600.D72108@evil.apt> References: <3B584225.D1098BB9@mitre.org> <20010720164330.H470-100000@www.omega-project.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="XMCwj5IQnwKtuyBG" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010720164330.H470-100000@www.omega-project.net>; from sperber@w3.brgkepler.asn-graz.ac.at on Fri, Jul 20, 2001 at 04:45:25PM +0000 X-VIM-Settings: vim:ts=4:sw=4:tw=70: X-Operating-System: FreeBSD evil.apt 5.0-CURRENT FreeBSD 5.0-CURRENT Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --XMCwj5IQnwKtuyBG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 20, 2001 at 04:45:25PM +0000, Sperber wrote, and it was proclai= med: > -----BEGIN PGP SIGNED MESSAGE----- >=20 > On Fri, 20 Jul 2001, Jason Andresen wrote: >=20 > > Sperber wrote: > > > > > > Hi! > > > > > > Today i bought the sb live... installed it and as i listened to some = music > > > i noticed that the quality was rather low... > > > Has someone experiences with that soundcard? > > > > I have an SB Live and from what I can tell it sounds no worse than > > my old SB16. Sometimes its a little quieter than I'd like (I usually > > have to have the volume set at >75, frequently closer to 95 across > > the board to get anything audible out of the card in FreeBSD, although > > the windows driver needs to be turned down to about 30 or so to be > > tolerable). Also, it doesn't support multichannel audio in FreeBSD > > (IE no /dev/dsp0.1 /dev/dsp0.2 etc...). > > This is being developed in -current, it is quite nice. > > In what way is the "quality low" anyway? Is it scratchy? Noisy? > > Tinny? Does it sound like 8bit 4khz audio? > > > > What were you using to test? >=20 > I used xmms, and it sounded "overloaded", turning the volume down helped > :) > But sometimes it is scratchy... (the mp3 files are ok...) >=20 I have noticed this in XMMS when the system volume is turned way down and the XMMS volume is way up. The solution was to set the system volume=20 lower and use externally amplified speakers (or, in my case, a stereo=20 reciever, hehe). The newer soundcards are not shipped with the amplifiers that were present on the old ISA SB16 cards, etc..., nearly every system uses some sort of externally amplified speakers, thus the SBLive! is=20 much quieter than the old SB16. I noticed long ago that a good set of ampli= fied speakers is nicer than a source-amplified audio signal. >=20 > - ----------------------------* signature *----------------------------- > | _ | > | ~\\_ | > | \\\\ | > | ... .--. . .-. -... . .-. `\\\\\ | > | |\\\\\ | > | \\\\\|__.--~~\ | > | _--~ / | > | /~ ////// _-~~~~' | > | sperber@w3.brgkepler.asn-graz.ac.at ('-//////-// | > | http://sperber.cjb.net //////(((-) | > | /////" | > | _///" | > | ~ | > - ---------------------------------------------------------------------- >=20 > -----BEGIN PGP SIGNATURE----- > Version: PGP 6.5.8 > Comment: Made with pgp4pine 1.76 >=20 > iQEVAwUBO1hgKPZcoSmtQcKZAQHgoAgArnLUwIXz61DWflFdnYU3XukgpgxCWd+2 > q7R354yiBdYYpYLfTsSlYwTkvEJk5aZRr7IfirggW2ufjwP0mfsvtF5OMZPz6d3J > ROWZ93J9vuDCYERzUWZs6DcJFR/V4MePBdox78YSKQtbwbnBTw54bMoFUgaP4k/m > p9VN2n/GATH0yOqHLcjFoZAeXPXGyzNg2Y4jwQPMzX2g5Sm0izdqpztUK40gVSjH > oGID0zpZx9xFkQ1vhfL7v0eJwvcCbSO1HY/H+1v0GGrVjKM7gzKi5QNTRtrgSgVK > wRGwLHQyK7l+1whxo5QHO4PIpjYuWvUTxaqELU4cIMIOiccsz2G6cw=3D=3D > =3DbFWt > -----END PGP SIGNATURE----- >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message >=20 --XMCwj5IQnwKtuyBG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7WWRvERViMObJ880RAsoXAJ0ZcXH6avWqalOU999O7ateV1oBsACfY+oY Iw9C7FDKpJ1Zwgj/sade4QU= =dr0K -----END PGP SIGNATURE----- --XMCwj5IQnwKtuyBG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Fri Jul 20 16:16:42 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from cokane.org (ip-216-23-49-49.adsl.one.net [216.23.49.49]) by hub.freebsd.org (Postfix) with ESMTP id C980F37B401; Fri, 20 Jul 2001 16:16:38 -0700 (PDT) (envelope-from cokane@cokane.org) Received: (from cokane@localhost) by cokane.org (8.11.4/8.11.4) id f6LBJfY83320; Sat, 21 Jul 2001 07:19:41 -0400 (EDT) (envelope-from cokane) Date: Sat, 21 Jul 2001 07:19:41 -0400 From: Coleman Kane To: Alexander Leidinger Cc: cg@freebsd.org, multimedia@freebsd.org Subject: Re: VIA VT82C686A onboard sound didn't work (-current) Message-ID: <20010721071941.E72108@evil.apt> References: <200107201756.f6KHuIK00790@Magelan.Leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3Pql8miugIZX0722" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107201756.f6KHuIK00790@Magelan.Leidinger.net>; from Alexander@Leidinger.net on Fri, Jul 20, 2001 at 07:56:17PM +0200 X-VIM-Settings: vim:ts=4:sw=4:tw=70: X-Operating-System: FreeBSD evil.apt 5.0-CURRENT FreeBSD 5.0-CURRENT Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --3Pql8miugIZX0722 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Try making sure the device is enabled in the BIOS. My Epox 8K7A+ was shipped with this turned off. Some systems do not entirely shut off the device sometimes. So it gets probed, but the outputs are not powered. BTW I have installed 4.2/4.3-RELEASE, 4-STABLE, and 5-CURRENT and they all played on mine. On Fri, Jul 20, 2001 at 07:56:17PM +0200, Alexander Leidinger wrote, and it= was proclaimed: > Hi, >=20 > I didn't get any sound out of my onborad soundchip except the pc-speaker > beep, which seems to get routed via the line-out connector to my > amplifier. That's not satisfactory. :-( >=20 > The PnP OS switch in the BIOS is off and I played with the Soundblaster > switch in the BIOS. >=20 > (10) netchild@ttyp2 % cat /dev/sndstat=20 > FreeBSD Audio Driver (newpcm) Jul 20 2001 23:05:29 > Installed devices: > pcm0: at io 0xdc00 irq 10 (1p/1r/0v channels duplex defau= lt) >=20 > (11) netchild@ttyp2 % dmesg |grep pcm > Preloaded elf module "snd_pcm.ko" at 0xc043c284. > pcm0: port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq = 10 at device 7.5 on pci0 > pcm0: play interrupt timeout, channel dead >=20 > Yes, I load the module from loader.conf, it isn't compiled in. >=20 > (12) netchild@ttyp2 % sysctl -a |grep snd > hw.snd.verbose: 0 > hw.snd.unit: 0 > hw.snd.autovchans: 0 > hw.snd.maxvchans: 0 > hw.snd.pcm0.vchans: 0 >=20 > This is -current from Jul 6, cvs only displays differences in als4000.c > and maestro3.c. >=20 > Is this a known problem or am I doing something wrong? >=20 > Bye, > Alexander. >=20 > --=20 > The best things in life are free, but the > expensive ones are still worth a look. >=20 > http://www.Leidinger.net Alexander @ Leidinger.net > GPG fingerprint =3D C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message >=20 --3Pql8miugIZX0722 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7WWVMERViMObJ880RAq3QAJ9ZIhrIa5zzO5SlSVJ30M9S9ejSaQCeM4lQ 8DyK/e3vOddAsSn/Xk00iQY= =la5V -----END PGP SIGNATURE----- --3Pql8miugIZX0722-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message From owner-freebsd-multimedia Sat Jul 21 0:59:30 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by hub.freebsd.org (Postfix) with ESMTP id 0BA1D37B403; Sat, 21 Jul 2001 00:59:23 -0700 (PDT) (envelope-from Alexander@leidinger.net) Received: from [194.97.50.135] (helo=mx2.freenet.de) by mout1.freenet.de with esmtp (Exim 3.30 #3) id 15NrfV-0002et-00; Sat, 21 Jul 2001 09:59:21 +0200 Received: from b80d6.pppool.de ([213.7.128.214] helo=Magelan.Leidinger.net) by mx2.freenet.de with esmtp (Exim 3.30 #3) id 15NrfU-0002Bm-00; Sat, 21 Jul 2001 09:59:21 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.4/8.11.4) with ESMTP id f6L7x8201436; Sat, 21 Jul 2001 09:59:09 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200107210759.f6L7x8201436@Magelan.Leidinger.net> Date: Sat, 21 Jul 2001 09:59:07 +0200 (CEST) From: Alexander Leidinger Subject: Re: VIA VT82C686A onboard sound didn't work (-current) To: cokane@freebsd.org Cc: cg@freebsd.org, multimedia@freebsd.org In-Reply-To: <20010721071941.E72108@evil.apt> MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY="0-1804289383-995702350=:1433" Content-Transfer-Encoding: BINARY Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --0-1804289383-995702350=:1433 Content-Type: TEXT/plain; charset=us-ascii On 21 Jul, Coleman Kane wrote: > Try making sure the device is enabled in the BIOS. My Epox 8K7A+ was It is enabled. There are two switches for it. The switch for "integrated audio" (I think it is called like this) in in the integrated periphals section is at "auto", the other possibility for it is "disabled". At the section where I also can set some soundblaster values I disabled the soundblaster switch (at the moment) and enabled the "I dont know how it is called, but it talks about the onboard sound" switch. > shipped with this turned off. Some systems do not entirely shut off the > device sometimes. So it gets probed, but the outputs are not powered. > BTW I have installed 4.2/4.3-RELEASE, 4-STABLE, and 5-CURRENT and they > all played on mine. Fine. Now I only have to convince my system to do the same... My actual dmesg output is attached (now at -current from yesterday). Is there something else I can do? Bye, Alexander. -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 --0-1804289383-995702350=:1433 Content-Type: TEXT/plain; name="dmesg.out" Content-Disposition: attachment; filename="dmesg.out" Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #6: Fri Jul 20 23:38:35 CEST 2001 root@Magelan.Leidinger.net:/big/usr/src/sys/i386/compile/WORK Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 801834166 Hz CPU: AMD Duron(tm) Processor (801.83-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x631 Stepping = 1 Features=0x183f9ff AMD Features=0xc0440000<,AMIE,DSP,3DNow!> real memory = 268369920 (262080K bytes) avail memory = 256757760 (250740K bytes) Preloaded elf kernel "kernel" at 0xc043f000. Preloaded elf module "cd9660.ko" at 0xc043f09c. Preloaded elf module "linux.ko" at 0xc043f13c. Preloaded elf module "snd_via82c686.ko" at 0xc043f1dc. Preloaded elf module "snd_pcm.ko" at 0xc043f284. Preloaded elf module "usb.ko" at 0xc043f324. Preloaded elf module "agp.ko" at 0xc043f3c0. Preloaded elf module "accf_data.ko" at 0xc043f45c. Preloaded elf module "accf_http.ko" at 0xc043f500. Preloaded elf module "atspeaker.ko" at 0xc043f5a4. Preloaded elf module "joy.ko" at 0xc043f648. Pentium Pro MTRR support enabled VESA: v3.0, 16384k memory, flags:0x1, mode table:0xc033f2d7 (1000117) VESA: 3dfx Interactive, Inc. Using $PIR table, 9 entries at 0xc00fdd00 npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: power button is handled as a fixed feature programming model. acpi_timer0: <24-bit timer at 3.579545MHz> on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_pcib0: on acpi0 pci0: on acpi_pcib0 agp0: mem 0xd0000000-0xd3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xd000-0xd00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 11 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at 7.4 (no driver attached) pcm0: port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 5 at device 7.5 on pci0 orm0: