summaryrefslogtreecommitdiffstats
path: root/sys/dev/bktr
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1998-09-10 07:52:30 +0000
committersos <sos@FreeBSD.org>1998-09-10 07:52:30 +0000
commit0440307095b3cdc5dccaa863b8df12362e76ccf6 (patch)
tree499c6c3dd1fd87a78c0f1b1e66e4dd0bf908a9f8 /sys/dev/bktr
parent4ed741ff31513925906dbdc62eb032bbff434206 (diff)
downloadFreeBSD-src-0440307095b3cdc5dccaa863b8df12362e76ccf6.zip
FreeBSD-src-0440307095b3cdc5dccaa863b8df12362e76ccf6.tar.gz
Correct SECAM B-Delay and add XUSSR channel set.
Submitted by: Vsevolod Lobko <seva@alex-ua.com>
Diffstat (limited to 'sys/dev/bktr')
-rw-r--r--sys/dev/bktr/bktr_core.c38
-rw-r--r--sys/dev/bktr/ioctl_bt848.h3
2 files changed, 37 insertions, 4 deletions
diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c
index 64fa01e..de86a3d 100644
--- a/sys/dev/bktr/bktr_core.c
+++ b/sys/dev/bktr/bktr_core.c
@@ -1,4 +1,4 @@
-/* BT848 1.42 Driver for Brooktree's Bt848 based cards.
+/* BT848 1.52 Driver for Brooktree's Bt848 based cards.
The Brooktree BT848 Driver driver is based upon Mark Tinguely and
Jim Lowe's driver for the Matrox Meteor PCI card . The
Philips SAA 7116 and SAA 7196 are very different chipsets than
@@ -297,6 +297,13 @@
Removed Hauppauge EEPROM 0x10 detection as I think
0x10 should be a PAL tuner, not NTSC.
Reinstated some Tuner Guesswork code from 1.27
+
+1.52 3 Sep 1998 Roger Hardiman <roger@cs.strath.ac.uk>
+ Submitted patch by Vsevolod Lobko <seva@alex-ua.com>
+ to correct SECAM B-Delay and add XUSSR channel set.
+
+
+
*/
#define DDB(x) x
@@ -548,7 +555,7 @@ static struct format_params format_params[] = {
/* # define BT848_IFORM_F_PALN (0x5) */
{ 625, 32, 576, 1135, 186, 922, 768, 944, 25, 0x7f, 0x72, BT848_IFORM_X_XT1 },
/* # define BT848_IFORM_F_SECAM (0x6) */
- { 625, 32, 576, 1135, 186, 922, 768, 944, 25, 0x7f, 0x72, BT848_IFORM_X_XT1 },
+ { 625, 32, 576, 1135, 186, 922, 768, 944, 25, 0x7f, 0xa0, BT848_IFORM_X_XT1 },
/* # define BT848_IFORM_F_RSVD (0x7) - ???? */
{ 625, 32, 576, 1135, 186, 922, 768, 944, 25, 0x7f, 0x72, BT848_IFORM_X_XT0 },
};
@@ -4986,6 +4993,30 @@ static int jpncable[] = {
#undef IF_FREQ
#undef OFFSET
+/*
+ * xUSSR Broadcast Channels:
+ *
+ * 1: 49.75MHz - 2: 59.25MHz
+ * 3: 77.25MHz - 5: 93.25MHz
+ * 6: 175.25MHz - 12: 223.25MHz
+ * 13-20 - not exist
+ * 21: 471.25MHz - 34: 575.25MHz
+ * 35: 583.25MHz - 60: 775.25MHz
+ *
+ * IF freq: 38.90 MHz
+ */
+#define IF_FREQ 38.90
+static int xussr[] = {
+ 60, (int)(IF_FREQ * FREQFACTOR), 0,
+ 35, (int)(583.25 * FREQFACTOR), (int)(8.00 * FREQFACTOR),
+ 21, (int)(471.25 * FREQFACTOR), (int)(8.00 * FREQFACTOR),
+ 6, (int)(175.25 * FREQFACTOR), (int)(8.00 * FREQFACTOR),
+ 3, (int)( 77.25 * FREQFACTOR), (int)(8.00 * FREQFACTOR),
+ 1, (int)( 49.75 * FREQFACTOR), (int)(9.50 * FREQFACTOR),
+ 0
+};
+#undef IF_FREQ
+
static int* freqTable[] = {
NULL,
nabcst,
@@ -4993,7 +5024,8 @@ static int* freqTable[] = {
hrccable,
weurope,
jpnbcst,
- jpncable
+ jpncable,
+ xussr
};
diff --git a/sys/dev/bktr/ioctl_bt848.h b/sys/dev/bktr/ioctl_bt848.h
index a832a21..f06ea72 100644
--- a/sys/dev/bktr/ioctl_bt848.h
+++ b/sys/dev/bktr/ioctl_bt848.h
@@ -11,8 +11,9 @@
#define CHNLSET_WEUROPE 4
#define CHNLSET_JPNBCST 5
#define CHNLSET_JPNCABLE 6
+#define CHNLSET_XUSSR 7
#define CHNLSET_MIN CHNLSET_NABCST
-#define CHNLSET_MAX CHNLSET_JPNCABLE
+#define CHNLSET_MAX CHNLSET_XUSSR
/*
OpenPOWER on IntegriCloud