Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 1995 17:10:41 -0600
From:      mark tinguely <tinguely@joy.cs.ndsu.nodak.edu>
To:        freebsd-hackers@freebsd.org
Subject:   meteor patch
Message-ID:  <199512082310.RAA16340@joy.cs.ndsu.nodak.edu>

next in thread | raw e-mail | index | archive | help
> are you *really* sure about this ? There was only *one* difference
> in the settings of SECAM mode between the file that I believed to
> be 1.0.8 and the one in 2.1.0 -- but it only affected enabling
> something SECAM-related, and, btw, this needed to be undone also
> when going back to PAL and NTSC.
> 
> The lower half of my changes did this (probably not very important) and
> also set the high bits of the number of input lines in 50-Hz mode.

I don't have my data book here, blizzard has me stuck at home, but from the
commecnts on field you are correct, I was not clearing the SECAM mode if I
went from the output fields for 50 Hz (I added another clear for automode).
Also, I should be setting high bits of the input field count, not the output
field count bits. Thanks again.

I do not have any problems with VCRs.

*** meteor.c.1.0.9	Thu Dec  7 10:49:29 1995
--- meteor.c	Fri Dec  8 16:53:54 1995
***************
*** 42,47 ****
--- 42,50 ----
  			to either signed or unsigned.
  	12/07/95	Changed 7196 startup codes for 50 Hz as recommended
  			by Luigi Rizzo (luigi@iet.unipi.it)
+ 	12/08/95	Clear SECAM bit in PAL/NTSC and set input field count
+ 			bits for 50 Hz mode (PAL/SECAM) before I was setting the
+ 			output count bits. by Luigi Rizzo (luigi@iet.unipi.it)
  */
  
  #include "meteor.h"
***************
*** 869,875 ****
  			SAA7196_WRITE(mtr, 0x0d, 
  				(SAA7196_REG(mtr, 0x0d) & ~0x01));
  			SAA7196_WRITE(mtr, 0x0f,
! 				(SAA7196_REG(mtr, 0x0f) & ~0xc0) | 0x40);
  			SAA7196_WRITE(mtr, 0x22, 0x80);
  			SAA7196_WRITE(mtr, 0x24, 
  				(SAA7196_REG(mtr, 0x24) & ~0x0c) | 0x08);
--- 872,878 ----
  			SAA7196_WRITE(mtr, 0x0d, 
  				(SAA7196_REG(mtr, 0x0d) & ~0x01));
  			SAA7196_WRITE(mtr, 0x0f,
! 				(SAA7196_REG(mtr, 0x0f) & ~0xe0) | 0x40);
  			SAA7196_WRITE(mtr, 0x22, 0x80);
  			SAA7196_WRITE(mtr, 0x24, 
  				(SAA7196_REG(mtr, 0x24) & ~0x0c) | 0x08);
***************
*** 883,895 ****
  			SAA7196_WRITE(mtr, 0x0d, 
  				(SAA7196_REG(mtr, 0x0d) & ~0x01));
  			SAA7196_WRITE(mtr, 0x0f, 
! 				(SAA7196_REG(mtr, 0x0f) & ~0xc0));
  			SAA7196_WRITE(mtr, 0x22, 0x00);
  			SAA7196_WRITE(mtr, 0x24, 
  				(SAA7196_REG(mtr, 0x24) | 0x0c));
  			SAA7196_WRITE(mtr, 0x26, 0x20);
  			SAA7196_WRITE(mtr, 0x28, 
! 				(SAA7196_REG(mtr, 0x28) & ~0x0c) | 0x01) ;
  		break;
  		case METEOR_FMT_SECAM:
  			mtr->flags = (mtr->flags & ~METEOR_FORM_MASK) |
--- 886,898 ----
  			SAA7196_WRITE(mtr, 0x0d, 
  				(SAA7196_REG(mtr, 0x0d) & ~0x01));
  			SAA7196_WRITE(mtr, 0x0f, 
! 				(SAA7196_REG(mtr, 0x0f) & ~0xe0));
  			SAA7196_WRITE(mtr, 0x22, 0x00);
  			SAA7196_WRITE(mtr, 0x24, 
  				(SAA7196_REG(mtr, 0x24) | 0x0c));
  			SAA7196_WRITE(mtr, 0x26, 0x20);
  			SAA7196_WRITE(mtr, 0x28, 
! 				(SAA7196_REG(mtr, 0x28) & ~0x0c) | 0x04) ;
  		break;
  		case METEOR_FMT_SECAM:
  			mtr->flags = (mtr->flags & ~METEOR_FORM_MASK) |
***************
*** 903,909 ****
  				(SAA7196_REG(mtr, 0x24) | 0x0c));
  			SAA7196_WRITE(mtr, 0x26, 0x20);
  			SAA7196_WRITE(mtr, 0x28, 
! 				(SAA7196_REG(mtr, 0x28) & ~0x0c) | 0x01) ;
  		break;
  		case METEOR_FMT_AUTOMODE:
  			mtr->flags = (mtr->flags & ~METEOR_FORM_MASK) |
--- 906,912 ----
  				(SAA7196_REG(mtr, 0x24) | 0x0c));
  			SAA7196_WRITE(mtr, 0x26, 0x20);
  			SAA7196_WRITE(mtr, 0x28, 
! 				(SAA7196_REG(mtr, 0x28) & ~0x0c) | 0x04) ;
  		break;
  		case METEOR_FMT_AUTOMODE:
  			mtr->flags = (mtr->flags & ~METEOR_FORM_MASK) |
***************
*** 911,917 ****
  			SAA7196_WRITE(mtr, 0x0d, 
  				(SAA7196_REG(mtr, 0x0d) & ~0x01));
  			SAA7196_WRITE(mtr, 0x0f, 
! 				(SAA7196_REG(mtr, 0x0f) & ~0xc0) | 0x80);
  		break;
  		default:
  			return EINVAL;
--- 914,920 ----
  			SAA7196_WRITE(mtr, 0x0d, 
  				(SAA7196_REG(mtr, 0x0d) & ~0x01));
  			SAA7196_WRITE(mtr, 0x0f, 
! 				(SAA7196_REG(mtr, 0x0f) & ~0xe0) | 0x80);
  		break;
  		default:
  			return EINVAL;

--RAA16285.818464082/joy.cs.ndsu.nodak.edu--



--PAA22772.818464142/who.cdrom.com--





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