Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 1995 12:25:53 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        tinguely@plains.nodak.edu (Mark Tinguely)
Cc:        hackers@freebsd.org
Subject:   Re: Matrox Meteor & pal...
Message-ID:  <199512071125.MAA19435@labinfo.iet.unipi.it>
In-Reply-To: <199512062032.OAA16512@plains.nodak.edu> from "Mark Tinguely" at Dec 6, 95 02:32:16 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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/
====================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512071125.MAA19435>