Date: 03 Apr 1998 22:28:41 +0200 From: Frank Nobis <fn@Radio-do.de> To: Amancio Hasty <hasty@rah.star-gate.com> Cc: multimedia@FreeBSD.ORG Subject: Patch to brooktree848.c Message-ID: <yge67kqy7ie.fsf@trinity.radio-do.de>
next in thread | raw e-mail | index | archive | help
Dear Amancio,
this is my patch to support the German Phillips PAL tuner and
additional channels for german cable tv.
I still need to override the tuner detection, otherwise a temic tuner
would be selected.
*** brooktree848.c.orig Sun Mar 1 07:06:20 1998
--- brooktree848.c Fri Apr 3 22:15:44 1998
***************
*** 226,231 ****
--- 226,232 ----
#ifdef __FreeBSD__
#include "bktr.h"
+ #include "opt_bktr.h"
#include "opt_devfs.h"
#include "pci.h"
#endif /* __FreeBSD__ */
***************
*** 559,564 ****
--- 560,570 ----
#define PHILIPS_FR1236_NTSC_WADDR 0xc2
#define PHILIPS_FR1236_NTSC_RADDR 0xc3
+ /* PLL on a the Philips FR1216MK2 tuner,
+ yes, the european version of the tuner is 1216 */
+ #define PHILIPS_FR1216_PAL_WADDR 0xc2
+ #define PHILIPS_FR1216_PAL_RADDR 0xc3
+
/* guaranteed address for any TSA5522/3 (PLL on all(?) tuners) */
#define TSA552x_WADDR 0xc2
#define TSA552x_RADDR 0xc3
***************
*** 3616,3622 ****
return( (bt848->i2c_data_ctl >> 8) & 0xff );
}
-
#if defined( I2C_SOFTWARE_PROBE )
/*
--- 3622,3627 ----
***************
*** 3832,3837 ****
--- 3837,3843 ----
#define TEMIC_PALI 7
#define PHILIPS_PALI 8
#define PHILIPS_FR1236_NTSC 9
+ #define PHILIPS_FR1216_PAL 10
/* XXX FIXME: this list is incomplete */
***************
*** 3965,3970 ****
--- 3971,3987 ----
0x00},
{ 0x00, 0x00 }, /* band-switch crosspoints */
{ 0xa0, 0x90, 0x30,0x00 } }, /* the band-switch values */
+
+ /* PHILIPS_FR1216_PAL */
+ { "Philips FR1216 PAL FM", /* the 'name' */
+ TTYPE_PAL, /* input type */
+ PHILIPS_FR1216_PAL_WADDR, /* PLL write address */
+ { TSA552x_FCONTROL, /* control byte for PLL */
+ TSA552x_FCONTROL,
+ TSA552x_FCONTROL,
+ TSA552x_RADIO },
+ { 0x00, 0x00 }, /* band-switch crosspoints */
+ { 0xa0, 0x90, 0x30, 0xa4 } }, /* the band-switch values */
};
***************
*** 4316,4327 ****
* 97 28025 700 S18
* 98 28725 700 S19
* 99 29425 700 S20
*
! * 100 3890 000 IFFREQ
*
*/
static int weurope[] = {
! 100, (int)( 38.90 * FREQFACTOR), 0,
90, (int)(231.25 * FREQFACTOR), (int)(7.00 * FREQFACTOR),
80, (int)(105.25 * FREQFACTOR), (int)(7.00 * FREQFACTOR),
74, (int)( 69.25 * FREQFACTOR), (int)(7.00 * FREQFACTOR),
--- 4333,4371 ----
* 97 28025 700 S18
* 98 28725 700 S19
* 99 29425 700 S20
+ *
+ *
+ * Channels S21 - S41 are taken from
+ * http://gemma.apple.com:80/dev/technotes/tn/tn1012.html
+ *
+ * 100 30325 800 S21
+ * 101 31125 800 S22
+ * 102 31925 800 S23
+ * 103 32725 800 S24
+ * 104 33525 800 S25
+ * 105 34325 800 S26
+ * 106 35125 800 S27
+ * 107 35925 800 S28
+ * 108 36725 800 S29
+ * 109 37525 800 S30
+ * 110 38325 800 S31
+ * 111 39125 800 S32
+ * 112 39925 800 S33
+ * 113 40725 800 S34
+ * 114 41525 800 S35
+ * 115 42325 800 S36
+ * 116 43125 800 S37
+ * 117 43925 800 S38
+ * 118 44725 800 S39
+ * 119 45525 800 S40
+ * 120 46325 800 S41
*
! * 121 3890 000 IFFREQ
*
*/
static int weurope[] = {
! 121, (int)( 38.90 * FREQFACTOR), 0,
! 100, (int)(303.25 * FREQFACTOR), (int)(8.00 * FREQFACTOR),
90, (int)(231.25 * FREQFACTOR), (int)(7.00 * FREQFACTOR),
80, (int)(105.25 * FREQFACTOR), (int)(7.00 * FREQFACTOR),
74, (int)( 69.25 * FREQFACTOR), (int)(7.00 * FREQFACTOR),
--
Frank Nobis Email: PGP AVAILABLE
Landgrafenstr. 130 dg3dcn http://www.radio-do.de/~fn/
44139 Dortmund Powered by FreeBSD
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge67kqy7ie.fsf>
