From owner-freebsd-hackers Thu Dec 7 09:04:50 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA28666 for hackers-outgoing; Thu, 7 Dec 1995 09:04:50 -0800 (PST) Received: from plains.nodak.edu (tinguely@plains.NoDak.edu [134.129.111.64]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA28652 for ; Thu, 7 Dec 1995 09:04:45 -0800 (PST) Received: (from tinguely@localhost) by plains.nodak.edu (8.7.1/8.7.1) id LAA26211; Thu, 7 Dec 1995 11:04:18 -0600 (CST) Date: Thu, 7 Dec 1995 11:04:18 -0600 (CST) From: Mark Tinguely Message-Id: <199512071704.LAA26211@plains.nodak.edu> To: luigi@labinfo.iet.unipi.it Subject: Re: Matrox Meteor & pal... Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org Precedence: bulk thank-you much. > 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 actually this is against 1.0.7. the 1.0.8 added achanged to PAL settings (the lower half of your patch). > 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. it is about impossible to get a new chunk of CONTIGUOUS memory that large once the system has been running for any length of time. use : (3*ROWS*COLS*DEPTH+4095)/4096 + (DEPTH>0?1:0) you will need at least 326 pages. I added the following to the copy on joy.cs.ndsu.nodak.edu: *** meteor.c.orig Thu Dec 7 10:59:32 1995 --- meteor.c Thu Dec 7 10:49:29 1995 *************** *** 40,45 **** --- 40,47 ---- off for AUTOMODE. 11/11/95 Change UV from always begin signed to ioctl selected to either signed or unsigned. + 12/07/95 Changed 7196 startup codes for 50 Hz as recommended + by Luigi Rizzo (luigi@iet.unipi.it) */ #include "meteor.h" *************** *** 288,298 **** /* SAA7196 I2C bus control */ /* BITS Function */ /* 00 */ 0x50, /* 7:0 Increment Delay */ ! /* 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 */ /* 06 */ 0x46, /* 7 Input mode =0 CVBS, =1 S-Video 6 Pre filter 5:4 Aperture Bandpass characteristics --- 290,300 ---- /* SAA7196 I2C bus control */ /* BITS Function */ /* 00 */ 0x50, /* 7:0 Increment Delay */ ! /* 01 */ 0x34, /* 7:0 Horizontal Sync Begin for 50hz */ ! /* 02 */ 0x0c, /* 7:0 Horizontal Sync Stop for 50hz */ ! /* 03 */ 0xfb, /* 7:0 Horizontal Sync Clamp Start for 50hz */ ! /* 04 */ 0xd4, /* 7:0 Horizontal Sync Clamp Stop for 50hz */ ! /* 05 */ 0xec, /* 7:0 Horizontal Sync Start after PH1 for 50hz */ /* 06 */ 0x46, /* 7 Input mode =0 CVBS, =1 S-Video 6 Pre filter 5:4 Aperture Bandpass characteristics