diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c index 64fa01e2ee5a..de86a3dda27d 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 + Submitted patch by Vsevolod Lobko + 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 a832a210fe84..f06ea722f6e6 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 /* diff --git a/sys/i386/include/ioctl_bt848.h b/sys/i386/include/ioctl_bt848.h index a832a210fe84..f06ea722f6e6 100644 --- a/sys/i386/include/ioctl_bt848.h +++ b/sys/i386/include/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 /* diff --git a/sys/pci/brooktree848.c b/sys/pci/brooktree848.c index 64fa01e2ee5a..de86a3dda27d 100644 --- a/sys/pci/brooktree848.c +++ b/sys/pci/brooktree848.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 + Submitted patch by Vsevolod Lobko + 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/sys/ioctl_bt848.h b/sys/sys/ioctl_bt848.h index a832a210fe84..f06ea722f6e6 100644 --- a/sys/sys/ioctl_bt848.h +++ b/sys/sys/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 /*