From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1899 invoked from network); 27 Jun 1999 17:18:47 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 27 Jun 1999 17:18:47 -0000 Received: from arctica.sime.com (root@arctica.sime.com [193.228.80.12]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA21485 for ; Sun, 27 Jun 1999 12:22:00 -0400 Received: from sime.com (IDENT:root@stefan.sime.com [194.112.213.115]) by arctica.sime.com (8.9.1/8.9.1) with ESMTP id SAA00992; Sun, 27 Jun 1999 18:21:50 +0200 Received: (from stefan@localhost) by sime.com (8.9.3/8.9.3) id SAA25770; Sun, 27 Jun 1999 18:21:44 +0200 Date: Sun, 27 Jun 1999 18:21:44 +0200 From: Quant-X Alpha Linux Support To: axp-list@redhat.com Subject: Re: xawtv lockups (bt878, Alpha Linux) Message-ID: <19990627182144.A25725@stefan.atko.at> Reply-To: Quant-X Alpha Linux Support References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us In-Reply-To: ; from Andrew Hobgood on Sat, Jun 26, 1999 at 10:17:44PM -0400 Organization: Quant-X Service & Consulting Ges.m.b.H. X-Operating-System: Linux 2.2.10-stefan (i686) Hi Andrew ! On Sat, Jun 26, 1999 at 10:17:44PM -0400, Andrew Hobgood wrote: > > You've just discovered the hard way that the bt878 (at least) doesn't work > > properly on the pc164sx. Mr. Cox suggested buggy PCI. I've tried my WinTV > > 404 in two boards with three different video cards, with the same results. > How about in the LX? I'm using a Hauppauge WinTV (Radio) on my LX (Millennium II 8MB). xawtv works, nagratv-2.10 works. For DGA support you have to change the DGA-stuff in the X-Server and if it still not work for you maybe trapped into the cool "XF86VidModeGetAllModeLines" freeze. It's also a good idea to use the kernel-bttv includes (even if an app comes with "optimized" bttv drivers). ad XF86VidModeGetAllModeLines: I think it can be avoided by using the right commandline for startup or by a patch like this one: diff -ruN xawtv-2.46/main.c xawtv-2.46-alpha/main.c --- xawtv-2.46/main.c Sun Jun 6 10:27:14 1999 +++ xawtv-2.46-alpha/main.c Wed Jun 23 15:02:16 1999 @@ -277,6 +277,35 @@ /*--- exit ----------------------------------------------------------------*/ +Boolean XF86VidModeGetAllModeLinesHack(Display *d, int screen, + int *count, + XF86VidModeModeInfo ***modes) +{ + static XF86VidModeModeLine myline; + static XF86VidModeModeInfo myhack, *hack; + + XF86VidModeGetModeLine(d, screen, count, &myline); + myhack.hdisplay = myline.hdisplay; + myhack.hsyncstart = myline.hsyncstart; + myhack.hsyncend = myline.hsyncend; + myhack.htotal = myline.htotal; + + myhack.vdisplay = myline.vdisplay; + myhack.vsyncstart = myline.vsyncstart; + myhack.vsyncend = myline.vsyncend; + myhack.vtotal = myline.vtotal; + myhack.flags = myline.flags; + myhack.privsize = myline.privsize; + myhack.private = myline.private; + *count = 1; + hack = &myhack; + *modes = &hack; + return 0; +} +#define XF86VidModeGetAllModeLines(a,b,c,d) \ + XF86VidModeGetAllModeLinesHack(a,b,c,d) + + Boolean ExitWP(XtPointer client_data) { BTW: Has anyone optimized (mayby assembler) routines for 4-way word in qword processing ? I'm shure it's not worth to use it for paddusw (MMX) - like things (or arithmetic right shifts) but logical shifts are IMHO no problem (like this one): #define M4(n) 0x ## n ## n ## n ## n ## ul #define SI static inline SI u64 sllqw(u64 val, u64 cnt) { static const u64 and_tab[] = { M4(ffff), M4(fffe), M4(fffc), M4(fff8), M4(fff0), M4(ffe0), M4(ffc0), M4(ff80), M4(ff00), M4(fe00), M4(fc00), M4(f800), M4(f000), M4(e000), M4(c000), M4(8000) }; cnt &= 0xf; return (val << cnt) & and_tab[cnt]; } -- ciao - Stefan Traby Quant-X Alpha Linux Support Quant-X Service & Ph: (+43) 4212 90555-0 Consulting Ges.m.b.H. Fax: (+43) 4212 90555-555 http://www.quant-x.com Email: support@quant-x.com