From owner-freebsd-hackers Thu Dec 7 06:34:09 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA16287 for hackers-outgoing; Thu, 7 Dec 1995 06:34:09 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA16272 for ; Thu, 7 Dec 1995 06:34:05 -0800 (PST) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id GAA09429 for ; Thu, 7 Dec 1995 06:31:10 -0800 Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id MAA19435; Thu, 7 Dec 1995 12:25:54 +0100 From: Luigi Rizzo Message-Id: <199512071125.MAA19435@labinfo.iet.unipi.it> Subject: Re: Matrox Meteor & pal... To: tinguely@plains.nodak.edu (Mark Tinguely) Date: Thu, 7 Dec 1995 12:25:53 +0100 (MET) Cc: hackers@freebsd.org In-Reply-To: <199512062032.OAA16512@plains.nodak.edu> from "Mark Tinguely" at Dec 6, 95 02:32:16 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk Here are some chanes for the matrox meteor driver which allow it to work with PAL sources at 50 Hz. The diffs are wrt the 1.0.8 release of the driver, but should apply easily to the source that appears in 2.1.0-RELEASE A comment on the driver: it still crashes my system when I try to grab a PAL frame with max resolution (768x576). haven't had time to experiment more with it (by changing METEOR_ALLOC_PAGES), but it appears that the code that grows the memory buffer does not work correctly. Luigi ----------------- prova# diff -bw /sys/pci/meteor.c meteor.c.orig 79c79 < #define METEOR_ALLOC_PAGES 207 /* for PAL, for NTSC is 151 */ --- > #define METEOR_ALLOC_PAGES 151 291,295c291,295 < /* 01 */ 0x34, /*0x7f*/ /* 7:0 Horizontal Sync Begin for 50hz */ < /* 02 */ 0x0c, /*0x53*/ /* 7:0 Horizontal Sync Stop for 50hz */ < /* 03 */ 0xfb, /*0x43*/ /* 7:0 Horizontal Sync Clamp Start for 50hz */ < /* 04 */ 0xd4, /*0x19*/ /* 7:0 Horizontal Sync Clamp Stop for 50hz */ < /* 05 */ 0xec, /*0x00*/ /* 7:0 Horizontal Sync Start after PH1 for 50hz */ --- > /* 01 */ 0x7f, /* 7:0 Horizontal Sync Begin for 50hz */ > /* 02 */ 0x53, /* 7:0 Horizontal Sync Stop for 50hz */ > /* 03 */ 0x43, /* 7:0 Horizontal Sync Clamp Start for 50hz */ > /* 04 */ 0x19, /* 7:0 Horizontal Sync Clamp Stop for 50hz */ > /* 05 */ 0x00, /* 7:0 Horizontal Sync Start after PH1 for 50hz */ 870c870 < (SAA7196_REG(mtr, 0x0f) & ~0xe0) | 0x40); --- > (SAA7196_REG(mtr, 0x0f) & ~0xc0) | 0x40); 884c884 < (SAA7196_REG(mtr, 0x0f) & ~0xe0)); --- > (SAA7196_REG(mtr, 0x0f) & ~0xc0)); 890c890 < (SAA7196_REG(mtr, 0x28) & ~0x0c) | 0x04) ; --- > (SAA7196_REG(mtr, 0x28) & ~0x0c) | 0x01) ; 904c904 < (SAA7196_REG(mtr, 0x28) & ~0x0c) | 0x04) ; --- > (SAA7196_REG(mtr, 0x28) & ~0x0c) | 0x01) ; ----------------- Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 http://www.iet.unipi.it/~luigi/ ====================================================================