2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
|
|
|
|
bttv-cards.c
|
|
|
|
|
|
|
|
this file has configuration informations - card-specific stuff
|
|
|
|
like the big tvcards array for the most part
|
|
|
|
|
|
|
|
Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de)
|
2005-11-09 12:37:43 +07:00
|
|
|
& Marcus Metzler (mocm@thp.uni-koeln.de)
|
2005-04-17 05:20:36 +07:00
|
|
|
(c) 1999-2001 Gerd Knorr <kraxel@goldbach.in-berlin.de>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/kmod.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/pci.h>
|
|
|
|
#include <linux/vmalloc.h>
|
|
|
|
#include <linux/firmware.h>
|
2007-07-22 07:26:40 +07:00
|
|
|
#include <net/checksum.h>
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2008-05-21 10:32:21 +07:00
|
|
|
#include <asm/unaligned.h>
|
2005-04-17 05:20:36 +07:00
|
|
|
#include <asm/io.h>
|
|
|
|
|
|
|
|
#include "bttvp.h"
|
2006-01-10 00:32:31 +07:00
|
|
|
#include <media/v4l2-common.h>
|
2006-03-19 07:31:00 +07:00
|
|
|
#include <media/tvaudio.h>
|
2007-10-27 02:54:54 +07:00
|
|
|
#include "bttv-audio-hook.h"
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* fwd decl */
|
|
|
|
static void boot_msp34xx(struct bttv *btv, int pin);
|
|
|
|
static void hauppauge_eeprom(struct bttv *btv);
|
|
|
|
static void avermedia_eeprom(struct bttv *btv);
|
2007-07-22 07:26:40 +07:00
|
|
|
static void osprey_eeprom(struct bttv *btv, const u8 ee[256]);
|
2005-04-17 05:20:36 +07:00
|
|
|
static void modtec_eeprom(struct bttv *btv);
|
|
|
|
static void init_PXC200(struct bttv *btv);
|
2005-06-24 12:04:45 +07:00
|
|
|
static void init_RTV24(struct bttv *btv);
|
2014-03-19 16:50:41 +07:00
|
|
|
static void init_PCI8604PW(struct bttv *btv);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
static void rv605_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void eagle_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void xguard_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void ivc120_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void gvc1100_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
|
|
|
|
static void PXC200_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
|
|
|
|
static void picolo_tetra_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void picolo_tetra_init(struct bttv *btv);
|
|
|
|
|
|
|
|
static void tibetCS16_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void tibetCS16_init(struct bttv *btv);
|
|
|
|
|
|
|
|
static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void kodicom4400r_init(struct bttv *btv);
|
|
|
|
|
|
|
|
static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
|
V4L/DVB (7366): Support for a 16-channel bt878 card
I have what looks like a Geovision GV-600 (or 650) card. It has a large
chip in the middle labeled
CONEXANT
FUSION 878A
25878-13
E345881.1
0312 TAIWAN
It has an audio connector coming out from a chip labeled
ATMEL
0242
AT89C2051-24PI
It is identified as follows on my Debian GNU/Linux Etch (kernel 2.6.18)
...
01:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
01:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
...
01:0a.0 0400: 109e:036e (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dfffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
01:0a.1 0480: 109e:0878 (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dffff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
It was being detected as a GENERIC UNKNOWN CARD both by the 2.6.18
kernel and the latest v4l-dvb drivers, but it did not work at all. The
card has sixteen (16) BNC video inputs, four of them on the board itself
and twelve on three daughter-cards. It has a single bt878 chip, no tuner
and what looks like and audio input. After doing some research I managed
to get only eight channels working by forcing card=125 and those DID NOT
match channels 0-7 on the card, and no audio.
Based on what was working for card=125, I added the card definition
block, added a specific muxsel routine and got the card working fully
with xawtv, where the sixteen channels show up as Composite0 to
Composite15, matching the channel labels in the card and daughter-cards.
I have made no efforts yet to get audio working, but would appreciate
any pointers.
Signed-off-by: Ernesto Hernández-Novich <emhn@usb.ve>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-23 00:45:58 +07:00
|
|
|
static void geovision_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
|
2009-01-29 07:32:59 +07:00
|
|
|
static void phytec_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
static void gv800s_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
static void gv800s_init(struct bttv *btv);
|
|
|
|
|
2011-11-06 20:15:47 +07:00
|
|
|
static void td3116_muxsel(struct bttv *btv, unsigned int input);
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
static int terratec_active_radio_upgrade(struct bttv *btv);
|
2015-01-16 03:10:45 +07:00
|
|
|
static int tea575x_init(struct bttv *btv);
|
2005-04-17 05:20:36 +07:00
|
|
|
static void identify_by_eeprom(struct bttv *btv,
|
|
|
|
unsigned char eeprom_data[256]);
|
2012-12-22 04:17:53 +07:00
|
|
|
static int pvr_boot(struct bttv *btv);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* config variables */
|
2006-01-13 23:10:19 +07:00
|
|
|
static unsigned int triton1;
|
|
|
|
static unsigned int vsfx;
|
2005-04-17 05:20:36 +07:00
|
|
|
static unsigned int latency = UNSET;
|
2005-08-05 02:53:30 +07:00
|
|
|
int no_overlay=-1;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
|
|
|
|
static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
|
|
|
|
static unsigned int tuner[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
|
|
|
|
static unsigned int svhs[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
|
|
|
|
static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
|
2009-03-28 18:29:00 +07:00
|
|
|
static unsigned int audiodev[BTTV_MAX];
|
|
|
|
static unsigned int saa6588[BTTV_MAX];
|
2005-04-17 05:20:36 +07:00
|
|
|
static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL };
|
2009-03-28 18:29:00 +07:00
|
|
|
static unsigned int autoload = UNSET;
|
2005-04-17 05:20:36 +07:00
|
|
|
static unsigned int gpiomask = UNSET;
|
|
|
|
static unsigned int audioall = UNSET;
|
|
|
|
static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET };
|
|
|
|
|
|
|
|
/* insmod options */
|
|
|
|
module_param(triton1, int, 0444);
|
|
|
|
module_param(vsfx, int, 0444);
|
|
|
|
module_param(no_overlay, int, 0444);
|
|
|
|
module_param(latency, int, 0444);
|
|
|
|
module_param(gpiomask, int, 0444);
|
|
|
|
module_param(audioall, int, 0444);
|
|
|
|
module_param(autoload, int, 0444);
|
|
|
|
|
|
|
|
module_param_array(card, int, NULL, 0444);
|
|
|
|
module_param_array(pll, int, NULL, 0444);
|
|
|
|
module_param_array(tuner, int, NULL, 0444);
|
|
|
|
module_param_array(svhs, int, NULL, 0444);
|
|
|
|
module_param_array(remote, int, NULL, 0444);
|
2009-03-28 18:29:00 +07:00
|
|
|
module_param_array(audiodev, int, NULL, 0444);
|
2005-04-17 05:20:36 +07:00
|
|
|
module_param_array(audiomux, int, NULL, 0444);
|
|
|
|
|
|
|
|
MODULE_PARM_DESC(triton1,"set ETBF pci config bit "
|
|
|
|
"[enable bug compatibility for triton1 + others]");
|
|
|
|
MODULE_PARM_DESC(vsfx,"set VSFX pci config bit "
|
|
|
|
"[yet another chipset flaw workaround]");
|
|
|
|
MODULE_PARM_DESC(latency,"pci latency timer");
|
|
|
|
MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list");
|
2013-04-14 22:39:09 +07:00
|
|
|
MODULE_PARM_DESC(pll, "specify installed crystal (0=none, 28=28 MHz, 35=35 MHz, 14=14 MHz)");
|
2005-04-17 05:20:36 +07:00
|
|
|
MODULE_PARM_DESC(tuner,"specify installed tuner type");
|
2009-03-28 18:29:00 +07:00
|
|
|
MODULE_PARM_DESC(autoload, "obsolete option, please do not use anymore");
|
|
|
|
MODULE_PARM_DESC(audiodev, "specify audio device:\n"
|
|
|
|
"\t\t-1 = no audio\n"
|
|
|
|
"\t\t 0 = autodetect (default)\n"
|
|
|
|
"\t\t 1 = msp3400\n"
|
|
|
|
"\t\t 2 = tda7432\n"
|
|
|
|
"\t\t 3 = tvaudio");
|
|
|
|
MODULE_PARM_DESC(saa6588, "if 1, then load the saa6588 RDS module, default (0) is to use the card definition.");
|
2006-03-11 02:46:50 +07:00
|
|
|
MODULE_PARM_DESC(no_overlay,"allow override overlay default (0 disables, 1 enables)"
|
|
|
|
" [some VIA/SIS chipsets are known to have problem with overlay]");
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/* list of card IDs for bt878+ cards */
|
|
|
|
|
|
|
|
static struct CARD {
|
|
|
|
unsigned id;
|
|
|
|
int cardnr;
|
|
|
|
char *name;
|
2012-12-22 04:17:53 +07:00
|
|
|
} cards[] = {
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" },
|
|
|
|
{ 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" },
|
|
|
|
{ 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" },
|
|
|
|
{ 0xff000070, BTTV_BOARD_OSPREY1x0, "Osprey-100" },
|
|
|
|
{ 0xff010070, BTTV_BOARD_OSPREY2x0_SVID,"Osprey-200" },
|
|
|
|
{ 0xff020070, BTTV_BOARD_OSPREY500, "Osprey-500" },
|
|
|
|
{ 0xff030070, BTTV_BOARD_OSPREY2000, "Osprey-2000" },
|
|
|
|
{ 0xff040070, BTTV_BOARD_OSPREY540, "Osprey-540" },
|
2005-11-09 12:37:02 +07:00
|
|
|
{ 0xff070070, BTTV_BOARD_OSPREY440, "Osprey-440" },
|
2005-11-09 12:36:52 +07:00
|
|
|
|
|
|
|
{ 0x00011002, BTTV_BOARD_ATI_TVWONDER, "ATI TV Wonder" },
|
|
|
|
{ 0x00031002, BTTV_BOARD_ATI_TVWONDERVE,"ATI TV Wonder/VE" },
|
|
|
|
|
|
|
|
{ 0x6606107d, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" },
|
|
|
|
{ 0x6607107d, BTTV_BOARD_WINFASTVC100, "Leadtek WinFast VC 100" },
|
|
|
|
{ 0x6609107d, BTTV_BOARD_WINFAST2000, "Leadtek TV 2000 XP" },
|
|
|
|
{ 0x263610b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" },
|
|
|
|
{ 0x264510b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" },
|
2005-11-09 12:37:43 +07:00
|
|
|
{ 0x402010fc, BTTV_BOARD_GVBCTV3PCI, "I-O Data Co. GV-BCTV3/PCI" },
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0x405010fc, BTTV_BOARD_GVBCTV4PCI, "I-O Data Co. GV-BCTV4/PCI" },
|
|
|
|
{ 0x407010fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" },
|
2005-11-09 12:37:43 +07:00
|
|
|
{ 0xd01810fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" },
|
2005-11-09 12:36:52 +07:00
|
|
|
|
|
|
|
{ 0x001211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" },
|
2005-09-10 03:03:39 +07:00
|
|
|
/* some cards ship with byteswapped IDs ... */
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0x1200bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" },
|
|
|
|
{ 0xff00bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" },
|
2005-09-10 03:03:39 +07:00
|
|
|
/* this seems to happen as well ... */
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0xff1211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" },
|
|
|
|
|
2007-06-25 23:02:16 +07:00
|
|
|
{ 0x3000121a, BTTV_BOARD_VOODOOTV_200, "3Dfx VoodooTV 200" },
|
|
|
|
{ 0x263710b4, BTTV_BOARD_VOODOOTV_FM, "3Dfx VoodooTV FM" },
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0x3060121a, BTTV_BOARD_STB2, "3Dfx VoodooTV 100/ STB OEM" },
|
|
|
|
|
|
|
|
{ 0x3000144f, BTTV_BOARD_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" },
|
|
|
|
{ 0xa005144f, BTTV_BOARD_MAGICTVIEW063, "CPH06X TView99-Card" },
|
|
|
|
{ 0x3002144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" },
|
|
|
|
{ 0x3005144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" },
|
|
|
|
{ 0x5000144f, BTTV_BOARD_MAGICTVIEW061, "Askey CPH050" },
|
|
|
|
{ 0x300014ff, BTTV_BOARD_MAGICTVIEW061, "TView 99 (CPH061)" },
|
|
|
|
{ 0x300214ff, BTTV_BOARD_PHOEBE_TVMAS, "Phoebe TV Master (CPH060)" },
|
|
|
|
|
|
|
|
{ 0x00011461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" },
|
|
|
|
{ 0x00021461, BTTV_BOARD_AVERMEDIA98, "AVermedia TVCapture 98" },
|
|
|
|
{ 0x00031461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" },
|
|
|
|
{ 0x00041461, BTTV_BOARD_AVERMEDIA98, "AVerMedia TVCapture 98" },
|
|
|
|
{ 0x03001461, BTTV_BOARD_AVERMEDIA98, "VDOMATE TV TUNER CARD" },
|
|
|
|
|
|
|
|
{ 0x1117153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL B/G)" },
|
|
|
|
{ 0x1118153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL B/G)" },
|
|
|
|
{ 0x1119153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL I)" },
|
|
|
|
{ 0x111a153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL I)" },
|
|
|
|
|
|
|
|
{ 0x1123153b, BTTV_BOARD_TERRATVRADIO, "Terratec TV Radio+" },
|
|
|
|
{ 0x1127153b, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.05)" },
|
2005-09-10 03:03:39 +07:00
|
|
|
/* clashes with FlyVideo
|
2005-11-09 12:36:52 +07:00
|
|
|
*{ 0x18521852, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.10)" }, */
|
|
|
|
{ 0x1134153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (LR102)" },
|
|
|
|
{ 0x1135153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* LR102 */
|
|
|
|
{ 0x5018153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue" }, /* ?? */
|
|
|
|
{ 0xff3b153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* ?? */
|
|
|
|
|
|
|
|
{ 0x400015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" },
|
|
|
|
{ 0x400a15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" },
|
|
|
|
{ 0x400d15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
|
|
|
|
{ 0x401015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
|
|
|
|
{ 0x401615b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
|
|
|
|
|
|
|
|
{ 0x1430aa00, BTTV_BOARD_PV143, "Provideo PV143A" },
|
|
|
|
{ 0x1431aa00, BTTV_BOARD_PV143, "Provideo PV143B" },
|
|
|
|
{ 0x1432aa00, BTTV_BOARD_PV143, "Provideo PV143C" },
|
|
|
|
{ 0x1433aa00, BTTV_BOARD_PV143, "Provideo PV143D" },
|
|
|
|
{ 0x1433aa03, BTTV_BOARD_PV143, "Security Eyes" },
|
|
|
|
|
|
|
|
{ 0x1460aa00, BTTV_BOARD_PV150, "Provideo PV150A-1" },
|
|
|
|
{ 0x1461aa01, BTTV_BOARD_PV150, "Provideo PV150A-2" },
|
|
|
|
{ 0x1462aa02, BTTV_BOARD_PV150, "Provideo PV150A-3" },
|
|
|
|
{ 0x1463aa03, BTTV_BOARD_PV150, "Provideo PV150A-4" },
|
|
|
|
|
|
|
|
{ 0x1464aa04, BTTV_BOARD_PV150, "Provideo PV150B-1" },
|
|
|
|
{ 0x1465aa05, BTTV_BOARD_PV150, "Provideo PV150B-2" },
|
|
|
|
{ 0x1466aa06, BTTV_BOARD_PV150, "Provideo PV150B-3" },
|
|
|
|
{ 0x1467aa07, BTTV_BOARD_PV150, "Provideo PV150B-4" },
|
|
|
|
|
|
|
|
{ 0xa132ff00, BTTV_BOARD_IVC100, "IVC-100" },
|
|
|
|
{ 0xa1550000, BTTV_BOARD_IVC200, "IVC-200" },
|
|
|
|
{ 0xa1550001, BTTV_BOARD_IVC200, "IVC-200" },
|
|
|
|
{ 0xa1550002, BTTV_BOARD_IVC200, "IVC-200" },
|
|
|
|
{ 0xa1550003, BTTV_BOARD_IVC200, "IVC-200" },
|
|
|
|
{ 0xa1550100, BTTV_BOARD_IVC200, "IVC-200G" },
|
|
|
|
{ 0xa1550101, BTTV_BOARD_IVC200, "IVC-200G" },
|
|
|
|
{ 0xa1550102, BTTV_BOARD_IVC200, "IVC-200G" },
|
|
|
|
{ 0xa1550103, BTTV_BOARD_IVC200, "IVC-200G" },
|
2010-04-27 23:17:51 +07:00
|
|
|
{ 0xa1550800, BTTV_BOARD_IVC200, "IVC-200" },
|
|
|
|
{ 0xa1550801, BTTV_BOARD_IVC200, "IVC-200" },
|
|
|
|
{ 0xa1550802, BTTV_BOARD_IVC200, "IVC-200" },
|
|
|
|
{ 0xa1550803, BTTV_BOARD_IVC200, "IVC-200" },
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0xa182ff00, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff01, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff02, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff03, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff04, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff05, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff06, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff07, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff08, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff09, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff0a, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff0b, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff0c, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff0d, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff0e, BTTV_BOARD_IVC120, "IVC-120G" },
|
|
|
|
{ 0xa182ff0f, BTTV_BOARD_IVC120, "IVC-120G" },
|
2009-01-23 09:07:26 +07:00
|
|
|
{ 0xf0500000, BTTV_BOARD_IVCE8784, "IVCE-8784" },
|
|
|
|
{ 0xf0500001, BTTV_BOARD_IVCE8784, "IVCE-8784" },
|
|
|
|
{ 0xf0500002, BTTV_BOARD_IVCE8784, "IVCE-8784" },
|
|
|
|
{ 0xf0500003, BTTV_BOARD_IVCE8784, "IVCE-8784" },
|
2005-11-09 12:36:52 +07:00
|
|
|
|
|
|
|
{ 0x41424344, BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" },
|
|
|
|
{ 0x01020304, BTTV_BOARD_XGUARD, "Grandtec Grand X-Guard" },
|
|
|
|
|
|
|
|
{ 0x18501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" },
|
|
|
|
{ 0xa0501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" },
|
|
|
|
{ 0x18511851, BTTV_BOARD_FLYVIDEO98EZ, "FlyVideo 98EZ (LR51)/ CyberMail AV" },
|
|
|
|
{ 0x18521852, BTTV_BOARD_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" },
|
|
|
|
{ 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" },
|
|
|
|
{ 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" },
|
|
|
|
|
2006-06-20 10:30:57 +07:00
|
|
|
{ 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" },
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0x010114c7, BTTV_BOARD_MODTEC_205, "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV" },
|
|
|
|
|
|
|
|
{ 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" },
|
|
|
|
{ 0x217d6606, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" },
|
|
|
|
{ 0xfff6f6ff, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" },
|
2011-10-26 05:43:55 +07:00
|
|
|
{ 0x03116000, BTTV_BOARD_SENSORAY311_611, "Sensoray 311" },
|
|
|
|
{ 0x06116000, BTTV_BOARD_SENSORAY311_611, "Sensoray 611" },
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0x00790e11, BTTV_BOARD_WINDVR, "Canopus WinDVR PCI" },
|
|
|
|
{ 0xa0fca1a0, BTTV_BOARD_ZOLTRIX, "Face to Face Tvmax" },
|
|
|
|
{ 0x82b2aa6a, BTTV_BOARD_SIMUS_GVC1100, "SIMUS GVC1100" },
|
|
|
|
{ 0x146caa0c, BTTV_BOARD_PV951, "ituner spectra8" },
|
2005-11-09 12:37:43 +07:00
|
|
|
{ 0x200a1295, BTTV_BOARD_PXC200, "ImageNation PXC200A" },
|
2005-11-09 12:36:52 +07:00
|
|
|
|
|
|
|
{ 0x40111554, BTTV_BOARD_PV_BT878P_9B, "Prolink Pixelview PV-BT" },
|
|
|
|
{ 0x17de0a01, BTTV_BOARD_KWORLD, "Mecer TV/FM/Video Tuner" },
|
|
|
|
|
|
|
|
{ 0x01051805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" },
|
|
|
|
{ 0x01061805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" },
|
|
|
|
{ 0x01071805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" },
|
|
|
|
{ 0x01081805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" },
|
|
|
|
|
|
|
|
{ 0x15409511, BTTV_BOARD_ACORP_Y878F, "Acorp Y878F" },
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-04-03 00:22:39 +07:00
|
|
|
{ 0x53534149, BTTV_BOARD_SSAI_SECURITY, "SSAI Security Video Interface" },
|
|
|
|
{ 0x5353414a, BTTV_BOARD_SSAI_ULTRASOUND, "SSAI Ultrasound Video Interface" },
|
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
/* likely broken, vendor id doesn't match the other magic views ...
|
2005-11-09 12:36:52 +07:00
|
|
|
* { 0xa0fca04f, BTTV_BOARD_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */
|
2005-09-10 03:03:39 +07:00
|
|
|
|
2006-01-10 00:25:01 +07:00
|
|
|
/* Duplicate PCI ID, reconfigure for this board during the eeprom read.
|
|
|
|
* { 0x13eb0070, BTTV_BOARD_HAUPPAUGE_IMPACTVCB, "Hauppauge ImpactVCB" }, */
|
|
|
|
|
2009-03-11 18:18:53 +07:00
|
|
|
{ 0x109e036e, BTTV_BOARD_CONCEPTRONIC_CTVFMI2, "Conceptronic CTVFMi v2"},
|
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
/* DVB cards (using pci function .1 for mpeg data xfer) */
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0x001c11bd, BTTV_BOARD_PINNACLESAT, "Pinnacle PCTV Sat" },
|
2006-01-24 02:11:06 +07:00
|
|
|
{ 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" },
|
|
|
|
{ 0x20007063, BTTV_BOARD_PC_HDTV, "pcHDTV HD-2000 TV"},
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0x002611bd, BTTV_BOARD_TWINHAN_DST, "Pinnacle PCTV SAT CI" },
|
|
|
|
{ 0x00011822, BTTV_BOARD_TWINHAN_DST, "Twinhan VisionPlus DVB" },
|
|
|
|
{ 0xfc00270f, BTTV_BOARD_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" },
|
|
|
|
{ 0x07711461, BTTV_BOARD_AVDVBT_771, "AVermedia AverTV DVB-T 771" },
|
2006-01-24 02:11:06 +07:00
|
|
|
{ 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" },
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" },
|
2007-01-08 08:12:22 +07:00
|
|
|
{ 0xdb1118ac, BTTV_BOARD_DVICO_DVBT_LITE, "Ultraview DVB-T Lite" },
|
2005-11-09 12:36:52 +07:00
|
|
|
{ 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" },
|
2006-06-22 04:45:31 +07:00
|
|
|
{ 0x00261822, BTTV_BOARD_TWINHAN_DST, "DNTV Live! Mini "},
|
2007-06-28 22:19:20 +07:00
|
|
|
{ 0xd200dbc0, BTTV_BOARD_DVICO_FUSIONHDTV_2, "DViCO FusionHDTV 2" },
|
V4L/DVB (7366): Support for a 16-channel bt878 card
I have what looks like a Geovision GV-600 (or 650) card. It has a large
chip in the middle labeled
CONEXANT
FUSION 878A
25878-13
E345881.1
0312 TAIWAN
It has an audio connector coming out from a chip labeled
ATMEL
0242
AT89C2051-24PI
It is identified as follows on my Debian GNU/Linux Etch (kernel 2.6.18)
...
01:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
01:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
...
01:0a.0 0400: 109e:036e (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dfffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
01:0a.1 0480: 109e:0878 (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dffff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
It was being detected as a GENERIC UNKNOWN CARD both by the 2.6.18
kernel and the latest v4l-dvb drivers, but it did not work at all. The
card has sixteen (16) BNC video inputs, four of them on the board itself
and twelve on three daughter-cards. It has a single bt878 chip, no tuner
and what looks like and audio input. After doing some research I managed
to get only eight channels working by forcing card=125 and those DID NOT
match channels 0-7 on the card, and no audio.
Based on what was working for card=125, I added the card definition
block, added a specific muxsel routine and got the card working fully
with xawtv, where the sixteen channels show up as Composite0 to
Composite15, matching the channel labels in the card and daughter-cards.
I have made no efforts yet to get audio working, but would appreciate
any pointers.
Signed-off-by: Ernesto Hernández-Novich <emhn@usb.ve>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-23 00:45:58 +07:00
|
|
|
{ 0x763c008a, BTTV_BOARD_GEOVISION_GV600, "GeoVision GV-600" },
|
2008-08-05 20:14:13 +07:00
|
|
|
{ 0x18011000, BTTV_BOARD_ENLTV_FM_2, "Encore ENL TV-FM-2" },
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
{ 0x763d800a, BTTV_BOARD_GEOVISION_GV800S, "GeoVision GV-800(S) (master)" },
|
|
|
|
{ 0x763d800b, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" },
|
|
|
|
{ 0x763d800c, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" },
|
|
|
|
{ 0x763d800d, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" },
|
2009-03-13 07:43:34 +07:00
|
|
|
|
|
|
|
{ 0x15401830, BTTV_BOARD_PV183, "Provideo PV183-1" },
|
|
|
|
{ 0x15401831, BTTV_BOARD_PV183, "Provideo PV183-2" },
|
|
|
|
{ 0x15401832, BTTV_BOARD_PV183, "Provideo PV183-3" },
|
|
|
|
{ 0x15401833, BTTV_BOARD_PV183, "Provideo PV183-4" },
|
|
|
|
{ 0x15401834, BTTV_BOARD_PV183, "Provideo PV183-5" },
|
|
|
|
{ 0x15401835, BTTV_BOARD_PV183, "Provideo PV183-6" },
|
|
|
|
{ 0x15401836, BTTV_BOARD_PV183, "Provideo PV183-7" },
|
|
|
|
{ 0x15401837, BTTV_BOARD_PV183, "Provideo PV183-8" },
|
2011-11-06 20:15:47 +07:00
|
|
|
{ 0x3116f200, BTTV_BOARD_TVT_TD3116, "Tongwei Video Technology TD-3116" },
|
2012-07-19 19:36:33 +07:00
|
|
|
{ 0x02280279, BTTV_BOARD_APOSONIC_WDVR, "Aposonic W-DVR" },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ 0, -1, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/* array with description for bt848 / bt878 tv/grabber cards */
|
|
|
|
|
|
|
|
struct tvcard bttv_tvcards[] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* ---- card 0x00 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_UNKNOWN] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = " *** UNKNOWN/GENERIC *** ",
|
|
|
|
.video_inputs = 4,
|
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MIRO] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "MIRO PCTV",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 15,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 2, 0, 0, 0 },
|
|
|
|
.gpiomute = 10,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_HAUPPAUGE] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Hauppauge (bt848)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 3 },
|
|
|
|
.gpiomute = 4,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_STB] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "STB, Gateway P/N 6000699 (bt848)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 4, 0, 2, 3 },
|
|
|
|
.gpiomute = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.tuner_type = TUNER_PHILIPS_NTSC,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x04 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_INTEL] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Intel Create and Share PCI/ Smart Video Recorder III",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_DIAMOND] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Diamond DTV2000",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 3,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 0, 1 },
|
|
|
|
.gpiomute = 3,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_AVERMEDIA] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "AVerMedia TVPhone",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0x0f,
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x0c, 0x04, 0x08, 0x04 },
|
2005-11-09 12:36:51 +07:00
|
|
|
/* 0x04 for some cards ?? */
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= avermedia_tvphone_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
.has_remote = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MATRIX_VISION] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "MATRIX-Vision MV-Delta",
|
|
|
|
.video_inputs = 5,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x08 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_FLYVIDEO] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xc00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0xc00, 0x800, 0x400 },
|
|
|
|
.gpiomute = 0xc00,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TURBOTV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "IMS/IXmicro TurboTV",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 3,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 1, 1, 2, 3 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_TEMIC_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_HAUPPAUGE878] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Hauppauge (bt878)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x0f, /* old: 7 */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 0, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 3 },
|
|
|
|
.gpiomute = 4,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MIROPRO] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "MIRO PCTV pro",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x3014f,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x20001,0x10001, 0, 0 },
|
|
|
|
.gpiomute = 10,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x0c ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ADSTECH_TV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "ADS Technologies Channel Surfer TV (bt848)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 15,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 13, 14, 11, 7 },
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_AVERMEDIA98] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "AVerMedia TVCapture 98",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 4, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 15,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 13, 14, 11, 7 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.msp34xx_alt = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= avermedia_tv_stereo_audio,
|
2005-11-09 12:37:43 +07:00
|
|
|
.no_gpioirq = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_VHX] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Aimslab Video Highway Xtreme (VHX)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */
|
|
|
|
.gpiomute = 4,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ZOLTRIX] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Zoltrix TV-Max",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 15,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 1, 0 },
|
|
|
|
.gpiomute = 10,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x10 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PIXVIEWPLAYTV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Prolink Pixelview PlayTV (bt878)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x01fe00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
/* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x001e00, 0, 0x018000, 0x014000 },
|
|
|
|
.gpiomute = 0x002000,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2008-04-23 00:45:36 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_WINVIEW_601] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Leadtek WinView 601",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x8300f8,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 },
|
|
|
|
.gpiomute = 0xcfa007,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.volume_gpio = winview_volume,
|
2005-11-09 12:36:51 +07:00
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_AVEC_INTERCAP] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "AVEC Intercapture",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 2, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 1, 0, 0, 0 },
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_LIFE_FLYKIT] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0x8dff00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x14 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_CEI_RAFFLES] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "CEI Raffles Card",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 3, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_CONFERENCETV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 2, tuner, line in */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1800,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0x800, 0x1000, 0x1000 },
|
|
|
|
.gpiomute = 0x1800,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL_I,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PHOEBE_TVMAS] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Askey CPH050/ Phoebe Tv Master + FM",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xc00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 0x800, 0x400 },
|
|
|
|
.gpiomute = 0xc00,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MODTEC_205] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
2009-01-29 07:32:59 +07:00
|
|
|
.has_dig_in = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0), /* input 2 is digital */
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .digital_mode= DIGITAL_MODE_CAMERA, */
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_ALPS_TSBB5_PAL_I,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x18 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MAGICTVIEW061] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Askey CPH05X/06X (bt878) [many vendors]",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xe00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = {0x400, 0x400, 0x400, 0x400 },
|
|
|
|
.gpiomute = 0xc00,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
2012-07-01 20:22:08 +07:00
|
|
|
.has_radio = 1, /* not every card has radio */
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_VOBIS_BOOSTAR] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1f0fff,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x20000, 0x30000, 0x10000, 0 },
|
|
|
|
.gpiomute = 0x40000,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= terratv_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_HAUPPAUG_WCAM] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Hauppauge WinCam newer (bt878)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 0, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 3 },
|
|
|
|
.gpiomute = 4,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MAXI] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 2, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1800,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0x800, 0x1000, 0x1000 },
|
|
|
|
.gpiomute = 0x1800,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_SECAM,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x1c ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TERRATV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Terratec TerraTV+ Version 1.1 (bt878)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1f0fff,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 },
|
|
|
|
.gpiomute = 0x40000,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= terratv_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
/* GPIO wiring:
|
|
|
|
External 20 pin connector (for Active Radio Upgrade board)
|
|
|
|
gpio00: i2c-sda
|
|
|
|
gpio01: i2c-scl
|
|
|
|
gpio02: om5610-data
|
|
|
|
gpio03: om5610-clk
|
|
|
|
gpio04: om5610-wre
|
|
|
|
gpio05: om5610-stereo
|
|
|
|
gpio06: rds6588-davn
|
|
|
|
gpio07: Pin 7 n.c.
|
|
|
|
gpio08: nIOW
|
|
|
|
gpio09+10: nIOR, nSEL ?? (bt878)
|
|
|
|
gpio09: nIOR (bt848)
|
|
|
|
gpio10: nSEL (bt848)
|
|
|
|
Sound Routing:
|
|
|
|
gpio16: u2-A0 (1st 4052bt)
|
|
|
|
gpio17: u2-A1
|
|
|
|
gpio18: u2-nEN
|
|
|
|
gpio19: u4-A0 (2nd 4052)
|
|
|
|
gpio20: u4-A1
|
|
|
|
u4-nEN - GND
|
|
|
|
Btspy:
|
|
|
|
00000 : Cdrom (internal audio input)
|
|
|
|
10000 : ext. Video audio input
|
|
|
|
20000 : TV Mono
|
|
|
|
a0000 : TV Mono/2
|
|
|
|
1a0000 : TV Stereo
|
|
|
|
30000 : Radio
|
|
|
|
40000 : Mute
|
2005-09-10 03:03:39 +07:00
|
|
|
*/
|
2005-11-09 12:36:51 +07:00
|
|
|
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PXC200] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */
|
|
|
|
.name = "Imagenation PXC200",
|
|
|
|
.video_inputs = 5,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1, /* was: 4 */
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.muxsel_hook = PXC200_muxsel,
|
|
|
|
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_FLYVIDEO_98] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Lifeview FlyVideo 98 LR50",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1800, /* 0x8dfe00 */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0x0800, 0x1000, 0x1000 },
|
|
|
|
.gpiomute = 0x1800,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_IPROTV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Formac iProTV, Formac ProTV I (bt848)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 1, 0, 0, 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x20 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_INTEL_C_S_PCI] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Intel Create and Share PCI/ Smart Video Recorder III",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TERRATVALUE] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Terratec TerraTValue Version Bt878",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xffff00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x500, 0, 0x300, 0x900 },
|
|
|
|
.gpiomute = 0x900,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_WINFAST2000] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Leadtek WinFast 2000/ WinFast 2000 XP",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
/* TV, CVid, SVid, CVid over SVid connector */
|
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1, 0),
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Alexander Varakin <avarakin@hotmail.com> [stereo version] */
|
|
|
|
.gpiomask = 0xb33000,
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x122000,0x1000,0x0000,0x620000 },
|
|
|
|
.gpiomute = 0x800000,
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Audio Routing for "WinFast 2000 XP" (no tv stereo !)
|
|
|
|
gpio23 -- hef4052:nEnable (0x800000)
|
|
|
|
gpio12 -- hef4052:A1
|
|
|
|
gpio13 -- hef4052:A0
|
|
|
|
0x0000: external audio
|
|
|
|
0x1000: FM
|
|
|
|
0x2000: TV
|
|
|
|
0x3000: n.c.
|
|
|
|
Note: There exists another variant "Winfast 2000" with tv stereo !?
|
|
|
|
Note: eeprom only contains FF and pci subsystem id 107d:6606
|
|
|
|
*/
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL, /* default for now, gpio reads BFFF06 for Pal bg+dk */
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= winfast2000_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
.has_remote = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_CHRONOS_VS2] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 3, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1800,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0x800, 0x1000, 0x1000 },
|
|
|
|
.gpiomute = 0x1800,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x24 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TYPHOON_TVIEW] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 3, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1800,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0x800, 0x1000, 0x1000 },
|
|
|
|
.gpiomute = 0x1800,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PXELVWPLTVPRO] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Prolink PixelView PlayTV pro",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xff,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x21, 0x20, 0x24, 0x2c },
|
|
|
|
.gpiomute = 0x29,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MAGICTVIEW063] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Askey CPH06X TView99",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x551e00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x551400, 0x551200, 0, 0 },
|
|
|
|
.gpiomute = 0x551c00,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL_I,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PINNACLE] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Pinnacle PCTV Studio/Rave",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x03000F,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 2, 0xd0001, 0, 0 },
|
|
|
|
.gpiomute = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x28 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_STB2] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 4, 0, 2, 3 },
|
|
|
|
.gpiomute = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.tuner_type = TUNER_PHILIPS_NTSC,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_AVPHONE98] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "AVerMedia TVPhone 98",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 4, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 15,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 13, 4, 11, 7 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 1,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= avermedia_tvphone_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PV951] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "ProVideo PV951", /* pic16c54 */
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0},
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL_I,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ONAIR_TV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Little OnAir TV",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xe00b,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0xff9ff6, 0xff9ff6, 0xff1ff7, 0 },
|
|
|
|
.gpiomute = 0xff3ffc,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x2c ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_SIGMA_TVII_FM] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Sigma TVII-FM",
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 3,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 1, 1, 0, 2 },
|
|
|
|
.gpiomute = 3,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_NONE,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MATRIX_VISION2] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "MATRIX-Vision MV-Delta 2",
|
|
|
|
.video_inputs = 5,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ZOLTRIX_GENIE] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Zoltrix Genie TV/FM",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xbcf03f,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0xbc803f, 0xbc903f, 0xbcb03f, 0 },
|
|
|
|
.gpiomute = 0xbcb03f,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_TEMIC_4039FR5_NTSC,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TERRATVRADIO] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Terratec TV/Radio+",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x70000,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x20000, 0x30000, 0x10000, 0 },
|
|
|
|
.gpiomute = 0x40000,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_35,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL_I,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x30 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_DYNALINK] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Askey CPH03x/ Dynalink Magic TView",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 15,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = {2,0,0,0 },
|
|
|
|
.gpiomute = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_GVBCTV3PCI] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "IODATA GV-BCTV3/PCI",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x010f00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = {0x10000, 0, 0x10000, 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_ALPS_TSHC6_NTSC,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= gvbctv3pci_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PXELVWPLTVPAK] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP",
|
|
|
|
.video_inputs = 5,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
.has_dig_in = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0xAA0000,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .digital_mode= DIGITAL_MODE_CAMERA, */
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x20000, 0, 0x80000, 0x80000 },
|
|
|
|
.gpiomute = 0xa8000,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL_I,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
|
|
|
/* GPIO wiring: (different from Rev.4C !)
|
|
|
|
GPIO17: U4.A0 (first hef4052bt)
|
|
|
|
GPIO19: U4.A1
|
|
|
|
GPIO20: U5.A1 (second hef4052bt)
|
|
|
|
GPIO21: U4.nEN
|
|
|
|
GPIO22: BT832 Reset Line
|
|
|
|
GPIO23: A5,A0, U5,nEN
|
|
|
|
Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22
|
|
|
|
*/
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_EAGLE] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Eagle Wireless Capricorn2 (bt878A)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 0, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 3 },
|
|
|
|
.gpiomute = 4,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET /* TUNER_ALPS_TMDH2_NTSC */,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x34 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PINNACLEPRO] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* David Härdeman <david@2gen.com> */
|
|
|
|
.name = "Pinnacle PCTV Studio Pro",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 0x03000F,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 1, 0xd0001, 0, 0 },
|
|
|
|
.gpiomute = 10,
|
2005-11-09 12:36:51 +07:00
|
|
|
/* sound path (5 sources):
|
|
|
|
MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable)
|
|
|
|
0= ext. Audio IN
|
|
|
|
1= from MUX2
|
|
|
|
2= Mono TV sound from Tuner
|
|
|
|
3= not connected
|
|
|
|
MUX2 (mask 0x30000):
|
|
|
|
0,2,3= from MSP34xx
|
|
|
|
1= FM stereo Radio from Tuner */
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TVIEW_RDS_FM] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Claas Langbehn <claas@bigfoot.com>,
|
|
|
|
Sven Grothklags <sven@upb.de> */
|
|
|
|
.name = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 3, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1c,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0x10, 8 },
|
|
|
|
.gpiomute = 4,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_LIFETEC_9415] = {
|
2007-10-20 04:21:04 +07:00
|
|
|
/* Tim Röstermundt <rosterm@uni-muenster.de>
|
2005-11-09 12:36:51 +07:00
|
|
|
in de.comp.os.unix.linux.hardware:
|
|
|
|
options bttv card=0 pll=1 radio=1 gpiomask=0x18e0
|
2006-03-19 07:31:00 +07:00
|
|
|
gpiomux =0x44c71f,0x44d71f,0,0x44d71f,0x44dfff
|
2005-11-09 12:36:51 +07:00
|
|
|
options tuner type=5 */
|
|
|
|
.name = "Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x18e0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x0000,0x0800,0x1000,0x1000 },
|
|
|
|
.gpiomute = 0x18e0,
|
2005-11-09 12:36:51 +07:00
|
|
|
/* For cards with tda9820/tda9821:
|
|
|
|
0x0000: Tuner normal stereo
|
|
|
|
0x0080: Tuner A2 SAP (second audio program = Zweikanalton)
|
|
|
|
0x0880: Tuner A2 stereo */
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_BESTBUY_EASYTV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Miguel Angel Alvarez <maacruz@navegalia.com>
|
|
|
|
old Easy TV BT848 version (model CPH031) */
|
|
|
|
.name = "Askey CPH031/ BESTBUY Easy TV",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xF,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 2, 0, 0, 0 },
|
|
|
|
.gpiomute = 10,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_TEMIC_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x38 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_FLYVIDEO_98FM] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Gordon Heydon <gjheydon@bigfoot.com ('98) */
|
|
|
|
.name = "Lifeview FlyVideo 98FM LR50",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 3, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1800,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0x800, 0x1000, 0x1000 },
|
|
|
|
.gpiomute = 0x1800,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
/* This is the ultimate cheapo capture card
|
|
|
|
* just a BT848A on a small PCB!
|
|
|
|
* Steve Hosgood <steve@equiinet.com> */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_GRANDTEC] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "GrandTec 'Grand Video Capture' (Bt848)",
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_35,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ASKEY_CPH060] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Daniel Herrington <daniel.herrington@home.com> */
|
|
|
|
.name = "Askey CPH060/ Phoebe TV Master Only (No FM)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xe00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x400, 0x400, 0x400, 0x400 },
|
|
|
|
.gpiomute = 0x800,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_TEMIC_4036FY5_NTSC,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ASKEY_CPH03X] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Matti Mottus <mottus@physic.ut.ee> */
|
|
|
|
.name = "Askey CPH03x TV Capturer",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x03000F,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 2, 0, 0, 0 },
|
|
|
|
.gpiomute = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_TEMIC_PAL,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2009-08-23 00:43:50 +07:00
|
|
|
.has_remote = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x3c ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MM100PCTV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Philip Blundell <philb@gnu.org> */
|
|
|
|
.name = "Modular Technology MM100PCTV",
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 2, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 11,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 2, 0, 0, 1 },
|
|
|
|
.gpiomute = 8,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_35,
|
|
|
|
.tuner_type = TUNER_TEMIC_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_GMV1] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Adrian Cox <adrian@humboldt.co.uk */
|
2005-11-09 12:37:43 +07:00
|
|
|
.name = "AG Electronics GMV1",
|
2005-11-09 12:36:51 +07:00
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:37:43 +07:00
|
|
|
.svhs = 1,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0xF,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
2005-11-09 12:37:43 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_BESTBUY_EASYTV2] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Miguel Angel Alvarez <maacruz@navegalia.com>
|
|
|
|
new Easy TV BT878 version (model CPH061)
|
|
|
|
special thanks to Informatica Mieres for providing the card */
|
|
|
|
.name = "Askey CPH061/ BESTBUY Easy TV (bt878)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 2, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xFF,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 1, 0, 4, 4 },
|
|
|
|
.gpiomute = 9,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ATI_TVWONDER] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Lukas Gebauer <geby@volny.cz> */
|
|
|
|
.name = "ATI TV-Wonder",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xf03f,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0xbffe, 0, 0xbfff, 0 },
|
|
|
|
.gpiomute = 0xbffe,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x40 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ATI_TVWONDERVE] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Lukas Gebauer <geby@volny.cz> */
|
|
|
|
.name = "ATI TV-Wonder VE",
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 1, 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_FLYVIDEO2000] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* DeeJay <deejay@westel900.net (2000S) */
|
|
|
|
.name = "Lifeview FlyVideo 2000S LR90",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 3, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x18e0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Radio changed from 1e80 to 0x800 to make
|
|
|
|
FlyVideo2000S in .hu happy (gm)*/
|
|
|
|
/* -dk-???: set mute=0x1800 for tda9874h daughterboard */
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x0000,0x0800,0x1000,0x1000 },
|
|
|
|
.gpiomute = 0x1800,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= fv2000s_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TERRATVALUER] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Terratec TValueRadio",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0xffff00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x500, 0x500, 0x300, 0x900 },
|
|
|
|
.gpiomute = 0x900,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_GVBCTV4PCI] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* TANAKA Kei <peg00625@nifty.com> */
|
|
|
|
.name = "IODATA GV-BCTV4/PCI",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x010f00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = {0x10000, 0, 0x10000, 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_SHARP_2U5JF5540_NTSC,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= gvbctv3pci_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x44 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_VOODOOTV_FM] = {
|
2007-06-25 23:02:16 +07:00
|
|
|
.name = "3Dfx VoodooTV FM (Euro)",
|
|
|
|
/* try "insmod msp3400 simple=0" if you have
|
|
|
|
* sound problems with this card. */
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
2007-06-25 23:02:16 +07:00
|
|
|
.gpiomask = 0x4f8a00,
|
|
|
|
/* 0x100000: 1=MSP enabled (0=disable again)
|
|
|
|
* 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */
|
|
|
|
.gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff },
|
|
|
|
.gpiomute = 0x947fff,
|
|
|
|
/* tvtuner, radio, external,internal, mute, stereo
|
|
|
|
* tuner, Composit, SVid, Composit-on-Svid-adapter */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0, 1),
|
2007-06-25 23:02:16 +07:00
|
|
|
.tuner_type = TUNER_MT2032,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
|
|
|
[BTTV_BOARD_VOODOOTV_200] = {
|
|
|
|
.name = "VoodooTV 200 (USA)",
|
2005-11-09 12:36:51 +07:00
|
|
|
/* try "insmod msp3400 simple=0" if you have
|
|
|
|
* sound problems with this card. */
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0x4f8a00,
|
|
|
|
/* 0x100000: 1=MSP enabled (0=disable again)
|
|
|
|
* 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff },
|
|
|
|
.gpiomute = 0x947fff,
|
2005-11-09 12:36:51 +07:00
|
|
|
/* tvtuner, radio, external,internal, mute, stereo
|
|
|
|
* tuner, Composit, SVid, Composit-on-Svid-adapter */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_MT2032,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_AIMMS] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Philip Blundell <pb@nexus.co.uk> */
|
|
|
|
.name = "Active Imaging AIMMS",
|
|
|
|
.video_inputs = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2),
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PV_BT878P_PLUS] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Tomasz Pyra <hellfire@sedez.iq.pl> */
|
|
|
|
.name = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 4, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 15,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */
|
|
|
|
.gpiomute = 13,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_LG_PAL_I_FM,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
|
|
|
/* GPIO wiring:
|
|
|
|
GPIO0: U4.A0 (hef4052bt)
|
|
|
|
GPIO1: U4.A1
|
|
|
|
GPIO2: U4.A1 (second hef4052bt)
|
|
|
|
GPIO3: U4.nEN, U5.A0, A5.nEN
|
|
|
|
GPIO8-15: vrd866b ?
|
|
|
|
*/
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_FLYVIDEO98EZ] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Lifeview FlyVideo 98EZ (capture only) LR51",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
/* AV1, AV2, SVHS, CVid adapter on SVHS */
|
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.no_msp34xx = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x48 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PV_BT878P_9B] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Dariusz Kowalewski <darekk@automex.pl> */
|
|
|
|
.name = "Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x3f,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x01, 0x00, 0x03, 0x03 },
|
|
|
|
.gpiomute = 0x09,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= pvbt878p9b_audio, /* Note: not all cards have stereo */
|
2005-11-09 12:36:51 +07:00
|
|
|
.has_radio = 1, /* Note: not all cards have radio */
|
|
|
|
.has_remote = 1,
|
|
|
|
/* GPIO wiring:
|
|
|
|
GPIO0: A0 hef4052
|
|
|
|
GPIO1: A1 hef4052
|
|
|
|
GPIO3: nEN hef4052
|
|
|
|
GPIO8-15: vrd866b
|
|
|
|
GPIO20,22,23: R30,R29,R28
|
|
|
|
*/
|
|
|
|
},
|
2011-10-26 05:43:55 +07:00
|
|
|
[BTTV_BOARD_SENSORAY311_611] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Clay Kunz <ckunz@mail.arc.nasa.gov> */
|
2011-10-26 05:43:55 +07:00
|
|
|
/* you must jumper JP5 for the 311 card (PC/104+) to work */
|
|
|
|
.name = "Sensoray 311/611",
|
2005-11-09 12:36:51 +07:00
|
|
|
.video_inputs = 5,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 4,
|
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_RV605] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Miguel Freitas <miguel@cetuc.puc-rio.br> */
|
|
|
|
.name = "RemoteVision MX (RV605)",
|
|
|
|
.video_inputs = 16,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0x00,
|
|
|
|
.gpiomask2 = 0x07ff,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3),
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.muxsel_hook = rv605_muxsel,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_POWERCLR_MTV878] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Powercolor MTV878/ MTV878R/ MTV878F",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 2, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x1C800F, /* Bit0-2: Audio select, 8-12:remote control 14:remote valid 15:remote reset */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 2 },
|
|
|
|
.gpiomute = 4,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x4c ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_WINDVR] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Masaki Suzuki <masaki@btree.org> */
|
|
|
|
.name = "Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x140007,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 3 },
|
|
|
|
.gpiomute = 4,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_NTSC,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= windvr_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_GRANDTEC_MULTI] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "GrandTec Multi Capture Card (Bt878)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_KWORLD] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 3, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
/* Tuner, SVid, SVHS, SVid to SVHS connector */
|
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 4, 4 },/* Yes, this tuner uses the same audio output for TV and FM radio!
|
2005-11-09 12:36:51 +07:00
|
|
|
* This card lacks external Audio In, so we mute it on Ext. & Int.
|
|
|
|
* The PCB can take a sbx1637/sbx1673, wiring unknown.
|
|
|
|
* This card lacks PCI subsystem ID, sigh.
|
2006-03-19 07:31:00 +07:00
|
|
|
* gpiomux =1: lower volume, 2+3: mute
|
2005-11-09 12:36:51 +07:00
|
|
|
* btwincap uses 0x80000/0x80003
|
|
|
|
*/
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomute = 4,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
/* Samsung TCPA9095PC27A (BG+DK), philips compatible, w/FM, stereo and
|
|
|
|
radio signal strength indicators work fine. */
|
|
|
|
.has_radio = 1,
|
|
|
|
/* GPIO Info:
|
|
|
|
GPIO0,1: HEF4052 A0,A1
|
|
|
|
GPIO2: HEF4052 nENABLE
|
|
|
|
GPIO3-7: n.c.
|
|
|
|
GPIO8-13: IRDC357 data0-5 (data6 n.c. ?) [chip not present on my card]
|
|
|
|
GPIO14,15: ??
|
|
|
|
GPIO16-21: n.c.
|
|
|
|
GPIO22,23: ??
|
|
|
|
?? : mtu8b56ep microcontroller for IR (GPIO wiring unknown)*/
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_DSP_TCVIDEO] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Arthur Tetzlaff-Deas, DSP Design Ltd <software@dspdesign.com> */
|
|
|
|
.name = "DSP Design TCVIDEO",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x50 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_HAUPPAUGEPVR] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Hauppauge WinTV PVR",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 0, 1, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
|
|
|
|
.gpiomask = 7,
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = {7},
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_GVBCTV5PCI] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "IODATA GV-BCTV5/PCI",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x0f0f80,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = {0x030000, 0x010000, 0, 0 },
|
|
|
|
.gpiomute = 0x020000,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_NTSC_M,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= gvbctv5pci_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY1x0] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 100/150 (878)", /* 0x1(2|3)-45C6-C1 */
|
|
|
|
.video_inputs = 4, /* id-inputs-clock */
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 2, 0, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY1x0_848] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 100/150 (848)", /* 0x04-54C0-C1 & older boards */
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x54 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY101_848] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 101 (848)", /* 0x05-40C0-C1 */
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY1x1] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 101/151", /* 0x1(4|5)-0004-C4 */
|
|
|
|
.video_inputs = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY1x1_SVID] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 101/151 w/ svid", /* 0x(16|17|20)-00C4-C1 */
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(0, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY2xx] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 200/201/250/251", /* 0x1(8|9|E|F)-0004-C4 */
|
|
|
|
.video_inputs = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x58 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY2x0_SVID] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 200/250", /* 0x1(A|B)-00C4-C1 */
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(0, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY2x0] = {
|
2006-05-26 12:13:15 +07:00
|
|
|
.name = "Osprey 210/220/230", /* 0x1(A|B)-04C0-C1 */
|
2005-11-09 12:36:51 +07:00
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY500] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 500", /* 500 */
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY540] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 540", /* 540 */
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x5C ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_OSPREY2000] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Osprey 2000", /* 2000 */
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1, /* must avoid, conflicts with the bt860 */
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_IDS_EAGLE] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* M G Berberich <berberic@forwiss.uni-passau.de> */
|
|
|
|
.name = "IDS Eagle",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2),
|
2005-11-09 12:36:51 +07:00
|
|
|
.muxsel_hook = eagle_muxsel,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PINNACLESAT] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Pinnacle PCTV Sat",
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.no_gpioirq = 1,
|
|
|
|
.has_dvb = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_FORMAC_PROTV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Formac ProTV II (bt878)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 2,
|
|
|
|
/* TV, Comp1, Composite over SVID con, SVID */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 2, 2, 0, 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
/* sound routing:
|
|
|
|
GPIO=0x00,0x01,0x03: mute (?)
|
|
|
|
0x02: both TV and radio (tuner: FM1216/I)
|
|
|
|
The card has onboard audio connectors labeled "cdrom" and "board",
|
|
|
|
not soldered here, though unknown wiring.
|
|
|
|
Card lacks: external audio in, pci subsystem id.
|
2005-09-10 03:03:39 +07:00
|
|
|
*/
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x60 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MACHTV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "MachTV",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 3},
|
|
|
|
.gpiomute = 4,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2005-11-09 12:37:03 +07:00
|
|
|
.pll = PLL_28,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_EURESYS_PICOLO] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Euresys Picolo",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 0, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PV150] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Luc Van Hoeylandt <luc@e-magic.be> */
|
|
|
|
.name = "ProVideo PV150", /* 0x4f */
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_AD_TVK503] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Hiroshi Takekawa <sian@big.or.jp> */
|
|
|
|
/* This card lacks subsystem ID */
|
|
|
|
.name = "AD-TVK503", /* 0x63 */
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x001e8007,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Tuner, Radio, external, internal, off, on */
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x08, 0x0f, 0x0a, 0x08 },
|
|
|
|
.gpiomute = 0x0f,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_NTSC,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2006-08-26 02:53:04 +07:00
|
|
|
.audio_mode_gpio= adtvk503_audio,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x64 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_HERCULES_SM_TV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Hercules Smart TV Stereo",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
/* Notes:
|
|
|
|
- card lacks subsystem ID
|
|
|
|
- stereo variant w/ daughter board with tda9874a @0xb0
|
|
|
|
- Audio Routing:
|
|
|
|
always from tda9874 independent of GPIO (?)
|
|
|
|
external line in: unknown
|
|
|
|
- Other chips: em78p156elp @ 0x96 (probably IR remote control)
|
|
|
|
hef4053 (instead 4052) for unknown function
|
|
|
|
*/
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PACETV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Pace TV & Radio Card",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
/* Tuner, CVid, SVid, CVid over SVid connector */
|
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0,
|
|
|
|
.no_tda7432 = 1,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL_I,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
/* Bt878, Bt832, FI1246 tuner; no pci subsystem id
|
|
|
|
only internal line out: (4pin header) RGGL
|
|
|
|
Radio must be decoded by msp3410d (not routed through)*/
|
|
|
|
/*
|
|
|
|
.digital_mode = DIGITAL_MODE_CAMERA, todo!
|
|
|
|
*/
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_IVC200] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Chris Willing <chris@vislab.usyd.edu.au> */
|
|
|
|
.name = "IVC-200",
|
|
|
|
.video_inputs = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS,
|
2009-01-23 09:07:26 +07:00
|
|
|
.gpiomask = 0xdf,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2),
|
2009-01-23 09:07:26 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
|
|
|
[BTTV_BOARD_IVCE8784] = {
|
|
|
|
.name = "IVCE-8784",
|
|
|
|
.video_inputs = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2009-01-23 09:07:26 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0xdf,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_XGUARD] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Grand X-Guard / Trust 814PCI",
|
|
|
|
.video_inputs = 16,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.gpiomask2 = 0xff,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2,2,2,2, 3,3,3,3, 1,1,1,1, 0,0,0,0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.muxsel_hook = xguard_muxsel,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x68 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_NEBULA_DIGITV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Nebula Electronics DigiTV",
|
|
|
|
.video_inputs = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_dvb = 1,
|
2005-11-14 07:07:52 +07:00
|
|
|
.has_remote = 1,
|
|
|
|
.gpiomask = 0x1b,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_gpioirq = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PV143] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Jorge Boncompte - DTI2 <jorge@dti2.net> */
|
|
|
|
.name = "ProVideo PV143",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2008-11-22 05:00:55 +07:00
|
|
|
[BTTV_BOARD_VD009X1_VD011_MINIDIN] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* M.Klahr@phytec.de */
|
2008-11-22 05:00:55 +07:00
|
|
|
.name = "PHYTEC VD-009-X1 VD-011 MiniDIN (bt878)",
|
2005-11-09 12:36:51 +07:00
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 0x00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2008-11-22 05:00:55 +07:00
|
|
|
[BTTV_BOARD_VD009X1_VD011_COMBI] = {
|
|
|
|
.name = "PHYTEC VD-009-X1 VD-011 Combi (bt878)",
|
2005-11-09 12:36:51 +07:00
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 0x00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x6c ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_VD009_MINIDIN] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "PHYTEC VD-009 MiniDIN (bt878)",
|
|
|
|
.video_inputs = 10,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 9,
|
|
|
|
.gpiomask = 0x00,
|
2009-01-29 07:32:59 +07:00
|
|
|
.gpiomask2 = 0x03, /* used for external vodeo mux */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 0),
|
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel_hook = phytec_muxsel,
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_VD009_COMBI] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "PHYTEC VD-009 Combi (bt878)",
|
|
|
|
.video_inputs = 10,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 9,
|
|
|
|
.gpiomask = 0x00,
|
2009-01-29 07:32:59 +07:00
|
|
|
.gpiomask2 = 0x03, /* used for external vodeo mux */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
|
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel_hook = phytec_muxsel,
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_IVC100] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "IVC-100",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0xdf,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_IVC120] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* IVC-120G - Alan Garfield <alan@fromorbit.com> */
|
|
|
|
.name = "IVC-120G",
|
|
|
|
.video_inputs = 16,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS, /* card has no svhs */
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.gpiomask = 0x00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.muxsel_hook = ivc120_muxsel,
|
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x70 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PC_HDTV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "pcHDTV HD-2000 TV",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2008-04-23 00:46:05 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_FCV1236D,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_dvb = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TWINHAN_DST] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Twinhan DST + clones",
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_video = 1,
|
|
|
|
.has_dvb = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_WINFASTVC100] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Winfast VC100",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
/* Vid In, SVid In, Vid over SVid in connector */
|
|
|
|
.muxsel = MUXSEL(3, 1, 1, 3),
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TEV560] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Teppro TEV-560/InterVision IV-560",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 3,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 1, 1, 1, 1 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_35,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x74 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_SIMUS_GVC1100] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "SIMUS GVC1100",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2),
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0x3F,
|
|
|
|
.muxsel_hook = gvc1100_muxsel,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_NGSTV_PLUS] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Carlos Silva r3pek@r3pek.homelinux.org || card 0x75 */
|
|
|
|
.name = "NGS NGSTV+",
|
|
|
|
.video_inputs = 3,
|
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x008007,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 },
|
|
|
|
.gpiomute = 0x000003,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_LMLBT4] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* http://linuxmedialabs.com */
|
|
|
|
.name = "LMLBT4",
|
|
|
|
.video_inputs = 4, /* IN1,IN2,IN3,IN4 */
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TEKRAM_M205] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Helmroos Harri <harri.helmroos@pp.inet.fi> */
|
|
|
|
.name = "Tekram M205 PRO",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x68,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x68, 0x68, 0x61, 0x61 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x78 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_CONTVFMI] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Javier Cendan Ares <jcendan@lycos.es> */
|
|
|
|
/* bt878 TV + FM without subsystem ID */
|
|
|
|
.name = "Conceptronic CONTVFMi",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x008007,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 2 },
|
|
|
|
.gpiomute = 3,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PICOLO_TETRA_CHIP] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/*Eric DEBIEF <debief@telemsa.com>*/
|
2011-03-31 08:57:33 +07:00
|
|
|
/*EURESYS Picolo Tetra : 4 Conexant Fusion 878A, no audio, video input set with analog multiplexers GPIO controlled*/
|
|
|
|
/* adds picolo_tetra_muxsel(), picolo_tetra_init(), the following declaration strucure, and #define BTTV_BOARD_PICOLO_TETRA_CHIP*/
|
2005-11-09 12:36:51 +07:00
|
|
|
/*0x79 in bttv.h*/
|
|
|
|
.name = "Euresys Picolo Tetra",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0,
|
|
|
|
.gpiomask2 = 0x3C<<16,/*Set the GPIO[18]->GPIO[21] as output pin.==> drive the video inputs through analog multiplexers*/
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
/*878A input is always MUX0, see above.*/
|
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.muxsel_hook = picolo_tetra_muxsel,/*Required as it doesn't follow the classic input selection policy*/
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_SPIRIT_TV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Spirit TV Tuner from http://spiritmodems.com.au */
|
|
|
|
/* Stafford Goodsell <surge@goliath.homeunix.org> */
|
|
|
|
.name = "Spirit TV Tuner",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x0000000f,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x02, 0x00, 0x00, 0x00 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_TEMIC_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_AVDVBT_771] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Wolfram Joost <wojo@frokaschwei.de> */
|
|
|
|
.name = "AVerMedia AVerTV DVB-T 771",
|
|
|
|
.video_inputs = 2,
|
|
|
|
.svhs = 1,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 3),
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_dvb = 1,
|
|
|
|
.no_gpioirq = 1,
|
|
|
|
.has_remote = 1,
|
|
|
|
},
|
|
|
|
/* ---- card 0x7c ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_AVDVBT_761] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Matt Jesson <dvb@jesson.eclipse.co.uk> */
|
2005-11-09 12:36:52 +07:00
|
|
|
/* Based on the Nebula card data - added remote and new card number - BTTV_BOARD_AVDVBT_761, see also ir-kbd-gpio.c */
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "AverMedia AverTV DVB-T 761",
|
|
|
|
.video_inputs = 2,
|
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 1, 2, 0), /* Comp0, S-Video, ?, ? */
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_dvb = 1,
|
|
|
|
.no_gpioirq = 1,
|
|
|
|
.has_remote = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MATRIX_VISIONSQ] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* andre.schwarz@matrix-vision.de */
|
2009-01-29 07:32:59 +07:00
|
|
|
.name = "MATRIX Vision Sigma-SQ",
|
|
|
|
.video_inputs = 16,
|
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.gpiomask = 0x0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3),
|
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel_hook = sigmaSQ_muxsel,
|
|
|
|
.gpiomux = { 0 },
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_MATRIX_VISIONSLC] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* andre.schwarz@matrix-vision.de */
|
2009-01-29 07:32:59 +07:00
|
|
|
.name = "MATRIX Vision Sigma-SLC",
|
|
|
|
.video_inputs = 4,
|
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.gpiomask = 0x0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2),
|
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel_hook = sigmaSLC_muxsel,
|
|
|
|
.gpiomux = { 0 },
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
/* BTTV_BOARD_APAC_VIEWCOMP */
|
|
|
|
[BTTV_BOARD_APAC_VIEWCOMP] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Attila Kondoros <attila.kondoros@chello.hu> */
|
|
|
|
/* bt878 TV + FM 0x00000000 subsystem ID */
|
|
|
|
.name = "APAC Viewcomp 878(AMAX)",
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0xFF,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 2, 0, 0, 0 },
|
|
|
|
.gpiomute = 10,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1, /* miniremote works, see ir-kbd-gpio.c */
|
|
|
|
.has_radio = 1, /* not every card has radio */
|
|
|
|
},
|
|
|
|
|
|
|
|
/* ---- card 0x80 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_DVICO_DVBT_LITE] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Chris Pascoe <c.pascoe@itee.uq.edu.au> */
|
|
|
|
.name = "DViCO FusionHDTV DVB-T Lite",
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.no_video = 1,
|
|
|
|
.has_dvb = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_VGEAR_MYVCD] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Steven <photon38@pchome.com.tw> */
|
|
|
|
.name = "V-Gear MyVCD",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x3f,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = {0x31, 0x31, 0x31, 0x31 },
|
|
|
|
.gpiomute = 0x31,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_NTSC_M,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 0,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_SUPER_TV] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Rick C <cryptdragoon@gmail.com> */
|
|
|
|
.name = "Super TV Tuner",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_NTSC,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.gpiomask = 0x008007,
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 0x000001,0,0 },
|
2005-11-09 12:36:51 +07:00
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_TIBET_CS16] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Chris Fanning <video4linux@haydon.net> */
|
|
|
|
.name = "Tibet Systems 'Progress DVR' CS16",
|
|
|
|
.video_inputs = 16,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.muxsel_hook = tibetCS16_muxsel,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_KODICOM_4400R] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Bill Brack <wbrack@mmm.com.hk> */
|
|
|
|
/*
|
|
|
|
* Note that, because of the card's wiring, the "master"
|
|
|
|
* BT878A chip (i.e. the one which controls the analog switch
|
|
|
|
* and must use this card type) is the 2nd one detected. The
|
|
|
|
* other 3 chips should use card type 0x85, whose description
|
|
|
|
* follows this one. There is a EEPROM on the card (which is
|
|
|
|
* connected to the I2C of one of those other chips), but is
|
|
|
|
* not currently handled. There is also a facility for a
|
|
|
|
* "monitor", which is also not currently implemented.
|
|
|
|
*/
|
|
|
|
.name = "Kodicom 4400R (master)",
|
|
|
|
.video_inputs = 16,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
/* GPIO bits 0-9 used for analog switch:
|
|
|
|
* 00 - 03: camera selector
|
|
|
|
* 04 - 06: channel (controller) selector
|
|
|
|
* 07: data (1->on, 0->off)
|
|
|
|
* 08: strobe
|
|
|
|
* 09: reset
|
|
|
|
* bit 16 is input from sync separator for the channel
|
|
|
|
*/
|
|
|
|
.gpiomask = 0x0003ff,
|
|
|
|
.no_gpioirq = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.muxsel_hook = kodicom4400r_muxsel,
|
|
|
|
},
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_KODICOM_4400R_SL] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Bill Brack <wbrack@mmm.com.hk> */
|
|
|
|
/* Note that, for reasons unknown, the "master" BT878A chip (i.e. the
|
|
|
|
* one which controls the analog switch, and must use the card type)
|
|
|
|
* is the 2nd one detected. The other 3 chips should use this card
|
|
|
|
* type
|
|
|
|
*/
|
|
|
|
.name = "Kodicom 4400R (slave)",
|
|
|
|
.video_inputs = 16,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2009-01-29 07:32:59 +07:00
|
|
|
.svhs = NO_SVHS,
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0x010000,
|
|
|
|
.no_gpioirq = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3),
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.muxsel_hook = kodicom4400r_muxsel,
|
|
|
|
},
|
|
|
|
/* ---- card 0x86---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ADLINK_RTV24] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
/* Michael Henson <mhenson@clarityvi.com> */
|
|
|
|
/* Adlink RTV24 with special unlock codes */
|
|
|
|
.name = "Adlink RTV24",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = UNSET,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
|
|
|
/* ---- card 0x87---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE] = {
|
2014-01-30 09:10:11 +07:00
|
|
|
/* Michael Krufky <mkrufky@linuxtv.org> */
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "DViCO FusionHDTV 5 Lite",
|
2006-04-27 11:29:17 +07:00
|
|
|
.tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
2005-11-09 12:37:06 +07:00
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1),
|
2005-11-09 12:36:51 +07:00
|
|
|
.gpiomask = 0x00e00007,
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x00400005, 0, 0x00000001, 0 },
|
|
|
|
.gpiomute = 0x00c00007,
|
2005-11-09 12:36:51 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.has_dvb = 1,
|
|
|
|
},
|
|
|
|
/* ---- card 0x88---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_ACORP_Y878F] = {
|
2006-04-03 17:53:40 +07:00
|
|
|
/* Mauro Carvalho Chehab <mchehab@infradead.org> */
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Acorp Y878F",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x01fe00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x001e00, 0, 0x018000, 0x014000 },
|
|
|
|
.gpiomute = 0x002000,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_YMEC_TVF66T5_B_DFF,
|
|
|
|
.tuner_addr = 0xc1 >>1,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
|
|
|
/* ---- card 0x89 ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_CONCEPTRONIC_CTVFMI2] = {
|
2005-11-09 12:36:51 +07:00
|
|
|
.name = "Conceptronic CTVFMi v2",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:51 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x001c0007,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 2 },
|
|
|
|
.gpiomute = 3,
|
2005-11-09 12:36:51 +07:00
|
|
|
.pll = PLL_28,
|
2005-11-09 12:38:21 +07:00
|
|
|
.tuner_type = TUNER_TENA_9533_DI,
|
2005-11-09 12:36:51 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2005-11-09 12:36:56 +07:00
|
|
|
/* ---- card 0x8a ---------------------------------- */
|
2005-11-09 12:36:52 +07:00
|
|
|
[BTTV_BOARD_PV_BT878P_2E] = {
|
2009-01-29 07:32:59 +07:00
|
|
|
.name = "Prolink Pixelview PV-BT878P+ (Rev.2E)",
|
|
|
|
.video_inputs = 5,
|
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
.has_dig_in = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.gpiomask = 0x01fe00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .digital_mode= DIGITAL_MODE_CAMERA, */
|
|
|
|
.gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 },
|
|
|
|
.gpiomute = 0x12400,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_LG_PAL_FM,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
2005-11-09 12:36:56 +07:00
|
|
|
},
|
|
|
|
/* ---- card 0x8b ---------------------------------- */
|
|
|
|
[BTTV_BOARD_PV_M4900] = {
|
2007-10-20 04:21:04 +07:00
|
|
|
/* Sérgio Fortier <sergiofortier@yahoo.com.br> */
|
2005-11-09 12:36:56 +07:00
|
|
|
.name = "Prolink PixelView PlayTV MPEG2 PV-M4900",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:36:56 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x3f,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0x21, 0x20, 0x24, 0x2c },
|
|
|
|
.gpiomute = 0x29,
|
2005-11-09 12:36:56 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_YMEC_TVF_5533MF,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 1,
|
|
|
|
.has_remote = 1,
|
2005-11-09 12:37:02 +07:00
|
|
|
},
|
2005-11-09 12:37:03 +07:00
|
|
|
/* ---- card 0x8c ---------------------------------- */
|
2007-07-22 07:26:40 +07:00
|
|
|
/* Has four Bt878 chips behind a PCI bridge, each chip has:
|
|
|
|
one external BNC composite input (mux 2)
|
|
|
|
three internal composite inputs (unknown muxes)
|
|
|
|
an 18-bit stereo A/D (CS5331A), which has:
|
|
|
|
one external stereo unblanced (RCA) audio connection
|
|
|
|
one (or 3?) internal stereo balanced (XLR) audio connection
|
|
|
|
input is selected via gpio to a 14052B mux
|
|
|
|
(mask=0x300, unbal=0x000, bal=0x100, ??=0x200,0x300)
|
|
|
|
gain is controlled via an X9221A chip on the I2C bus @0x28
|
|
|
|
sample rate is controlled via gpio to an MK1413S
|
|
|
|
(mask=0x3, 32kHz=0x0, 44.1kHz=0x1, 48kHz=0x2, ??=0x3)
|
|
|
|
There is neither a tuner nor an svideo input. */
|
2005-11-09 12:37:02 +07:00
|
|
|
[BTTV_BOARD_OSPREY440] = {
|
|
|
|
.name = "Osprey 440",
|
2007-07-22 07:26:40 +07:00
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 2, */
|
|
|
|
.svhs = NO_SVHS,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 0, 1), /* 3,0,1 are guesses */
|
2007-07-22 07:26:40 +07:00
|
|
|
.gpiomask = 0x303,
|
|
|
|
.gpiomute = 0x000, /* int + 32kHz */
|
|
|
|
.gpiomux = { 0, 0, 0x000, 0x100},
|
2005-11-09 12:37:02 +07:00
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2005-11-09 12:37:02 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2005-11-09 12:37:38 +07:00
|
|
|
/* ---- card 0x8d ---------------------------------- */
|
|
|
|
[BTTV_BOARD_ASOUND_SKYEYE] = {
|
|
|
|
.name = "Asound Skyeye PCTV",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-09 12:37:38 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 15,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 2, 0, 0, 0 },
|
|
|
|
.gpiomute = 1,
|
2005-11-09 12:37:38 +07:00
|
|
|
.pll = PLL_28,
|
2007-06-29 04:30:36 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_NTSC,
|
2005-11-09 12:37:38 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2005-11-14 07:07:50 +07:00
|
|
|
/* ---- card 0x8e ---------------------------------- */
|
|
|
|
[BTTV_BOARD_SABRENT_TVFM] = {
|
|
|
|
.name = "Sabrent TV-FM (bttv version)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2005-11-14 07:07:50 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x108007,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 100000, 100002, 100002, 100000 },
|
2005-11-14 07:07:50 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_TNF_5335MF,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2006-01-10 00:25:01 +07:00
|
|
|
/* ---- card 0x8f ---------------------------------- */
|
|
|
|
[BTTV_BOARD_HAUPPAUGE_IMPACTVCB] = {
|
|
|
|
.name = "Hauppauge ImpactVCB (bt878)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2006-01-10 00:25:01 +07:00
|
|
|
.gpiomask = 0x0f, /* old: 7 */
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(0, 1, 3, 2), /* Composite 0-3 */
|
2006-01-10 00:25:01 +07:00
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2006-01-10 00:25:01 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2006-01-12 04:40:09 +07:00
|
|
|
[BTTV_BOARD_MACHTV_MAGICTV] = {
|
|
|
|
/* Julian Calaby <julian.calaby@gmail.com>
|
|
|
|
* Slightly different from original MachTV definition (0x60)
|
|
|
|
|
|
|
|
* FIXME: RegSpy says gpiomask should be "0x001c800f", but it
|
|
|
|
* stuffs up remote chip. Bug is a pin on the jaecs is not set
|
|
|
|
* properly (methinks) causing no keyup bits being set */
|
|
|
|
|
|
|
|
.name = "MagicTV", /* rebranded MachTV */
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2006-01-12 04:40:09 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 7,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2006-03-19 07:31:00 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 3 },
|
|
|
|
.gpiomute = 4,
|
2006-01-12 04:40:09 +07:00
|
|
|
.tuner_type = TUNER_TEMIC_4009FR5_PAL,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
.has_remote = 1,
|
|
|
|
},
|
2007-04-03 00:22:39 +07:00
|
|
|
[BTTV_BOARD_SSAI_SECURITY] = {
|
|
|
|
.name = "SSAI Security Video Interface",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(0, 1, 2, 3),
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2007-04-03 00:22:39 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
|
|
|
[BTTV_BOARD_SSAI_ULTRASOUND] = {
|
|
|
|
.name = "SSAI Ultrasound Video Interface",
|
|
|
|
.video_inputs = 2,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2007-04-03 00:22:39 +07:00
|
|
|
.svhs = 1,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 0, 1, 3),
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2007-04-03 00:22:39 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2007-06-28 22:19:20 +07:00
|
|
|
/* ---- card 0x94---------------------------------- */
|
|
|
|
[BTTV_BOARD_DVICO_FUSIONHDTV_2] = {
|
|
|
|
.name = "DViCO FusionHDTV 2",
|
2008-04-23 00:46:05 +07:00
|
|
|
.tuner_type = TUNER_PHILIPS_FCV1236D,
|
2007-06-28 22:19:20 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2007-06-28 22:19:20 +07:00
|
|
|
.svhs = 2,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1),
|
2007-06-28 22:19:20 +07:00
|
|
|
.gpiomask = 0x00e00007,
|
|
|
|
.gpiomux = { 0x00400005, 0, 0x00000001, 0 },
|
|
|
|
.gpiomute = 0x00c00007,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
},
|
2007-10-02 22:23:39 +07:00
|
|
|
/* ---- card 0x95---------------------------------- */
|
|
|
|
[BTTV_BOARD_TYPHOON_TVTUNERPCI] = {
|
|
|
|
.name = "Typhoon TV-Tuner PCI (50684)",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2007-10-02 22:23:39 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x3014f,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2007-10-02 22:23:39 +07:00
|
|
|
.gpiomux = { 0x20001,0x10001, 0, 0 },
|
|
|
|
.gpiomute = 10,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_PHILIPS_PAL_I,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
V4L/DVB (7366): Support for a 16-channel bt878 card
I have what looks like a Geovision GV-600 (or 650) card. It has a large
chip in the middle labeled
CONEXANT
FUSION 878A
25878-13
E345881.1
0312 TAIWAN
It has an audio connector coming out from a chip labeled
ATMEL
0242
AT89C2051-24PI
It is identified as follows on my Debian GNU/Linux Etch (kernel 2.6.18)
...
01:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
01:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
...
01:0a.0 0400: 109e:036e (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dfffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
01:0a.1 0480: 109e:0878 (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dffff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
It was being detected as a GENERIC UNKNOWN CARD both by the 2.6.18
kernel and the latest v4l-dvb drivers, but it did not work at all. The
card has sixteen (16) BNC video inputs, four of them on the board itself
and twelve on three daughter-cards. It has a single bt878 chip, no tuner
and what looks like and audio input. After doing some research I managed
to get only eight channels working by forcing card=125 and those DID NOT
match channels 0-7 on the card, and no audio.
Based on what was working for card=125, I added the card definition
block, added a specific muxsel routine and got the card working fully
with xawtv, where the sixteen channels show up as Composite0 to
Composite15, matching the channel labels in the card and daughter-cards.
I have made no efforts yet to get audio working, but would appreciate
any pointers.
Signed-off-by: Ernesto Hernández-Novich <emhn@usb.ve>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-23 00:45:58 +07:00
|
|
|
[BTTV_BOARD_GEOVISION_GV600] = {
|
|
|
|
/* emhn@usb.ve */
|
2009-01-29 07:32:59 +07:00
|
|
|
.name = "Geovision GV-600",
|
|
|
|
.video_inputs = 16,
|
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.gpiomask = 0x0,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2),
|
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel_hook = geovision_muxsel,
|
|
|
|
.gpiomux = { 0 },
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
V4L/DVB (7366): Support for a 16-channel bt878 card
I have what looks like a Geovision GV-600 (or 650) card. It has a large
chip in the middle labeled
CONEXANT
FUSION 878A
25878-13
E345881.1
0312 TAIWAN
It has an audio connector coming out from a chip labeled
ATMEL
0242
AT89C2051-24PI
It is identified as follows on my Debian GNU/Linux Etch (kernel 2.6.18)
...
01:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
01:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
...
01:0a.0 0400: 109e:036e (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dfffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
01:0a.1 0480: 109e:0878 (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dffff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
It was being detected as a GENERIC UNKNOWN CARD both by the 2.6.18
kernel and the latest v4l-dvb drivers, but it did not work at all. The
card has sixteen (16) BNC video inputs, four of them on the board itself
and twelve on three daughter-cards. It has a single bt878 chip, no tuner
and what looks like and audio input. After doing some research I managed
to get only eight channels working by forcing card=125 and those DID NOT
match channels 0-7 on the card, and no audio.
Based on what was working for card=125, I added the card definition
block, added a specific muxsel routine and got the card working fully
with xawtv, where the sixteen channels show up as Composite0 to
Composite15, matching the channel labels in the card and daughter-cards.
I have made no efforts yet to get audio working, but would appreciate
any pointers.
Signed-off-by: Ernesto Hernández-Novich <emhn@usb.ve>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-23 00:45:58 +07:00
|
|
|
},
|
2008-04-23 00:45:58 +07:00
|
|
|
[BTTV_BOARD_KOZUMI_KTV_01C] = {
|
|
|
|
/* Mauro Lacy <mauro@lacy.com.ar>
|
|
|
|
* Based on MagicTV and Conceptronic CONTVFMi */
|
|
|
|
|
|
|
|
.name = "Kozumi KTV-01C",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2008-04-23 00:45:58 +07:00
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x008007,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
2008-04-23 00:45:58 +07:00
|
|
|
.gpiomux = { 0, 1, 2, 2 }, /* CONTVFMi */
|
|
|
|
.gpiomute = 3, /* CONTVFMi */
|
|
|
|
.tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MK3 */
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
.has_remote = 1,
|
|
|
|
},
|
2008-08-05 20:14:13 +07:00
|
|
|
[BTTV_BOARD_ENLTV_FM_2] = {
|
|
|
|
/* Encore TV Tuner Pro ENL TV-FM-2
|
|
|
|
Mauro Carvalho Chehab <mchehab@infradead.org */
|
|
|
|
.name = "Encore ENL TV-FM-2",
|
|
|
|
.video_inputs = 3,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 1, */
|
2008-08-05 20:14:13 +07:00
|
|
|
.svhs = 2,
|
|
|
|
/* bit 6 -> IR disabled
|
|
|
|
bit 18/17 = 00 -> mute
|
|
|
|
01 -> enable external audio input
|
|
|
|
10 -> internal audio input (mono?)
|
|
|
|
11 -> internal audio input
|
|
|
|
*/
|
|
|
|
.gpiomask = 0x060040,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 3),
|
2008-08-05 20:14:13 +07:00
|
|
|
.gpiomux = { 0x60000, 0x60000, 0x20000, 0x20000 },
|
|
|
|
.gpiomute = 0,
|
|
|
|
.tuner_type = TUNER_TCL_MF02GIP_5N,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.has_radio = 1,
|
|
|
|
.has_remote = 1,
|
2008-11-22 05:00:55 +07:00
|
|
|
},
|
2013-04-12 19:30:29 +07:00
|
|
|
[BTTV_BOARD_VD012] = {
|
2008-11-22 05:00:55 +07:00
|
|
|
/* D.Heer@Phytec.de */
|
|
|
|
.name = "PHYTEC VD-012 (bt878)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
2008-11-22 05:00:55 +07:00
|
|
|
.gpiomask = 0x00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(0, 2, 3, 1),
|
2008-11-22 05:00:55 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2008-11-22 05:00:55 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2013-04-12 19:30:29 +07:00
|
|
|
[BTTV_BOARD_VD012_X1] = {
|
2008-11-22 05:00:55 +07:00
|
|
|
/* D.Heer@Phytec.de */
|
|
|
|
.name = "PHYTEC VD-012-X1 (bt878)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2008-11-22 05:00:55 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 0x00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(2, 3, 1),
|
2008-11-22 05:00:55 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2008-11-22 05:00:55 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2013-04-12 19:30:29 +07:00
|
|
|
[BTTV_BOARD_VD012_X2] = {
|
2008-11-22 05:00:55 +07:00
|
|
|
/* D.Heer@Phytec.de */
|
|
|
|
.name = "PHYTEC VD-012-X2 (bt878)",
|
|
|
|
.video_inputs = 4,
|
2009-01-29 07:32:59 +07:00
|
|
|
/* .audio_inputs= 0, */
|
2008-11-22 05:00:55 +07:00
|
|
|
.svhs = 3,
|
|
|
|
.gpiomask = 0x00,
|
V4L/DVB (10567): bttv: shrink muxsel data in card database
Over half of the card database was used to store muxsel data. 64 bytes
were used to store one 32 bit word for each of up to 16 inputs.
The Bt8x8 only has two bits to control its mux, so muxsel data for 16
inputs will fit into a single 32 bit word. There were a couple cards that
had special muxsel data that didn't fit in two bits, but I cleaned them up
in earlier patches.
Unfortunately, C doesn't allow us to have an array of bit fields. This
makes initializing the structure more of a pain. But with some cpp magic,
we can do it by changing:
.muxsel = { 2, 3, 0, 1 },
.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
Into:
.muxsel = MUXSEL(2, 3, 0, 1),
.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
That's not so bad. MUXSEL is a fancy macro that packs the arguments (of
which there can be one to sixteen!) into a single word two bits at a time.
It's a compile time constant (a variadic function wouldn't be) so we can
use it to initialize the structure. It's important the the arguments to
the macro only be plain decimal integers. Stuff like "0x01", "(2)", or
"MUX3" won't work properly.
I also created an accessor function, bttv_muxsel(btv, input), that gets the
mux bits for the selected input. It makes it cleaner to change the way the
muxsel data is stored.
This patch doesn't change the code size and decreases the datasegment by
9440 bytes.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-29 07:32:59 +07:00
|
|
|
.muxsel = MUXSEL(3, 2, 1),
|
2008-11-22 05:00:55 +07:00
|
|
|
.gpiomux = { 0, 0, 0, 0 }, /* card has no audio */
|
|
|
|
.pll = PLL_28,
|
2009-01-29 07:32:59 +07:00
|
|
|
.tuner_type = TUNER_ABSENT,
|
2008-11-22 05:00:55 +07:00
|
|
|
.tuner_addr = ADDR_UNSET,
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
},
|
2013-04-12 19:30:29 +07:00
|
|
|
[BTTV_BOARD_GEOVISION_GV800S] = {
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
/* Bruno Christo <bchristo@inf.ufsm.br>
|
|
|
|
*
|
|
|
|
* GeoVision GV-800(S) has 4 Conexant Fusion 878A:
|
|
|
|
* 1 audio input per BT878A = 4 audio inputs
|
|
|
|
* 4 video inputs per BT878A = 16 video inputs
|
|
|
|
* This is the first BT878A chip of the GV-800(S). It's the
|
|
|
|
* "master" chip and it controls the video inputs through an
|
|
|
|
* analog multiplexer (a CD22M3494) via some GPIO pins. The
|
|
|
|
* slaves should use card type 0x9e (following this one).
|
|
|
|
* There is a EEPROM on the card which is currently not handled.
|
|
|
|
* The audio input is not working yet.
|
|
|
|
*/
|
|
|
|
.name = "Geovision GV-800(S) (master)",
|
|
|
|
.video_inputs = 4,
|
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.gpiomask = 0xf107f,
|
|
|
|
.no_gpioirq = 1,
|
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2),
|
|
|
|
.pll = PLL_28,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.muxsel_hook = gv800s_muxsel,
|
|
|
|
},
|
2013-04-12 19:30:29 +07:00
|
|
|
[BTTV_BOARD_GEOVISION_GV800S_SL] = {
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
/* Bruno Christo <bchristo@inf.ufsm.br>
|
|
|
|
*
|
|
|
|
* GeoVision GV-800(S) has 4 Conexant Fusion 878A:
|
|
|
|
* 1 audio input per BT878A = 4 audio inputs
|
|
|
|
* 4 video inputs per BT878A = 16 video inputs
|
|
|
|
* The 3 other BT878A chips are "slave" chips of the GV-800(S)
|
|
|
|
* and should use this card type.
|
|
|
|
* The audio input is not working yet.
|
|
|
|
*/
|
|
|
|
.name = "Geovision GV-800(S) (slave)",
|
|
|
|
.video_inputs = 4,
|
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.gpiomask = 0x00,
|
|
|
|
.no_gpioirq = 1,
|
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2),
|
|
|
|
.pll = PLL_28,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.muxsel_hook = gv800s_muxsel,
|
|
|
|
},
|
2009-03-13 07:43:34 +07:00
|
|
|
[BTTV_BOARD_PV183] = {
|
|
|
|
.name = "ProVideo PV183", /* 0x9f */
|
|
|
|
.video_inputs = 2,
|
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.gpiomask = 0,
|
|
|
|
.muxsel = MUXSEL(2, 3),
|
|
|
|
.gpiomux = { 0 },
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2013-04-12 19:30:29 +07:00
|
|
|
/* ---- card 0xa0---------------------------------- */
|
2011-11-06 20:15:47 +07:00
|
|
|
[BTTV_BOARD_TVT_TD3116] = {
|
|
|
|
.name = "Tongwei Video Technology TD-3116",
|
|
|
|
.video_inputs = 16,
|
|
|
|
.gpiomask = 0xc00ff,
|
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2),
|
|
|
|
.muxsel_hook = td3116_muxsel,
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
},
|
2012-07-19 19:36:33 +07:00
|
|
|
[BTTV_BOARD_APOSONIC_WDVR] = {
|
|
|
|
.name = "Aposonic W-DVR",
|
|
|
|
.video_inputs = 4,
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
},
|
2013-04-12 19:30:29 +07:00
|
|
|
[BTTV_BOARD_ADLINK_MPG24] = {
|
|
|
|
/* Adlink MPG24 */
|
|
|
|
.name = "Adlink MPG24",
|
|
|
|
.video_inputs = 1,
|
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.muxsel = MUXSEL(2, 2, 2, 2),
|
|
|
|
.tuner_type = UNSET,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.pll = PLL_28,
|
|
|
|
},
|
2013-04-14 22:39:09 +07:00
|
|
|
[BTTV_BOARD_BT848_CAP_14] = {
|
|
|
|
.name = "Bt848 Capture 14MHz",
|
|
|
|
.video_inputs = 4,
|
|
|
|
.svhs = 2,
|
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
|
|
|
.pll = PLL_14,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
},
|
2013-04-15 03:26:21 +07:00
|
|
|
[BTTV_BOARD_CYBERVISION_CV06] = {
|
|
|
|
.name = "CyberVision CV06 (SV)",
|
|
|
|
.video_inputs = 4,
|
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
.muxsel = MUXSEL(2, 3, 1, 0),
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
},
|
2014-02-08 00:56:17 +07:00
|
|
|
[BTTV_BOARD_KWORLD_VSTREAM_XPERT] = {
|
|
|
|
/* Pojar George <geoubuntu@gmail.com> */
|
|
|
|
.name = "Kworld V-Stream Xpert TV PVR878",
|
|
|
|
.video_inputs = 3,
|
|
|
|
/* .audio_inputs= 1, */
|
|
|
|
.svhs = 2,
|
|
|
|
.gpiomask = 0x001c0007,
|
|
|
|
.muxsel = MUXSEL(2, 3, 1, 1),
|
|
|
|
.gpiomux = { 0, 1, 2, 2 },
|
|
|
|
.gpiomute = 3,
|
|
|
|
.pll = PLL_28,
|
|
|
|
.tuner_type = TUNER_TENA_9533_DI,
|
|
|
|
.tuner_addr = ADDR_UNSET,
|
|
|
|
.has_remote = 1,
|
|
|
|
.has_radio = 1,
|
|
|
|
},
|
2014-03-19 16:50:41 +07:00
|
|
|
/* ---- card 0xa6---------------------------------- */
|
|
|
|
[BTTV_BOARD_PCI_8604PW] = {
|
|
|
|
/* PCI-8604PW with special unlock sequence */
|
|
|
|
.name = "PCI-8604PW",
|
|
|
|
.video_inputs = 2,
|
|
|
|
/* .audio_inputs= 0, */
|
|
|
|
.svhs = NO_SVHS,
|
|
|
|
/* The second input is available on CN4, if populated.
|
|
|
|
* The other 5x2 header (CN2?) connects to the same inputs
|
|
|
|
* as the on-board BNCs */
|
|
|
|
.muxsel = MUXSEL(2, 3),
|
|
|
|
.tuner_type = TUNER_ABSENT,
|
|
|
|
.no_msp34xx = 1,
|
|
|
|
.no_tda7432 = 1,
|
|
|
|
.pll = PLL_35,
|
|
|
|
},
|
2005-11-09 12:36:56 +07:00
|
|
|
};
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards);
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
static unsigned char eeprom_data[256];
|
|
|
|
|
|
|
|
/*
|
|
|
|
* identify card
|
|
|
|
*/
|
2012-12-22 04:17:53 +07:00
|
|
|
void bttv_idcard(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
unsigned int gpiobits;
|
|
|
|
int i,type;
|
|
|
|
|
|
|
|
/* read PCI subsystem ID */
|
2011-07-23 01:16:04 +07:00
|
|
|
btv->cardid = btv->c.pci->subsystem_device << 16;
|
|
|
|
btv->cardid |= btv->c.pci->subsystem_vendor;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (0 != btv->cardid && 0xffffffff != btv->cardid) {
|
|
|
|
/* look for the card */
|
|
|
|
for (type = -1, i = 0; cards[i].id != 0; i++)
|
|
|
|
if (cards[i].id == btv->cardid)
|
|
|
|
type = i;
|
|
|
|
|
|
|
|
if (type != -1) {
|
|
|
|
/* found it */
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: detected: %s [card=%d], PCI subsystem ID is %04x:%04x\n",
|
|
|
|
btv->c.nr, cards[type].name, cards[type].cardnr,
|
|
|
|
btv->cardid & 0xffff,
|
|
|
|
(btv->cardid >> 16) & 0xffff);
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->c.type = cards[type].cardnr;
|
|
|
|
} else {
|
|
|
|
/* 404 */
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: subsystem: %04x:%04x (UNKNOWN)\n",
|
|
|
|
btv->c.nr, btv->cardid & 0xffff,
|
|
|
|
(btv->cardid >> 16) & 0xffff);
|
|
|
|
pr_debug("please mail id, board name and the correct card= insmod option to linux-media@vger.kernel.org\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* let the user override the autodetected type */
|
|
|
|
if (card[btv->c.nr] < bttv_num_tvcards)
|
|
|
|
btv->c.type=card[btv->c.nr];
|
|
|
|
|
|
|
|
/* print which card config we are using */
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: using: %s [card=%d,%s]\n",
|
|
|
|
btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type,
|
|
|
|
card[btv->c.nr] < bttv_num_tvcards
|
|
|
|
? "insmod option" : "autodetected");
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* overwrite gpio stuff ?? */
|
|
|
|
if (UNSET == audioall && UNSET == audiomux[0])
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (UNSET != audiomux[0]) {
|
|
|
|
gpiobits = 0;
|
2007-03-29 08:37:20 +07:00
|
|
|
for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) {
|
2006-03-19 07:31:00 +07:00
|
|
|
bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i];
|
2005-04-17 05:20:36 +07:00
|
|
|
gpiobits |= audiomux[i];
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
gpiobits = audioall;
|
2007-03-29 08:37:20 +07:00
|
|
|
for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) {
|
2006-03-19 07:31:00 +07:00
|
|
|
bttv_tvcards[btv->c.type].gpiomux[i] = audioall;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
bttv_tvcards[btv->c.type].gpiomask = (UNSET != gpiomask) ? gpiomask : gpiobits;
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: gpio config override: mask=0x%x, mux=",
|
|
|
|
btv->c.nr, bttv_tvcards[btv->c.type].gpiomask);
|
2007-03-29 08:37:20 +07:00
|
|
|
for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_cont("%s0x%x",
|
|
|
|
i ? "," : "", bttv_tvcards[btv->c.type].gpiomux[i]);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_cont("\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* (most) board specific initialisations goes here
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Some Modular Technology cards have an eeprom, but no subsystem ID */
|
2005-12-01 15:51:35 +07:00
|
|
|
static void identify_by_eeprom(struct bttv *btv, unsigned char eeprom_data[256])
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
int type = -1;
|
|
|
|
|
|
|
|
if (0 == strncmp(eeprom_data,"GET MM20xPCTV",13))
|
2005-11-09 12:36:52 +07:00
|
|
|
type = BTTV_BOARD_MODTEC_205;
|
2005-04-17 05:20:36 +07:00
|
|
|
else if (0 == strncmp(eeprom_data+20,"Picolo",7))
|
2005-11-09 12:36:52 +07:00
|
|
|
type = BTTV_BOARD_EURESYS_PICOLO;
|
2005-04-17 05:20:36 +07:00
|
|
|
else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0)
|
2005-11-09 12:37:43 +07:00
|
|
|
type = BTTV_BOARD_HAUPPAUGE; /* old bt848 */
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (-1 != type) {
|
|
|
|
btv->c.type = type;
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: detected by eeprom: %s [card=%d]\n",
|
|
|
|
btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void flyvideo_gpio(struct bttv *btv)
|
|
|
|
{
|
2008-09-04 03:11:54 +07:00
|
|
|
int gpio, has_remote, has_radio, is_capture_only;
|
|
|
|
int is_lr90, has_tda9820_tda9821;
|
|
|
|
int tuner_type = UNSET, ttype;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
gpio_inout(0xffffff, 0);
|
2005-09-10 03:03:39 +07:00
|
|
|
udelay(8); /* without this we would see the 0x1800 mask */
|
2005-04-17 05:20:36 +07:00
|
|
|
gpio = gpio_read();
|
|
|
|
/* FIXME: must restore OUR_EN ??? */
|
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
/* all cards provide GPIO info, some have an additional eeprom
|
|
|
|
* LR50: GPIO coding can be found lower right CP1 .. CP9
|
|
|
|
* CP9=GPIO23 .. CP1=GPIO15; when OPEN, the corresponding GPIO reads 1.
|
|
|
|
* GPIO14-12: n.c.
|
|
|
|
* LR90: GP9=GPIO23 .. GP1=GPIO15 (right above the bt878)
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
* lowest 3 bytes are remote control codes (no handshake needed)
|
|
|
|
* xxxFFF: No remote control chip soldered
|
|
|
|
* xxxF00(LR26/LR50), xxxFE0(LR90): Remote control chip (LVA001 or CF45) soldered
|
|
|
|
* Note: Some bits are Audio_Mask !
|
|
|
|
*/
|
2008-09-04 03:11:54 +07:00
|
|
|
ttype = (gpio & 0x0f0000) >> 16;
|
|
|
|
switch (ttype) {
|
|
|
|
case 0x0:
|
|
|
|
tuner_type = 2; /* NTSC, e.g. TPI8NSR11P */
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2008-09-04 03:11:54 +07:00
|
|
|
case 0x2:
|
|
|
|
tuner_type = 39; /* LG NTSC (newer TAPC series) TAPC-H701P */
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2008-09-04 03:11:54 +07:00
|
|
|
case 0x4:
|
|
|
|
tuner_type = 5; /* Philips PAL TPI8PSB02P, TPI8PSB12P, TPI8PSB12D or FI1216, FM1216 */
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2008-09-04 03:11:54 +07:00
|
|
|
case 0x6:
|
|
|
|
tuner_type = 37; /* LG PAL (newer TAPC series) TAPC-G702P */
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2008-09-04 03:11:54 +07:00
|
|
|
case 0xC:
|
|
|
|
tuner_type = 3; /* Philips SECAM(+PAL) FQ1216ME or FI1216MF */
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
default:
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: FlyVideo_gpio: unknown tuner type\n", btv->c.nr);
|
2008-09-04 03:11:54 +07:00
|
|
|
break;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
has_remote = gpio & 0x800000;
|
|
|
|
has_radio = gpio & 0x400000;
|
2005-09-10 03:03:39 +07:00
|
|
|
/* unknown 0x200000;
|
|
|
|
* unknown2 0x100000; */
|
2005-11-09 12:37:43 +07:00
|
|
|
is_capture_only = !(gpio & 0x008000); /* GPIO15 */
|
2005-04-17 05:20:36 +07:00
|
|
|
has_tda9820_tda9821 = !(gpio & 0x004000);
|
2005-09-10 03:03:39 +07:00
|
|
|
is_lr90 = !(gpio & 0x002000); /* else LR26/LR50 (LR38/LR51 f. capture only) */
|
|
|
|
/*
|
|
|
|
* gpio & 0x001000 output bit for audio routing */
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2008-09-04 03:11:54 +07:00
|
|
|
if (is_capture_only)
|
|
|
|
tuner_type = TUNER_ABSENT; /* No tuner present */
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: FlyVideo Radio=%s RemoteControl=%s Tuner=%d gpio=0x%06x\n",
|
|
|
|
btv->c.nr, has_radio ? "yes" : "no",
|
|
|
|
has_remote ? "yes" : "no", tuner_type, gpio);
|
|
|
|
pr_info("%d: FlyVideo LR90=%s tda9821/tda9820=%s capture_only=%s\n",
|
|
|
|
btv->c.nr, is_lr90 ? "yes" : "no",
|
|
|
|
has_tda9820_tda9821 ? "yes" : "no",
|
|
|
|
is_capture_only ? "yes" : "no");
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2008-09-04 03:11:54 +07:00
|
|
|
if (tuner_type != UNSET) /* only set if known tuner autodetected, else let insmod option through */
|
|
|
|
btv->tuner_type = tuner_type;
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->has_radio = has_radio;
|
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
/* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80
|
|
|
|
* LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00
|
|
|
|
* Audio options: from tuner, from tda9821/tda9821(mono,stereo,sap), from tda9874, ext., mute */
|
2008-09-04 03:11:54 +07:00
|
|
|
if (has_tda9820_tda9821)
|
|
|
|
btv->audio_mode_gpio = lt9415_audio;
|
2006-08-26 02:53:04 +07:00
|
|
|
/* todo: if(has_tda9874) btv->audio_mode_gpio = fv2000s_audio; */
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1,
|
|
|
|
14,2,17,1, 4,1,4,3, 1,2,16,1, 4,4,4,4 };
|
|
|
|
static int miro_fmtuner[] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1,
|
|
|
|
1,1,1,1, 1,1,1,0, 0,0,0,0, 0,1,0,0 };
|
|
|
|
|
|
|
|
static void miro_pinnacle_gpio(struct bttv *btv)
|
|
|
|
{
|
|
|
|
int id,msp,gpio;
|
|
|
|
char *info;
|
|
|
|
|
|
|
|
gpio_inout(0xffffff, 0);
|
2005-11-09 12:37:43 +07:00
|
|
|
gpio = gpio_read();
|
2005-04-17 05:20:36 +07:00
|
|
|
id = ((gpio>>10) & 63) -1;
|
2006-03-18 18:31:34 +07:00
|
|
|
msp = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx");
|
2005-04-17 05:20:36 +07:00
|
|
|
if (id < 32) {
|
|
|
|
btv->tuner_type = miro_tunermap[id];
|
|
|
|
if (0 == (gpio & 0x20)) {
|
|
|
|
btv->has_radio = 1;
|
|
|
|
if (!miro_fmtuner[id]) {
|
2015-01-16 03:10:45 +07:00
|
|
|
btv->has_tea575x = 1;
|
|
|
|
btv->tea_gpio.wren = 6;
|
|
|
|
btv->tea_gpio.most = 7;
|
|
|
|
btv->tea_gpio.clk = 8;
|
|
|
|
btv->tea_gpio.data = 9;
|
|
|
|
tea575x_init(btv);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
btv->has_radio = 0;
|
|
|
|
}
|
|
|
|
if (-1 != msp) {
|
2005-11-09 12:36:52 +07:00
|
|
|
if (btv->c.type == BTTV_BOARD_MIRO)
|
|
|
|
btv->c.type = BTTV_BOARD_MIROPRO;
|
|
|
|
if (btv->c.type == BTTV_BOARD_PINNACLE)
|
|
|
|
btv->c.type = BTTV_BOARD_PINNACLEPRO;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: miro: id=%d tuner=%d radio=%s stereo=%s\n",
|
|
|
|
btv->c.nr, id+1, btv->tuner_type,
|
|
|
|
!btv->has_radio ? "no" :
|
2015-01-16 03:10:45 +07:00
|
|
|
(btv->has_tea575x ? "tea575x" : "fmtuner"),
|
2011-08-22 05:56:48 +07:00
|
|
|
(-1 == msp) ? "no" : "yes");
|
2005-04-17 05:20:36 +07:00
|
|
|
} else {
|
|
|
|
/* new cards with microtune tuner */
|
|
|
|
id = 63 - id;
|
|
|
|
btv->has_radio = 0;
|
|
|
|
switch (id) {
|
|
|
|
case 1:
|
|
|
|
info = "PAL / mono";
|
2006-01-10 00:25:16 +07:00
|
|
|
btv->tda9887_conf = TDA9887_INTERCARRIER;
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
info = "PAL+SECAM / stereo";
|
|
|
|
btv->has_radio = 1;
|
2006-01-10 00:25:16 +07:00
|
|
|
btv->tda9887_conf = TDA9887_QSS;
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
info = "NTSC / stereo";
|
|
|
|
btv->has_radio = 1;
|
2006-01-10 00:25:16 +07:00
|
|
|
btv->tda9887_conf = TDA9887_QSS;
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
info = "PAL+SECAM / mono";
|
2006-01-10 00:25:16 +07:00
|
|
|
btv->tda9887_conf = TDA9887_QSS;
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
info = "NTSC / mono";
|
2006-01-10 00:25:16 +07:00
|
|
|
btv->tda9887_conf = TDA9887_INTERCARRIER;
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
info = "NTSC / stereo";
|
2006-01-10 00:25:16 +07:00
|
|
|
btv->tda9887_conf = TDA9887_INTERCARRIER;
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
info = "PAL / stereo";
|
2006-01-10 00:25:16 +07:00
|
|
|
btv->tda9887_conf = TDA9887_INTERCARRIER;
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
info = "oops: unknown card";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (-1 != msp)
|
2005-11-09 12:36:52 +07:00
|
|
|
btv->c.type = BTTV_BOARD_PINNACLEPRO;
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n",
|
|
|
|
btv->c.nr, id, info, btv->has_radio ? "yes" : "no");
|
2006-01-10 00:25:16 +07:00
|
|
|
btv->tuner_type = TUNER_MT2032;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* GPIO21 L: Buffer aktiv, H: Buffer inaktiv */
|
|
|
|
#define LM1882_SYNC_DRIVE 0x200000L
|
|
|
|
|
|
|
|
static void init_ids_eagle(struct bttv *btv)
|
|
|
|
{
|
|
|
|
gpio_inout(0xffffff,0xFFFF37);
|
|
|
|
gpio_write(0x200020);
|
|
|
|
|
|
|
|
/* flash strobe inverter ?! */
|
|
|
|
gpio_write(0x200024);
|
|
|
|
|
|
|
|
/* switch sync drive off */
|
|
|
|
gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE);
|
|
|
|
|
|
|
|
/* set BT848 muxel to 2 */
|
|
|
|
btaor((2)<<5, ~(2<<5), BT848_IFORM);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Muxsel helper for the IDS Eagle.
|
|
|
|
* the eagles does not use the standard muxsel-bits but
|
|
|
|
* has its own multiplexer */
|
|
|
|
static void eagle_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
2009-01-29 07:32:59 +07:00
|
|
|
gpio_bits(3, input & 3);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-08-28 04:16:54 +07:00
|
|
|
/* composite */
|
|
|
|
/* set chroma ADC to sleep */
|
|
|
|
btor(BT848_ADC_C_SLEEP, BT848_ADC);
|
|
|
|
/* set to composite video */
|
|
|
|
btand(~BT848_CONTROL_COMP, BT848_E_CONTROL);
|
|
|
|
btand(~BT848_CONTROL_COMP, BT848_O_CONTROL);
|
|
|
|
|
|
|
|
/* switch sync drive off */
|
|
|
|
gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
static void gvc1100_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
2005-11-09 12:37:43 +07:00
|
|
|
static const int masks[] = {0x30, 0x01, 0x12, 0x23};
|
2005-04-17 05:20:36 +07:00
|
|
|
gpio_write(masks[input%4]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* LMLBT4x initialization - to allow access to GPIO bits for sensors input and
|
|
|
|
alarms output
|
|
|
|
|
|
|
|
GPIObit | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|
|
|
|
assignment | TI | O3|INx| O2| O1|IN4|IN3|IN2|IN1| | |
|
|
|
|
|
|
|
|
IN - sensor inputs, INx - sensor inputs and TI XORed together
|
|
|
|
O1,O2,O3 - alarm outputs (relays)
|
|
|
|
|
|
|
|
OUT ENABLE 1 1 0 . 1 1 0 0 . 0 0 0 0 = 0x6C0
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void init_lmlbt4x(struct bttv *btv)
|
|
|
|
{
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_debug("LMLBT4x init\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
btwrite(0x000000, BT848_GPIO_REG_INP);
|
|
|
|
gpio_inout(0xffffff, 0x0006C0);
|
|
|
|
gpio_write(0x000000);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
unsigned int inmux = input % 8;
|
|
|
|
gpio_inout( 0xf, 0xf );
|
|
|
|
gpio_bits( 0xf, inmux );
|
|
|
|
}
|
|
|
|
|
|
|
|
static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
unsigned int inmux = input % 4;
|
|
|
|
gpio_inout( 3<<9, 3<<9 );
|
|
|
|
gpio_bits( 3<<9, inmux<<9 );
|
|
|
|
}
|
|
|
|
|
V4L/DVB (7366): Support for a 16-channel bt878 card
I have what looks like a Geovision GV-600 (or 650) card. It has a large
chip in the middle labeled
CONEXANT
FUSION 878A
25878-13
E345881.1
0312 TAIWAN
It has an audio connector coming out from a chip labeled
ATMEL
0242
AT89C2051-24PI
It is identified as follows on my Debian GNU/Linux Etch (kernel 2.6.18)
...
01:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
01:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
...
01:0a.0 0400: 109e:036e (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dfffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
01:0a.1 0480: 109e:0878 (rev 11)
Subsystem: 008a:763c
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at dffff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
It was being detected as a GENERIC UNKNOWN CARD both by the 2.6.18
kernel and the latest v4l-dvb drivers, but it did not work at all. The
card has sixteen (16) BNC video inputs, four of them on the board itself
and twelve on three daughter-cards. It has a single bt878 chip, no tuner
and what looks like and audio input. After doing some research I managed
to get only eight channels working by forcing card=125 and those DID NOT
match channels 0-7 on the card, and no audio.
Based on what was working for card=125, I added the card definition
block, added a specific muxsel routine and got the card working fully
with xawtv, where the sixteen channels show up as Composite0 to
Composite15, matching the channel labels in the card and daughter-cards.
I have made no efforts yet to get audio working, but would appreciate
any pointers.
Signed-off-by: Ernesto Hernández-Novich <emhn@usb.ve>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-23 00:45:58 +07:00
|
|
|
static void geovision_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
unsigned int inmux = input % 16;
|
|
|
|
gpio_inout(0xf, 0xf);
|
|
|
|
gpio_bits(0xf, inmux);
|
|
|
|
}
|
|
|
|
|
2011-11-06 20:15:47 +07:00
|
|
|
/*
|
|
|
|
* The TD3116 has 2 74HC4051 muxes wired to the MUX0 input of a bt878.
|
|
|
|
* The first 74HC4051 has the lower 8 inputs, the second one the higher 8.
|
|
|
|
* The muxes are controlled via a 74HC373 latch which is connected to
|
|
|
|
* GPIOs 0-7. GPIO 18 is connected to the LE signal of the latch.
|
|
|
|
* Q0 of the latch is connected to the Enable (~E) input of the first
|
|
|
|
* 74HC4051. Q1 - Q3 are connected to S0 - S2 of the same 74HC4051.
|
|
|
|
* Q4 - Q7 are connected to the second 74HC4051 in the same way.
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void td3116_latch_value(struct bttv *btv, u32 value)
|
|
|
|
{
|
|
|
|
gpio_bits((1<<18) | 0xff, value);
|
|
|
|
gpio_bits((1<<18) | 0xff, (1<<18) | value);
|
|
|
|
udelay(1);
|
|
|
|
gpio_bits((1<<18) | 0xff, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void td3116_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
u32 value;
|
|
|
|
u32 highbit;
|
|
|
|
|
|
|
|
highbit = (input & 0x8) >> 3 ;
|
|
|
|
|
|
|
|
/* Disable outputs and set value in the mux */
|
|
|
|
value = 0x11; /* Disable outputs */
|
|
|
|
value |= ((input & 0x7) << 1) << (4 * highbit);
|
|
|
|
td3116_latch_value(btv, value);
|
|
|
|
|
|
|
|
/* Enable the correct output */
|
|
|
|
value &= ~0x11;
|
|
|
|
value |= ((highbit ^ 0x1) << 4) | highbit;
|
|
|
|
td3116_latch_value(btv, value);
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
static void bttv_reset_audio(struct bttv *btv)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* BT878A has a audio-reset register.
|
|
|
|
* 1. This register is an audio reset function but it is in
|
|
|
|
* function-0 (video capture) address space.
|
|
|
|
* 2. It is enough to do this once per power-up of the card.
|
|
|
|
* 3. There is a typo in the Conexant doc -- it is not at
|
|
|
|
* 0x5B, but at 0x058. (B is an odd-number, obviously a typo!).
|
|
|
|
* --//Shrikumar 030609
|
|
|
|
*/
|
|
|
|
if (btv->id != 878)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (bttv_debug)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_debug("%d: BT878A ARESET\n", btv->c.nr);
|
2005-04-17 05:20:36 +07:00
|
|
|
btwrite((1<<7), 0x058);
|
|
|
|
udelay(10);
|
|
|
|
btwrite( 0, 0x058);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* initialization part one -- before registering i2c bus */
|
2012-12-22 04:17:53 +07:00
|
|
|
void bttv_init_card1(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
switch (btv->c.type) {
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_HAUPPAUGE:
|
|
|
|
case BTTV_BOARD_HAUPPAUGE878:
|
2005-11-09 12:37:43 +07:00
|
|
|
boot_msp34xx(btv,5);
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2007-06-25 23:02:16 +07:00
|
|
|
case BTTV_BOARD_VOODOOTV_200:
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_VOODOOTV_FM:
|
2005-11-09 12:37:43 +07:00
|
|
|
boot_msp34xx(btv,20);
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_AVERMEDIA98:
|
2005-04-17 05:20:36 +07:00
|
|
|
boot_msp34xx(btv,11);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_HAUPPAUGEPVR:
|
2005-04-17 05:20:36 +07:00
|
|
|
pvr_boot(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_TWINHAN_DST:
|
|
|
|
case BTTV_BOARD_AVDVBT_771:
|
|
|
|
case BTTV_BOARD_PINNACLESAT:
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->use_i2c_hw = 1;
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_ADLINK_RTV24:
|
2005-11-09 12:36:21 +07:00
|
|
|
init_RTV24( btv );
|
|
|
|
break;
|
2014-03-19 16:50:41 +07:00
|
|
|
case BTTV_BOARD_PCI_8604PW:
|
|
|
|
init_PCI8604PW(btv);
|
|
|
|
break;
|
2005-06-24 12:04:58 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
if (!bttv_tvcards[btv->c.type].has_dvb)
|
|
|
|
bttv_reset_audio(btv);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* initialization part two -- after registering i2c bus */
|
2012-12-22 04:17:53 +07:00
|
|
|
void bttv_init_card2(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
V4L/DVB (5805): Bttv: Fix problems with probing for non-existent tuners
The bttv driver has code to detect if a tda9887 is present, that was previous
used to auto-load the tda9887 driver. Now there is no tda9887 driver, so the
code is pointless; it just figures out if it should load the driver and then
does nothing.
For cards that are defined as having no tuner, the init code would still do
i2c probes for various tuner devices and auto-load the tuner module. That can
be skipped for cards that don't need it. The code is made to understand that
in addition to 'UNSET', 'TUNER_ABSENT' also means no tuner.
The tuner into printk()s are also made nicer. Levels are added, INFO or
WARNING, depending on the meaning. For cards with no tuner, or no tuner
defined, a more informative message is printed.
Card has no tuner, before patch:
bttv0: tuner type=-1
or
bttv0: tuner type=4
After patch:
bttv0: tuner absent
Card has a tuner, but the type isn't defined, before patch:
bttv0: tuner type=-1
After patch:
bttv0: tuner type unset [<- also warning now, as the tuner won't work right]
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-29 03:51:08 +07:00
|
|
|
btv->tuner_type = UNSET;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-11-09 12:36:52 +07:00
|
|
|
if (BTTV_BOARD_UNKNOWN == btv->c.type) {
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_readee(btv,eeprom_data,0xa0);
|
|
|
|
identify_by_eeprom(btv,eeprom_data);
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (btv->c.type) {
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_MIRO:
|
|
|
|
case BTTV_BOARD_MIROPRO:
|
|
|
|
case BTTV_BOARD_PINNACLE:
|
|
|
|
case BTTV_BOARD_PINNACLEPRO:
|
2005-04-17 05:20:36 +07:00
|
|
|
/* miro/pinnacle */
|
|
|
|
miro_pinnacle_gpio(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_FLYVIDEO_98:
|
|
|
|
case BTTV_BOARD_MAXI:
|
|
|
|
case BTTV_BOARD_LIFE_FLYKIT:
|
|
|
|
case BTTV_BOARD_FLYVIDEO:
|
|
|
|
case BTTV_BOARD_TYPHOON_TVIEW:
|
|
|
|
case BTTV_BOARD_CHRONOS_VS2:
|
|
|
|
case BTTV_BOARD_FLYVIDEO_98FM:
|
|
|
|
case BTTV_BOARD_FLYVIDEO2000:
|
|
|
|
case BTTV_BOARD_FLYVIDEO98EZ:
|
|
|
|
case BTTV_BOARD_CONFERENCETV:
|
|
|
|
case BTTV_BOARD_LIFETEC_9415:
|
2005-04-17 05:20:36 +07:00
|
|
|
flyvideo_gpio(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_HAUPPAUGE:
|
|
|
|
case BTTV_BOARD_HAUPPAUGE878:
|
|
|
|
case BTTV_BOARD_HAUPPAUGEPVR:
|
2005-04-17 05:20:36 +07:00
|
|
|
/* pick up some config infos from the eeprom */
|
|
|
|
bttv_readee(btv,eeprom_data,0xa0);
|
2005-11-09 12:37:43 +07:00
|
|
|
hauppauge_eeprom(btv);
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_AVERMEDIA98:
|
|
|
|
case BTTV_BOARD_AVPHONE98:
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_readee(btv,eeprom_data,0xa0);
|
|
|
|
avermedia_eeprom(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_PXC200:
|
2005-04-17 05:20:36 +07:00
|
|
|
init_PXC200(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_PICOLO_TETRA_CHIP:
|
2005-04-17 05:20:36 +07:00
|
|
|
picolo_tetra_init(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_VHX:
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->has_radio = 1;
|
2015-01-16 03:10:45 +07:00
|
|
|
btv->has_tea575x = 1;
|
|
|
|
btv->tea_gpio.wren = 5;
|
|
|
|
btv->tea_gpio.most = 6;
|
|
|
|
btv->tea_gpio.clk = 3;
|
|
|
|
btv->tea_gpio.data = 4;
|
|
|
|
tea575x_init(btv);
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_VOBIS_BOOSTAR:
|
|
|
|
case BTTV_BOARD_TERRATV:
|
2005-04-17 05:20:36 +07:00
|
|
|
terratec_active_radio_upgrade(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_MAGICTVIEW061:
|
2005-04-17 05:20:36 +07:00
|
|
|
if (btv->cardid == 0x3002144f) {
|
|
|
|
btv->has_radio=1;
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: radio detected by subsystem id (CPH05x)\n",
|
|
|
|
btv->c.nr);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
break;
|
2007-08-28 04:16:54 +07:00
|
|
|
case BTTV_BOARD_STB2:
|
2005-11-09 12:37:43 +07:00
|
|
|
if (btv->cardid == 0x3060121a) {
|
2005-04-17 05:20:36 +07:00
|
|
|
/* Fix up entry for 3DFX VoodooTV 100,
|
|
|
|
which is an OEM STB card variant. */
|
|
|
|
btv->has_radio=0;
|
|
|
|
btv->tuner_type=TUNER_TEMIC_NTSC;
|
|
|
|
}
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_OSPREY1x0:
|
|
|
|
case BTTV_BOARD_OSPREY1x0_848:
|
|
|
|
case BTTV_BOARD_OSPREY101_848:
|
|
|
|
case BTTV_BOARD_OSPREY1x1:
|
|
|
|
case BTTV_BOARD_OSPREY1x1_SVID:
|
|
|
|
case BTTV_BOARD_OSPREY2xx:
|
|
|
|
case BTTV_BOARD_OSPREY2x0_SVID:
|
|
|
|
case BTTV_BOARD_OSPREY2x0:
|
2007-07-22 07:26:40 +07:00
|
|
|
case BTTV_BOARD_OSPREY440:
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_OSPREY500:
|
|
|
|
case BTTV_BOARD_OSPREY540:
|
|
|
|
case BTTV_BOARD_OSPREY2000:
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_readee(btv,eeprom_data,0xa0);
|
2007-07-22 07:26:40 +07:00
|
|
|
osprey_eeprom(btv, eeprom_data);
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_IDS_EAGLE:
|
2005-04-17 05:20:36 +07:00
|
|
|
init_ids_eagle(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_MODTEC_205:
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_readee(btv,eeprom_data,0xa0);
|
|
|
|
modtec_eeprom(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_LMLBT4:
|
2005-04-17 05:20:36 +07:00
|
|
|
init_lmlbt4x(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_TIBET_CS16:
|
2005-04-17 05:20:36 +07:00
|
|
|
tibetCS16_init(btv);
|
|
|
|
break;
|
2005-11-09 12:36:52 +07:00
|
|
|
case BTTV_BOARD_KODICOM_4400R:
|
2005-04-17 05:20:36 +07:00
|
|
|
kodicom4400r_init(btv);
|
|
|
|
break;
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
case BTTV_BOARD_GEOVISION_GV800S:
|
|
|
|
gv800s_init(btv);
|
|
|
|
break;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* pll configuration */
|
2005-11-09 12:37:43 +07:00
|
|
|
if (!(btv->id==848 && btv->revision==0x11)) {
|
2005-04-17 05:20:36 +07:00
|
|
|
/* defaults from card list */
|
|
|
|
if (PLL_28 == bttv_tvcards[btv->c.type].pll) {
|
|
|
|
btv->pll.pll_ifreq=28636363;
|
|
|
|
btv->pll.pll_crystal=BT848_IFORM_XT0;
|
|
|
|
}
|
|
|
|
if (PLL_35 == bttv_tvcards[btv->c.type].pll) {
|
|
|
|
btv->pll.pll_ifreq=35468950;
|
|
|
|
btv->pll.pll_crystal=BT848_IFORM_XT1;
|
|
|
|
}
|
2013-04-14 22:39:09 +07:00
|
|
|
if (PLL_14 == bttv_tvcards[btv->c.type].pll) {
|
|
|
|
btv->pll.pll_ifreq = 14318181;
|
|
|
|
btv->pll.pll_crystal = BT848_IFORM_XT0;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
/* insmod options can override */
|
2005-11-09 12:37:43 +07:00
|
|
|
switch (pll[btv->c.nr]) {
|
|
|
|
case 0: /* none */
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->pll.pll_crystal = 0;
|
|
|
|
btv->pll.pll_ifreq = 0;
|
|
|
|
btv->pll.pll_ofreq = 0;
|
2005-11-09 12:37:43 +07:00
|
|
|
break;
|
|
|
|
case 1: /* 28 MHz */
|
2005-04-17 05:20:36 +07:00
|
|
|
case 28:
|
2005-11-09 12:37:43 +07:00
|
|
|
btv->pll.pll_ifreq = 28636363;
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->pll.pll_ofreq = 0;
|
2005-11-09 12:37:43 +07:00
|
|
|
btv->pll.pll_crystal = BT848_IFORM_XT0;
|
|
|
|
break;
|
|
|
|
case 2: /* 35 MHz */
|
2005-04-17 05:20:36 +07:00
|
|
|
case 35:
|
2005-11-09 12:37:43 +07:00
|
|
|
btv->pll.pll_ifreq = 35468950;
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->pll.pll_ofreq = 0;
|
2005-11-09 12:37:43 +07:00
|
|
|
btv->pll.pll_crystal = BT848_IFORM_XT1;
|
|
|
|
break;
|
2013-04-14 22:39:09 +07:00
|
|
|
case 3: /* 14 MHz */
|
|
|
|
case 14:
|
|
|
|
btv->pll.pll_ifreq = 14318181;
|
|
|
|
btv->pll.pll_ofreq = 0;
|
|
|
|
btv->pll.pll_crystal = BT848_IFORM_XT0;
|
|
|
|
break;
|
2005-11-09 12:37:43 +07:00
|
|
|
}
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->pll.pll_current = -1;
|
|
|
|
|
|
|
|
/* tuner configuration (from card list / autodetect / insmod option) */
|
2005-09-10 03:03:39 +07:00
|
|
|
if (UNSET != bttv_tvcards[btv->c.type].tuner_type)
|
2009-01-29 07:32:59 +07:00
|
|
|
if (UNSET == btv->tuner_type)
|
2005-11-09 12:37:43 +07:00
|
|
|
btv->tuner_type = bttv_tvcards[btv->c.type].tuner_type;
|
2005-04-17 05:20:36 +07:00
|
|
|
if (UNSET != tuner[btv->c.nr])
|
|
|
|
btv->tuner_type = tuner[btv->c.nr];
|
V4L/DVB (5805): Bttv: Fix problems with probing for non-existent tuners
The bttv driver has code to detect if a tda9887 is present, that was previous
used to auto-load the tda9887 driver. Now there is no tda9887 driver, so the
code is pointless; it just figures out if it should load the driver and then
does nothing.
For cards that are defined as having no tuner, the init code would still do
i2c probes for various tuner devices and auto-load the tuner module. That can
be skipped for cards that don't need it. The code is made to understand that
in addition to 'UNSET', 'TUNER_ABSENT' also means no tuner.
The tuner into printk()s are also made nicer. Levels are added, INFO or
WARNING, depending on the meaning. For cards with no tuner, or no tuner
defined, a more informative message is printed.
Card has no tuner, before patch:
bttv0: tuner type=-1
or
bttv0: tuner type=4
After patch:
bttv0: tuner absent
Card has a tuner, but the type isn't defined, before patch:
bttv0: tuner type=-1
After patch:
bttv0: tuner type unset [<- also warning now, as the tuner won't work right]
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-29 03:51:08 +07:00
|
|
|
|
2009-01-29 07:32:59 +07:00
|
|
|
if (btv->tuner_type == TUNER_ABSENT)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: tuner absent\n", btv->c.nr);
|
|
|
|
else if (btv->tuner_type == UNSET)
|
|
|
|
pr_warn("%d: tuner type unset\n", btv->c.nr);
|
V4L/DVB (5805): Bttv: Fix problems with probing for non-existent tuners
The bttv driver has code to detect if a tda9887 is present, that was previous
used to auto-load the tda9887 driver. Now there is no tda9887 driver, so the
code is pointless; it just figures out if it should load the driver and then
does nothing.
For cards that are defined as having no tuner, the init code would still do
i2c probes for various tuner devices and auto-load the tuner module. That can
be skipped for cards that don't need it. The code is made to understand that
in addition to 'UNSET', 'TUNER_ABSENT' also means no tuner.
The tuner into printk()s are also made nicer. Levels are added, INFO or
WARNING, depending on the meaning. For cards with no tuner, or no tuner
defined, a more informative message is printed.
Card has no tuner, before patch:
bttv0: tuner type=-1
or
bttv0: tuner type=4
After patch:
bttv0: tuner absent
Card has a tuner, but the type isn't defined, before patch:
bttv0: tuner type=-1
After patch:
bttv0: tuner type unset [<- also warning now, as the tuner won't work right]
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-29 03:51:08 +07:00
|
|
|
else
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: tuner type=%d\n", btv->c.nr, btv->tuner_type);
|
2005-11-09 12:38:23 +07:00
|
|
|
|
2009-03-28 18:29:00 +07:00
|
|
|
if (autoload != UNSET) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_warn("%d: the autoload option is obsolete\n", btv->c.nr);
|
|
|
|
pr_warn("%d: use option msp3400, tda7432 or tvaudio to override which audio module should be used\n",
|
|
|
|
btv->c.nr);
|
2009-03-28 18:29:00 +07:00
|
|
|
}
|
|
|
|
|
2009-01-29 07:32:59 +07:00
|
|
|
if (UNSET == btv->tuner_type)
|
|
|
|
btv->tuner_type = TUNER_ABSENT;
|
|
|
|
|
2009-01-29 07:32:59 +07:00
|
|
|
btv->dig = bttv_tvcards[btv->c.type].has_dig_in ?
|
|
|
|
bttv_tvcards[btv->c.type].video_inputs - 1 : UNSET;
|
2009-01-29 07:32:59 +07:00
|
|
|
btv->svhs = bttv_tvcards[btv->c.type].svhs == NO_SVHS ?
|
|
|
|
UNSET : bttv_tvcards[btv->c.type].svhs;
|
2005-04-17 05:20:36 +07:00
|
|
|
if (svhs[btv->c.nr] != UNSET)
|
|
|
|
btv->svhs = svhs[btv->c.nr];
|
|
|
|
if (remote[btv->c.nr] != UNSET)
|
|
|
|
btv->has_remote = remote[btv->c.nr];
|
|
|
|
|
|
|
|
if (bttv_tvcards[btv->c.type].has_radio)
|
2009-07-20 18:14:17 +07:00
|
|
|
btv->has_radio = 1;
|
2005-04-17 05:20:36 +07:00
|
|
|
if (bttv_tvcards[btv->c.type].has_remote)
|
2009-07-20 18:14:17 +07:00
|
|
|
btv->has_remote = 1;
|
2005-11-09 12:36:21 +07:00
|
|
|
if (!bttv_tvcards[btv->c.type].no_gpioirq)
|
2009-07-20 18:14:17 +07:00
|
|
|
btv->gpioirq = 1;
|
2006-08-26 02:53:04 +07:00
|
|
|
if (bttv_tvcards[btv->c.type].volume_gpio)
|
2009-07-20 18:14:17 +07:00
|
|
|
btv->volume_gpio = bttv_tvcards[btv->c.type].volume_gpio;
|
2006-08-26 02:53:04 +07:00
|
|
|
if (bttv_tvcards[btv->c.type].audio_mode_gpio)
|
2009-07-20 18:14:17 +07:00
|
|
|
btv->audio_mode_gpio = bttv_tvcards[btv->c.type].audio_mode_gpio;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2009-01-29 07:32:59 +07:00
|
|
|
if (btv->tuner_type == TUNER_ABSENT)
|
V4L/DVB (5805): Bttv: Fix problems with probing for non-existent tuners
The bttv driver has code to detect if a tda9887 is present, that was previous
used to auto-load the tda9887 driver. Now there is no tda9887 driver, so the
code is pointless; it just figures out if it should load the driver and then
does nothing.
For cards that are defined as having no tuner, the init code would still do
i2c probes for various tuner devices and auto-load the tuner module. That can
be skipped for cards that don't need it. The code is made to understand that
in addition to 'UNSET', 'TUNER_ABSENT' also means no tuner.
The tuner into printk()s are also made nicer. Levels are added, INFO or
WARNING, depending on the meaning. For cards with no tuner, or no tuner
defined, a more informative message is printed.
Card has no tuner, before patch:
bttv0: tuner type=-1
or
bttv0: tuner type=4
After patch:
bttv0: tuner absent
Card has a tuner, but the type isn't defined, before patch:
bttv0: tuner type=-1
After patch:
bttv0: tuner type unset [<- also warning now, as the tuner won't work right]
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-29 03:51:08 +07:00
|
|
|
return; /* no tuner or related drivers to load */
|
|
|
|
|
2009-03-28 18:29:00 +07:00
|
|
|
if (btv->has_saa6588 || saa6588[btv->c.nr]) {
|
|
|
|
/* Probe for RDS receiver chip */
|
|
|
|
static const unsigned short addrs[] = {
|
|
|
|
0x20 >> 1,
|
|
|
|
0x22 >> 1,
|
|
|
|
I2C_CLIENT_END
|
|
|
|
};
|
|
|
|
struct v4l2_subdev *sd;
|
|
|
|
|
2009-08-10 12:49:08 +07:00
|
|
|
sd = v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "saa6588", 0, addrs);
|
2009-03-28 18:29:00 +07:00
|
|
|
btv->has_saa6588 = (sd != NULL);
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* try to detect audio/fader chips */
|
|
|
|
|
2009-03-28 18:29:00 +07:00
|
|
|
/* First check if the user specified the audio chip via a module
|
|
|
|
option. */
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2009-03-28 18:29:00 +07:00
|
|
|
switch (audiodev[btv->c.nr]) {
|
|
|
|
case -1:
|
|
|
|
return; /* do not load any audio module */
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2009-03-28 18:29:00 +07:00
|
|
|
case 0: /* autodetect */
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1: {
|
|
|
|
/* The user specified that we should probe for msp3400 */
|
|
|
|
static const unsigned short addrs[] = {
|
|
|
|
I2C_ADDR_MSP3400 >> 1,
|
|
|
|
I2C_ADDR_MSP3400_ALT >> 1,
|
|
|
|
I2C_CLIENT_END
|
|
|
|
};
|
|
|
|
|
2009-08-10 12:49:08 +07:00
|
|
|
btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "msp3400", 0, addrs);
|
2009-03-28 18:29:00 +07:00
|
|
|
if (btv->sd_msp34xx)
|
|
|
|
return;
|
|
|
|
goto no_audio;
|
|
|
|
}
|
|
|
|
|
|
|
|
case 2: {
|
|
|
|
/* The user specified that we should probe for tda7432 */
|
|
|
|
static const unsigned short addrs[] = {
|
|
|
|
I2C_ADDR_TDA7432 >> 1,
|
|
|
|
I2C_CLIENT_END
|
|
|
|
};
|
|
|
|
|
2009-08-10 12:49:08 +07:00
|
|
|
if (v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "tda7432", 0, addrs))
|
2009-03-28 18:29:00 +07:00
|
|
|
return;
|
|
|
|
goto no_audio;
|
|
|
|
}
|
|
|
|
|
|
|
|
case 3: {
|
|
|
|
/* The user specified that we should probe for tvaudio */
|
2009-08-10 12:49:08 +07:00
|
|
|
btv->sd_tvaudio = v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "tvaudio", 0, tvaudio_addrs());
|
2009-03-28 18:29:00 +07:00
|
|
|
if (btv->sd_tvaudio)
|
|
|
|
return;
|
|
|
|
goto no_audio;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_warn("%d: unknown audiodev value!\n", btv->c.nr);
|
2009-03-28 18:29:00 +07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* There were no overrides, so now we try to discover this through the
|
|
|
|
card definition */
|
|
|
|
|
|
|
|
/* probe for msp3400 first: this driver can detect whether or not
|
|
|
|
it really is a msp3400, so it will return NULL when the device
|
|
|
|
found is really something else (e.g. a tea6300). */
|
|
|
|
if (!bttv_tvcards[btv->c.type].no_msp34xx) {
|
2009-08-10 12:49:08 +07:00
|
|
|
btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "msp3400",
|
2009-08-10 12:49:08 +07:00
|
|
|
0, I2C_ADDRS(I2C_ADDR_MSP3400 >> 1));
|
2009-03-28 18:29:00 +07:00
|
|
|
} else if (bttv_tvcards[btv->c.type].msp34xx_alt) {
|
2009-08-10 12:49:08 +07:00
|
|
|
btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "msp3400",
|
2009-08-10 12:49:08 +07:00
|
|
|
0, I2C_ADDRS(I2C_ADDR_MSP3400_ALT >> 1));
|
2009-03-28 18:29:00 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* If we found a msp34xx, then we're done. */
|
|
|
|
if (btv->sd_msp34xx)
|
|
|
|
return;
|
|
|
|
|
2013-02-06 22:43:37 +07:00
|
|
|
/* Now see if we can find one of the tvaudio devices. */
|
|
|
|
btv->sd_tvaudio = v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
|
|
|
&btv->c.i2c_adap, "tvaudio", 0, tvaudio_addrs());
|
|
|
|
if (btv->sd_tvaudio) {
|
|
|
|
/* There may be two tvaudio chips on the card, so try to
|
|
|
|
find another. */
|
|
|
|
v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
|
|
|
&btv->c.i2c_adap, "tvaudio", 0, tvaudio_addrs());
|
|
|
|
}
|
|
|
|
|
2009-03-28 18:29:00 +07:00
|
|
|
/* it might also be a tda7432. */
|
|
|
|
if (!bttv_tvcards[btv->c.type].no_tda7432) {
|
|
|
|
static const unsigned short addrs[] = {
|
|
|
|
I2C_ADDR_TDA7432 >> 1,
|
|
|
|
I2C_CLIENT_END
|
|
|
|
};
|
|
|
|
|
2013-02-06 22:40:28 +07:00
|
|
|
btv->sd_tda7432 = v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
|
|
|
&btv->c.i2c_adap, "tda7432", 0, addrs);
|
|
|
|
if (btv->sd_tda7432)
|
2009-03-28 18:29:00 +07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (btv->sd_tvaudio)
|
|
|
|
return;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2009-03-28 18:29:00 +07:00
|
|
|
no_audio:
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_warn("%d: audio absent, no audio device found!\n", btv->c.nr);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-07-20 18:14:17 +07:00
|
|
|
/* initialize the tuner */
|
2012-12-22 04:17:53 +07:00
|
|
|
void bttv_init_tuner(struct bttv *btv)
|
2009-07-20 18:14:17 +07:00
|
|
|
{
|
|
|
|
int addr = ADDR_UNSET;
|
|
|
|
|
|
|
|
if (ADDR_UNSET != bttv_tvcards[btv->c.type].tuner_addr)
|
|
|
|
addr = bttv_tvcards[btv->c.type].tuner_addr;
|
|
|
|
|
|
|
|
if (btv->tuner_type != TUNER_ABSENT) {
|
|
|
|
struct tuner_setup tun_setup;
|
|
|
|
|
|
|
|
/* Load tuner module before issuing tuner config call! */
|
2012-05-20 18:11:04 +07:00
|
|
|
if (btv->has_radio)
|
2009-08-10 12:49:08 +07:00
|
|
|
v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "tuner",
|
2009-08-10 12:49:08 +07:00
|
|
|
0, v4l2_i2c_tuner_addrs(ADDRS_RADIO));
|
|
|
|
v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "tuner",
|
2009-08-10 12:49:08 +07:00
|
|
|
0, v4l2_i2c_tuner_addrs(ADDRS_DEMOD));
|
|
|
|
v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
|
2010-09-24 20:16:44 +07:00
|
|
|
&btv->c.i2c_adap, "tuner",
|
2009-08-10 12:49:08 +07:00
|
|
|
0, v4l2_i2c_tuner_addrs(ADDRS_TV_WITH_DEMOD));
|
2009-07-20 18:14:17 +07:00
|
|
|
|
2011-02-15 18:30:50 +07:00
|
|
|
tun_setup.mode_mask = T_ANALOG_TV;
|
2009-07-20 18:14:17 +07:00
|
|
|
tun_setup.type = btv->tuner_type;
|
|
|
|
tun_setup.addr = addr;
|
|
|
|
|
2012-05-20 18:11:04 +07:00
|
|
|
if (btv->has_radio)
|
2009-07-20 18:14:17 +07:00
|
|
|
tun_setup.mode_mask |= T_RADIO;
|
|
|
|
|
|
|
|
bttv_call_all(btv, tuner, s_type_addr, &tun_setup);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (btv->tda9887_conf) {
|
|
|
|
struct v4l2_priv_tun_config tda9887_cfg;
|
|
|
|
|
|
|
|
tda9887_cfg.tuner = TUNER_TDA9887;
|
|
|
|
tda9887_cfg.priv = &btv->tda9887_conf;
|
|
|
|
|
|
|
|
bttv_call_all(btv, tuner, s_config, &tda9887_cfg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
static void modtec_eeprom(struct bttv *btv)
|
|
|
|
{
|
|
|
|
if( strncmp(&(eeprom_data[0x1e]),"Temic 4066 FY5",14) ==0) {
|
|
|
|
btv->tuner_type=TUNER_TEMIC_4066FY5_PAL_I;
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n",
|
|
|
|
btv->c.nr, &eeprom_data[0x1e]);
|
2005-04-17 05:20:36 +07:00
|
|
|
} else if (strncmp(&(eeprom_data[0x1e]),"Alps TSBB5",10) ==0) {
|
|
|
|
btv->tuner_type=TUNER_ALPS_TSBB5_PAL_I;
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n",
|
|
|
|
btv->c.nr, &eeprom_data[0x1e]);
|
2005-11-09 12:37:43 +07:00
|
|
|
} else if (strncmp(&(eeprom_data[0x1e]),"Philips FM1246",14) ==0) {
|
|
|
|
btv->tuner_type=TUNER_PHILIPS_NTSC;
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n",
|
|
|
|
btv->c.nr, &eeprom_data[0x1e]);
|
2005-04-17 05:20:36 +07:00
|
|
|
} else {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Modtec: Unknown TunerString: %s\n",
|
|
|
|
btv->c.nr, &eeprom_data[0x1e]);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-12-22 04:17:53 +07:00
|
|
|
static void hauppauge_eeprom(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
struct tveeprom tv;
|
|
|
|
|
2005-09-10 03:04:05 +07:00
|
|
|
tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data);
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->tuner_type = tv.tuner_type;
|
|
|
|
btv->has_radio = tv.has_radio;
|
2006-01-10 00:25:01 +07:00
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Hauppauge eeprom indicates model#%d\n",
|
2006-01-10 00:25:01 +07:00
|
|
|
btv->c.nr, tv.model);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Some of the 878 boards have duplicate PCI IDs. Switch the board
|
|
|
|
* type based on model #.
|
|
|
|
*/
|
|
|
|
if(tv.model == 64900) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Switching board type from %s to %s\n",
|
2006-01-10 00:25:01 +07:00
|
|
|
btv->c.nr,
|
|
|
|
bttv_tvcards[btv->c.type].name,
|
|
|
|
bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name);
|
|
|
|
btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB;
|
|
|
|
}
|
2012-05-21 17:46:22 +07:00
|
|
|
|
|
|
|
/* The 61334 needs the msp3410 to do the radio demod to get sound */
|
|
|
|
if (tv.model == 61334)
|
|
|
|
btv->radio_uses_msp_demodulator = 1;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2015-01-16 03:10:45 +07:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
static void bttv_tea575x_set_pins(struct snd_tea575x *tea, u8 pins)
|
|
|
|
{
|
|
|
|
struct bttv *btv = tea->private_data;
|
|
|
|
struct bttv_tea575x_gpio gpio = btv->tea_gpio;
|
|
|
|
u16 val = 0;
|
|
|
|
|
|
|
|
val |= (pins & TEA575X_DATA) ? (1 << gpio.data) : 0;
|
|
|
|
val |= (pins & TEA575X_CLK) ? (1 << gpio.clk) : 0;
|
|
|
|
val |= (pins & TEA575X_WREN) ? (1 << gpio.wren) : 0;
|
|
|
|
|
|
|
|
gpio_bits((1 << gpio.data) | (1 << gpio.clk) | (1 << gpio.wren), val);
|
|
|
|
if (btv->mbox_ior) {
|
|
|
|
/* IOW and CSEL active */
|
|
|
|
gpio_bits(btv->mbox_iow | btv->mbox_csel, 0);
|
|
|
|
udelay(5);
|
|
|
|
/* all inactive */
|
|
|
|
gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel,
|
|
|
|
btv->mbox_ior | btv->mbox_iow | btv->mbox_csel);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static u8 bttv_tea575x_get_pins(struct snd_tea575x *tea)
|
|
|
|
{
|
|
|
|
struct bttv *btv = tea->private_data;
|
|
|
|
struct bttv_tea575x_gpio gpio = btv->tea_gpio;
|
|
|
|
u8 ret = 0;
|
|
|
|
u16 val;
|
|
|
|
|
|
|
|
if (btv->mbox_ior) {
|
|
|
|
/* IOR and CSEL active */
|
|
|
|
gpio_bits(btv->mbox_ior | btv->mbox_csel, 0);
|
|
|
|
udelay(5);
|
|
|
|
}
|
|
|
|
val = gpio_read();
|
|
|
|
if (btv->mbox_ior) {
|
|
|
|
/* all inactive */
|
|
|
|
gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel,
|
|
|
|
btv->mbox_ior | btv->mbox_iow | btv->mbox_csel);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (val & (1 << gpio.data))
|
|
|
|
ret |= TEA575X_DATA;
|
|
|
|
if (val & (1 << gpio.most))
|
|
|
|
ret |= TEA575X_MOST;
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void bttv_tea575x_set_direction(struct snd_tea575x *tea, bool output)
|
|
|
|
{
|
|
|
|
struct bttv *btv = tea->private_data;
|
|
|
|
struct bttv_tea575x_gpio gpio = btv->tea_gpio;
|
|
|
|
u32 mask = (1 << gpio.clk) | (1 << gpio.wren) | (1 << gpio.data) |
|
|
|
|
(1 << gpio.most);
|
|
|
|
|
|
|
|
if (output)
|
|
|
|
gpio_inout(mask, (1 << gpio.data) | (1 << gpio.clk) |
|
|
|
|
(1 << gpio.wren));
|
|
|
|
else
|
|
|
|
gpio_inout(mask, (1 << gpio.clk) | (1 << gpio.wren));
|
|
|
|
}
|
|
|
|
|
|
|
|
static struct snd_tea575x_ops bttv_tea_ops = {
|
|
|
|
.set_pins = bttv_tea575x_set_pins,
|
|
|
|
.get_pins = bttv_tea575x_get_pins,
|
|
|
|
.set_direction = bttv_tea575x_set_direction,
|
|
|
|
};
|
|
|
|
|
|
|
|
static int tea575x_init(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2015-01-16 03:10:45 +07:00
|
|
|
btv->tea.private_data = btv;
|
|
|
|
btv->tea.ops = &bttv_tea_ops;
|
|
|
|
if (!snd_tea575x_hw_init(&btv->tea)) {
|
|
|
|
pr_info("%d: detected TEA575x radio\n", btv->c.nr);
|
|
|
|
btv->tea.mute = false;
|
|
|
|
return 0;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2015-01-16 03:10:45 +07:00
|
|
|
btv->has_tea575x = 0;
|
|
|
|
btv->has_radio = 0;
|
|
|
|
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
static int terratec_active_radio_upgrade(struct bttv *btv)
|
|
|
|
{
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->has_radio = 1;
|
2015-01-16 03:10:45 +07:00
|
|
|
btv->has_tea575x = 1;
|
|
|
|
btv->tea_gpio.wren = 4;
|
|
|
|
btv->tea_gpio.most = 5;
|
|
|
|
btv->tea_gpio.clk = 3;
|
|
|
|
btv->tea_gpio.data = 2;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
btv->mbox_iow = 1 << 8;
|
|
|
|
btv->mbox_ior = 1 << 9;
|
|
|
|
btv->mbox_csel = 1 << 10;
|
|
|
|
|
2015-01-16 03:10:45 +07:00
|
|
|
if (!tea575x_init(btv)) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Terratec Active Radio Upgrade found\n", btv->c.nr);
|
2015-01-16 03:10:45 +07:00
|
|
|
btv->has_saa6588 = 1;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
2015-01-16 03:10:45 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* minimal bootstrap for the WinTV/PVR -- upload altera firmware.
|
|
|
|
*
|
|
|
|
* The hcwamc.rbf firmware file is on the Hauppauge driver CD. Have
|
|
|
|
* a look at Pvr/pvr45xxx.EXE (self-extracting zip archive, can be
|
|
|
|
* unpacked with unzip).
|
|
|
|
*/
|
|
|
|
#define PVR_GPIO_DELAY 10
|
|
|
|
|
|
|
|
#define BTTV_ALT_DATA 0x000001
|
|
|
|
#define BTTV_ALT_DCLK 0x100000
|
|
|
|
#define BTTV_ALT_NCONFIG 0x800000
|
|
|
|
|
2012-12-22 04:17:53 +07:00
|
|
|
static int pvr_altera_load(struct bttv *btv, const u8 *micro, u32 microlen)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
u32 n;
|
2005-11-09 12:37:43 +07:00
|
|
|
u8 bits;
|
2005-04-17 05:20:36 +07:00
|
|
|
int i;
|
|
|
|
|
|
|
|
gpio_inout(0xffffff,BTTV_ALT_DATA|BTTV_ALT_DCLK|BTTV_ALT_NCONFIG);
|
|
|
|
gpio_write(0);
|
|
|
|
udelay(PVR_GPIO_DELAY);
|
|
|
|
|
|
|
|
gpio_write(BTTV_ALT_NCONFIG);
|
|
|
|
udelay(PVR_GPIO_DELAY);
|
|
|
|
|
|
|
|
for (n = 0; n < microlen; n++) {
|
|
|
|
bits = micro[n];
|
2007-03-29 08:37:23 +07:00
|
|
|
for (i = 0 ; i < 8 ; i++) {
|
2005-04-17 05:20:36 +07:00
|
|
|
gpio_bits(BTTV_ALT_DCLK,0);
|
|
|
|
if (bits & 0x01)
|
|
|
|
gpio_bits(BTTV_ALT_DATA,BTTV_ALT_DATA);
|
|
|
|
else
|
|
|
|
gpio_bits(BTTV_ALT_DATA,0);
|
|
|
|
gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK);
|
|
|
|
bits >>= 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gpio_bits(BTTV_ALT_DCLK,0);
|
|
|
|
udelay(PVR_GPIO_DELAY);
|
|
|
|
|
|
|
|
/* begin Altera init loop (Not necessary,but doesn't hurt) */
|
|
|
|
for (i = 0 ; i < 30 ; i++) {
|
|
|
|
gpio_bits(BTTV_ALT_DCLK,0);
|
|
|
|
gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK);
|
|
|
|
}
|
|
|
|
gpio_bits(BTTV_ALT_DCLK,0);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-12-22 04:17:53 +07:00
|
|
|
static int pvr_boot(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2005-11-09 12:37:43 +07:00
|
|
|
const struct firmware *fw_entry;
|
2005-04-17 05:20:36 +07:00
|
|
|
int rc;
|
|
|
|
|
|
|
|
rc = request_firmware(&fw_entry, "hcwamc.rbf", &btv->c.pci->dev);
|
|
|
|
if (rc != 0) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_warn("%d: no altera firmware [via hotplug]\n", btv->c.nr);
|
2005-11-09 12:37:43 +07:00
|
|
|
return rc;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
rc = pvr_altera_load(btv, fw_entry->data, fw_entry->size);
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: altera firmware upload %s\n",
|
|
|
|
btv->c.nr, (rc < 0) ? "failed" : "ok");
|
2005-11-09 12:37:43 +07:00
|
|
|
release_firmware(fw_entry);
|
2005-04-17 05:20:36 +07:00
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/* some osprey specific stuff */
|
|
|
|
|
2012-12-22 04:17:53 +07:00
|
|
|
static void osprey_eeprom(struct bttv *btv, const u8 ee[256])
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2007-07-22 07:26:40 +07:00
|
|
|
int i;
|
|
|
|
u32 serial = 0;
|
|
|
|
int cardid = -1;
|
|
|
|
|
|
|
|
/* This code will nevery actually get called in this case.... */
|
|
|
|
if (btv->c.type == BTTV_BOARD_UNKNOWN) {
|
|
|
|
/* this might be an antique... check for MMAC label in eeprom */
|
|
|
|
if (!strncmp(ee, "MMAC", 4)) {
|
|
|
|
u8 checksum = 0;
|
|
|
|
for (i = 0; i < 21; i++)
|
|
|
|
checksum += ee[i];
|
|
|
|
if (checksum != ee[21])
|
|
|
|
return;
|
|
|
|
cardid = BTTV_BOARD_OSPREY1x0_848;
|
|
|
|
for (i = 12; i < 21; i++)
|
|
|
|
serial *= 10, serial += ee[i] - '0';
|
|
|
|
}
|
2007-08-28 04:16:54 +07:00
|
|
|
} else {
|
2007-07-22 07:26:40 +07:00
|
|
|
unsigned short type;
|
|
|
|
|
2014-11-05 14:50:10 +07:00
|
|
|
for (i = 4 * 16; i < 8 * 16; i += 16) {
|
|
|
|
u16 checksum = (__force u16)ip_compute_csum(ee + i, 16);
|
2007-07-22 07:26:40 +07:00
|
|
|
|
2014-11-05 14:50:10 +07:00
|
|
|
if ((checksum & 0xff) + (checksum >> 8) == 0xff)
|
2007-07-22 07:26:40 +07:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (i >= 8*16)
|
|
|
|
return;
|
|
|
|
ee += i;
|
|
|
|
|
|
|
|
/* found a valid descriptor */
|
2008-05-21 10:32:21 +07:00
|
|
|
type = get_unaligned_be16((__be16 *)(ee+4));
|
2007-07-22 07:26:40 +07:00
|
|
|
|
|
|
|
switch(type) {
|
|
|
|
/* 848 based */
|
|
|
|
case 0x0004:
|
|
|
|
cardid = BTTV_BOARD_OSPREY1x0_848;
|
|
|
|
break;
|
|
|
|
case 0x0005:
|
|
|
|
cardid = BTTV_BOARD_OSPREY101_848;
|
|
|
|
break;
|
|
|
|
|
|
|
|
/* 878 based */
|
|
|
|
case 0x0012:
|
|
|
|
case 0x0013:
|
|
|
|
cardid = BTTV_BOARD_OSPREY1x0;
|
|
|
|
break;
|
|
|
|
case 0x0014:
|
|
|
|
case 0x0015:
|
|
|
|
cardid = BTTV_BOARD_OSPREY1x1;
|
|
|
|
break;
|
|
|
|
case 0x0016:
|
|
|
|
case 0x0017:
|
|
|
|
case 0x0020:
|
|
|
|
cardid = BTTV_BOARD_OSPREY1x1_SVID;
|
|
|
|
break;
|
|
|
|
case 0x0018:
|
|
|
|
case 0x0019:
|
|
|
|
case 0x001E:
|
|
|
|
case 0x001F:
|
|
|
|
cardid = BTTV_BOARD_OSPREY2xx;
|
|
|
|
break;
|
|
|
|
case 0x001A:
|
|
|
|
case 0x001B:
|
|
|
|
cardid = BTTV_BOARD_OSPREY2x0_SVID;
|
|
|
|
break;
|
|
|
|
case 0x0040:
|
|
|
|
cardid = BTTV_BOARD_OSPREY500;
|
|
|
|
break;
|
|
|
|
case 0x0050:
|
|
|
|
case 0x0056:
|
|
|
|
cardid = BTTV_BOARD_OSPREY540;
|
|
|
|
/* bttv_osprey_540_init(btv); */
|
|
|
|
break;
|
|
|
|
case 0x0060:
|
|
|
|
case 0x0070:
|
|
|
|
case 0x00A0:
|
|
|
|
cardid = BTTV_BOARD_OSPREY2x0;
|
|
|
|
/* enable output on select control lines */
|
|
|
|
gpio_inout(0xffffff,0x000303);
|
|
|
|
break;
|
|
|
|
case 0x00D8:
|
|
|
|
cardid = BTTV_BOARD_OSPREY440;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
/* unknown...leave generic, but get serial # */
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: osprey eeprom: unknown card type 0x%04x\n",
|
|
|
|
btv->c.nr, type);
|
2007-07-22 07:26:40 +07:00
|
|
|
break;
|
|
|
|
}
|
2008-05-21 10:32:21 +07:00
|
|
|
serial = get_unaligned_be32((__be32 *)(ee+6));
|
2007-07-22 07:26:40 +07:00
|
|
|
}
|
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: osprey eeprom: card=%d '%s' serial=%u\n",
|
|
|
|
btv->c.nr, cardid,
|
|
|
|
cardid > 0 ? bttv_tvcards[cardid].name : "Unknown", serial);
|
2007-07-22 07:26:40 +07:00
|
|
|
|
|
|
|
if (cardid<0 || btv->c.type == cardid)
|
|
|
|
return;
|
|
|
|
|
|
|
|
/* card type isn't set correctly */
|
|
|
|
if (card[btv->c.nr] < bttv_num_tvcards) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_warn("%d: osprey eeprom: Not overriding user specified card type\n",
|
|
|
|
btv->c.nr);
|
2007-07-22 07:26:40 +07:00
|
|
|
} else {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: osprey eeprom: Changing card type from %d to %d\n",
|
|
|
|
btv->c.nr, btv->c.type, cardid);
|
2007-07-22 07:26:40 +07:00
|
|
|
btv->c.type = cardid;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/* AVermedia specific stuff, from bktr_card.c */
|
|
|
|
|
|
|
|
static int tuner_0_table[] = {
|
2005-11-09 12:37:43 +07:00
|
|
|
TUNER_PHILIPS_NTSC, TUNER_PHILIPS_PAL /* PAL-BG*/,
|
|
|
|
TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL /* PAL-I*/,
|
|
|
|
TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL,
|
|
|
|
TUNER_PHILIPS_SECAM, TUNER_PHILIPS_SECAM,
|
|
|
|
TUNER_PHILIPS_SECAM, TUNER_PHILIPS_PAL,
|
2005-04-17 05:20:36 +07:00
|
|
|
TUNER_PHILIPS_FM1216ME_MK3 };
|
|
|
|
|
|
|
|
static int tuner_1_table[] = {
|
2005-11-09 12:37:43 +07:00
|
|
|
TUNER_TEMIC_NTSC, TUNER_TEMIC_PAL,
|
2005-04-17 05:20:36 +07:00
|
|
|
TUNER_TEMIC_PAL, TUNER_TEMIC_PAL,
|
|
|
|
TUNER_TEMIC_PAL, TUNER_TEMIC_PAL,
|
2005-11-09 12:37:43 +07:00
|
|
|
TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */
|
|
|
|
TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL};
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2012-12-22 04:17:53 +07:00
|
|
|
static void avermedia_eeprom(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2008-09-04 03:11:54 +07:00
|
|
|
int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
tuner_make = (eeprom_data[0x41] & 0x7);
|
2005-11-09 12:37:43 +07:00
|
|
|
tuner_tv_fm = (eeprom_data[0x41] & 0x18) >> 3;
|
|
|
|
tuner_format = (eeprom_data[0x42] & 0xf0) >> 4;
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->has_remote = (eeprom_data[0x42] & 0x01);
|
|
|
|
|
|
|
|
if (tuner_make == 0 || tuner_make == 2)
|
2008-09-04 03:11:54 +07:00
|
|
|
if (tuner_format <= 0x0a)
|
|
|
|
tuner_type = tuner_0_table[tuner_format];
|
2005-04-17 05:20:36 +07:00
|
|
|
if (tuner_make == 1)
|
2008-09-04 03:11:54 +07:00
|
|
|
if (tuner_format <= 9)
|
|
|
|
tuner_type = tuner_1_table[tuner_format];
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (tuner_make == 4)
|
2008-09-04 03:11:54 +07:00
|
|
|
if (tuner_format == 0x09)
|
|
|
|
tuner_type = TUNER_LG_NTSC_NEW_TAPC; /* TAPC-G702P */
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Avermedia eeprom[0x%02x%02x]: tuner=",
|
2008-09-04 03:11:54 +07:00
|
|
|
btv->c.nr, eeprom_data[0x41], eeprom_data[0x42]);
|
|
|
|
if (tuner_type) {
|
|
|
|
btv->tuner_type = tuner_type;
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_cont("%d", tuner_type);
|
2005-04-17 05:20:36 +07:00
|
|
|
} else
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_cont("Unknown type");
|
|
|
|
pr_cont(" radio:%s remote control:%s\n",
|
2005-04-17 05:20:36 +07:00
|
|
|
tuner_tv_fm ? "yes" : "no",
|
|
|
|
btv->has_remote ? "yes" : "no");
|
|
|
|
}
|
|
|
|
|
2009-01-29 07:32:59 +07:00
|
|
|
/*
|
|
|
|
* For Voodoo TV/FM and Voodoo 200. These cards' tuners use a TDA9880
|
|
|
|
* analog demod, which is not I2C controlled like the newer and more common
|
|
|
|
* TDA9887 series. Instead is has two tri-state input pins, S0 and S1,
|
|
|
|
* that control the IF for the video and audio. Apparently, bttv GPIO
|
|
|
|
* 0x10000 is connected to S0. S0 low selects a 38.9 MHz VIF for B/G/D/K/I
|
|
|
|
* (i.e., PAL) while high selects 45.75 MHz for M/N (i.e., NTSC).
|
|
|
|
*/
|
|
|
|
u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2009-01-29 07:32:59 +07:00
|
|
|
|
2013-03-21 23:51:16 +07:00
|
|
|
if (btv->audio_input == TVAUDIO_INPUT_TUNER) {
|
2009-01-29 07:32:59 +07:00
|
|
|
if (bttv_tvnorms[btv->tvnorm].v4l2_id & V4L2_STD_MN)
|
|
|
|
gpiobits |= 0x10000;
|
|
|
|
else
|
|
|
|
gpiobits &= ~0x10000;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
2009-01-29 07:32:59 +07:00
|
|
|
|
|
|
|
gpio_bits(bttv_tvcards[btv->c.type].gpiomask, gpiobits);
|
|
|
|
return gpiobits;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* reset/enable the MSP on some Hauppauge cards
|
2005-11-09 12:36:46 +07:00
|
|
|
* Thanks to Kyösti Mälkki (kmalkki@cc.hut.fi)!
|
2005-04-17 05:20:36 +07:00
|
|
|
*
|
|
|
|
* Hauppauge: pin 5
|
|
|
|
* Voodoo: pin 20
|
|
|
|
*/
|
2012-12-22 04:17:53 +07:00
|
|
|
static void boot_msp34xx(struct bttv *btv, int pin)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
int mask = (1 << pin);
|
|
|
|
|
|
|
|
gpio_inout(mask,mask);
|
|
|
|
gpio_bits(mask,0);
|
2008-09-02 03:32:10 +07:00
|
|
|
mdelay(2);
|
|
|
|
udelay(500);
|
2005-04-17 05:20:36 +07:00
|
|
|
gpio_bits(mask,mask);
|
|
|
|
|
|
|
|
if (bttv_gpio)
|
|
|
|
bttv_gpio_tracking(btv,"msp34xx");
|
|
|
|
if (bttv_verbose)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Hauppauge/Voodoo msp34xx: reset line init [%d]\n",
|
|
|
|
btv->c.nr, pin);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/* Imagenation L-Model PXC200 Framegrabber */
|
|
|
|
/* This is basically the same procedure as
|
|
|
|
* used by Alessandro Rubini in his pxc200
|
|
|
|
* driver, but using BTTV functions */
|
|
|
|
|
2012-12-22 04:17:53 +07:00
|
|
|
static void init_PXC200(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2012-12-22 04:17:53 +07:00
|
|
|
static int vals[] = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, 0x01, 0x02,
|
|
|
|
0x03, 0x04, 0x05, 0x06, 0x00 };
|
2005-04-17 05:20:36 +07:00
|
|
|
unsigned int i;
|
|
|
|
int tmp;
|
|
|
|
u32 val;
|
|
|
|
|
|
|
|
/* Initialise GPIO-connevted stuff */
|
|
|
|
gpio_inout(0xffffff, (1<<13));
|
|
|
|
gpio_write(0);
|
|
|
|
udelay(3);
|
|
|
|
gpio_write(1<<13);
|
|
|
|
/* GPIO inputs are pulled up, so no need to drive
|
|
|
|
* reset pin any longer */
|
|
|
|
gpio_bits(0xffffff, 0);
|
|
|
|
if (bttv_gpio)
|
|
|
|
bttv_gpio_tracking(btv,"pxc200");
|
|
|
|
|
|
|
|
/* we could/should try and reset/control the AD pots? but
|
|
|
|
right now we simply turned off the crushing. Without
|
|
|
|
this the AGC drifts drifts
|
|
|
|
remember the EN is reverse logic -->
|
|
|
|
setting BT848_ADC_AGC_EN disable the AGC
|
|
|
|
tboult@eecs.lehigh.edu
|
|
|
|
*/
|
|
|
|
|
|
|
|
btwrite(BT848_ADC_RESERVED|BT848_ADC_AGC_EN, BT848_ADC);
|
|
|
|
|
|
|
|
/* Initialise MAX517 DAC */
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("Setting DAC reference voltage level ...\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_I2CWrite(btv,0x5E,0,0x80,1);
|
|
|
|
|
|
|
|
/* Initialise 12C508 PIC */
|
|
|
|
/* The I2CWrite and I2CRead commmands are actually to the
|
|
|
|
* same chips - but the R/W bit is included in the address
|
|
|
|
* argument so the numbers are different */
|
|
|
|
|
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("Initialising 12C508 PIC chip ...\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* First of all, enable the clock line. This is used in the PXC200-F */
|
|
|
|
val = btread(BT848_GPIO_DMA_CTL);
|
|
|
|
val |= BT848_GPIO_DMA_CTL_GPCLKMODE;
|
|
|
|
btwrite(val, BT848_GPIO_DMA_CTL);
|
|
|
|
|
|
|
|
/* Then, push to 0 the reset pin long enough to reset the *
|
|
|
|
* device same as above for the reset line, but not the same
|
|
|
|
* value sent to the GPIO-connected stuff
|
|
|
|
* which one is the good one? */
|
|
|
|
gpio_inout(0xffffff,(1<<2));
|
|
|
|
gpio_write(0);
|
|
|
|
udelay(10);
|
|
|
|
gpio_write(1<<2);
|
|
|
|
|
2005-11-09 12:37:43 +07:00
|
|
|
for (i = 0; i < ARRAY_SIZE(vals); i++) {
|
2005-04-17 05:20:36 +07:00
|
|
|
tmp=bttv_I2CWrite(btv,0x1E,0,vals[i],1);
|
|
|
|
if (tmp != -1) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n",
|
2005-04-17 05:20:36 +07:00
|
|
|
vals[i],tmp,bttv_I2CRead(btv,0x1F,NULL));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("PXC200 Initialised\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2005-06-24 12:04:58 +07:00
|
|
|
|
|
|
|
|
2005-06-24 12:04:45 +07:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/*
|
|
|
|
* The Adlink RTV-24 (aka Angelo) has some special initialisation to unlock
|
|
|
|
* it. This apparently involves the following procedure for each 878 chip:
|
|
|
|
*
|
|
|
|
* 1) write 0x00C3FEFF to the GPIO_OUT_EN register
|
|
|
|
*
|
|
|
|
* 2) write to GPIO_DATA
|
|
|
|
* - 0x0E
|
|
|
|
* - sleep 1ms
|
|
|
|
* - 0x10 + 0x0E
|
|
|
|
* - sleep 10ms
|
|
|
|
* - 0x0E
|
|
|
|
* read from GPIO_DATA into buf (uint_32)
|
|
|
|
* - if ( data>>18 & 0x01 != 0) || ( buf>>19 & 0x01 != 1 )
|
|
|
|
* error. ERROR_CPLD_Check_Failed stop.
|
|
|
|
*
|
|
|
|
* 3) write to GPIO_DATA
|
|
|
|
* - write 0x4400 + 0x0E
|
|
|
|
* - sleep 10ms
|
|
|
|
* - write 0x4410 + 0x0E
|
|
|
|
* - sleep 1ms
|
|
|
|
* - write 0x0E
|
|
|
|
* read from GPIO_DATA into buf (uint_32)
|
2006-11-10 03:25:28 +07:00
|
|
|
* - if ( buf>>18 & 0x01 ) || ( buf>>19 & 0x01 != 0 )
|
2005-06-24 12:04:45 +07:00
|
|
|
* error. ERROR_CPLD_Check_Failed.
|
|
|
|
*/
|
|
|
|
/* ----------------------------------------------------------------------- */
|
2005-12-01 15:51:35 +07:00
|
|
|
static void
|
2005-06-24 12:04:58 +07:00
|
|
|
init_RTV24 (struct bttv *btv)
|
2005-06-24 12:04:45 +07:00
|
|
|
{
|
2005-06-24 12:04:58 +07:00
|
|
|
uint32_t dataRead = 0;
|
|
|
|
long watchdog_value = 0x0E;
|
2005-06-24 12:04:45 +07:00
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Adlink RTV-24 initialisation in progress ...\n",
|
2005-06-24 12:04:45 +07:00
|
|
|
btv->c.nr);
|
|
|
|
|
2005-06-24 12:04:58 +07:00
|
|
|
btwrite (0x00c3feff, BT848_GPIO_OUT_EN);
|
2005-06-24 12:04:45 +07:00
|
|
|
|
2005-06-24 12:04:58 +07:00
|
|
|
btwrite (0 + watchdog_value, BT848_GPIO_DATA);
|
|
|
|
msleep (1);
|
|
|
|
btwrite (0x10 + watchdog_value, BT848_GPIO_DATA);
|
|
|
|
msleep (10);
|
|
|
|
btwrite (0 + watchdog_value, BT848_GPIO_DATA);
|
2005-06-24 12:04:45 +07:00
|
|
|
|
2005-06-24 12:04:58 +07:00
|
|
|
dataRead = btread (BT848_GPIO_DATA);
|
2005-06-24 12:04:45 +07:00
|
|
|
|
2005-06-24 12:04:58 +07:00
|
|
|
if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 1)) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Adlink RTV-24 initialisation(1) ERROR_CPLD_Check_Failed (read %d)\n",
|
2005-06-24 12:04:58 +07:00
|
|
|
btv->c.nr, dataRead);
|
2005-06-24 12:04:45 +07:00
|
|
|
}
|
|
|
|
|
2005-06-24 12:04:58 +07:00
|
|
|
btwrite (0x4400 + watchdog_value, BT848_GPIO_DATA);
|
|
|
|
msleep (10);
|
|
|
|
btwrite (0x4410 + watchdog_value, BT848_GPIO_DATA);
|
|
|
|
msleep (1);
|
|
|
|
btwrite (watchdog_value, BT848_GPIO_DATA);
|
|
|
|
msleep (1);
|
|
|
|
dataRead = btread (BT848_GPIO_DATA);
|
|
|
|
|
|
|
|
if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 0)) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Adlink RTV-24 initialisation(2) ERROR_CPLD_Check_Failed (read %d)\n",
|
2005-06-24 12:04:58 +07:00
|
|
|
btv->c.nr, dataRead);
|
|
|
|
|
2005-06-24 12:04:45 +07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: Adlink RTV-24 initialisation complete\n", btv->c.nr);
|
2005-06-24 12:04:45 +07:00
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-06-24 12:04:58 +07:00
|
|
|
|
|
|
|
|
2014-03-19 16:50:41 +07:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/*
|
|
|
|
* The PCI-8604PW contains a CPLD, probably an ispMACH 4A, that filters
|
|
|
|
* the PCI REQ signals comming from the four BT878 chips. After power
|
|
|
|
* up, the CPLD does not forward requests to the bus, which prevents
|
|
|
|
* the BT878 from fetching RISC instructions from memory. While the
|
|
|
|
* CPLD is connected to most of the GPIOs of PCI device 0xD, only
|
|
|
|
* five appear to play a role in unlocking the REQ signal. The following
|
|
|
|
* sequence has been determined by trial and error without access to the
|
|
|
|
* original driver.
|
|
|
|
*
|
|
|
|
* Eight GPIOs of device 0xC are provided on connector CN4 (4 in, 4 out).
|
|
|
|
* Devices 0xE and 0xF do not appear to have anything connected to their
|
|
|
|
* GPIOs.
|
|
|
|
*
|
|
|
|
* The correct GPIO_OUT_EN value might have some more bits set. It should
|
|
|
|
* be possible to derive it from a boundary scan of the CPLD. Its JTAG
|
|
|
|
* pins are routed to test points.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
static void
|
|
|
|
init_PCI8604PW(struct bttv *btv)
|
|
|
|
{
|
|
|
|
int state;
|
|
|
|
|
|
|
|
if ((PCI_SLOT(btv->c.pci->devfn) & ~3) != 0xC) {
|
|
|
|
pr_warn("This is not a PCI-8604PW\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PCI_SLOT(btv->c.pci->devfn) != 0xD)
|
|
|
|
return;
|
|
|
|
|
|
|
|
btwrite(0x080002, BT848_GPIO_OUT_EN);
|
|
|
|
|
|
|
|
state = (btread(BT848_GPIO_DATA) >> 21) & 7;
|
|
|
|
|
|
|
|
for (;;) {
|
|
|
|
switch (state) {
|
|
|
|
case 1:
|
|
|
|
case 5:
|
|
|
|
case 6:
|
|
|
|
case 4:
|
|
|
|
pr_debug("PCI-8604PW in state %i, toggling pin\n",
|
|
|
|
state);
|
|
|
|
btwrite(0x080000, BT848_GPIO_DATA);
|
|
|
|
msleep(1);
|
|
|
|
btwrite(0x000000, BT848_GPIO_DATA);
|
|
|
|
msleep(1);
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
pr_info("PCI-8604PW unlocked\n");
|
|
|
|
return;
|
|
|
|
case 0:
|
|
|
|
/* FIXME: If we are in state 7 and toggle GPIO[19] one
|
|
|
|
more time, the CPLD goes into state 0, where PCI bus
|
|
|
|
mastering is inhibited again. We have not managed to
|
|
|
|
get out of that state. */
|
|
|
|
|
|
|
|
pr_err("PCI-8604PW locked until reset\n");
|
|
|
|
return;
|
|
|
|
default:
|
|
|
|
pr_err("PCI-8604PW in unknown state %i\n", state);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
state = (state << 4) | ((btread(BT848_GPIO_DATA) >> 21) & 7);
|
|
|
|
|
|
|
|
switch (state) {
|
|
|
|
case 0x15:
|
|
|
|
case 0x56:
|
|
|
|
case 0x64:
|
|
|
|
case 0x47:
|
|
|
|
/* The transition from state 7 to state 0 is, as explained
|
|
|
|
above, valid but undesired and with this code impossible
|
|
|
|
as we exit as soon as we are in state 7.
|
|
|
|
case 0x70: */
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
pr_err("PCI-8604PW invalid transition %i -> %i\n",
|
|
|
|
state >> 4, state & 7);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
state &= 7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* RemoteVision MX (rv605) muxsel helper [Miguel Freitas]
|
|
|
|
*
|
|
|
|
* This is needed because rv605 don't use a normal multiplex, but a crosspoint
|
|
|
|
* switch instead (CD22M3494E). This IC can have multiple active connections
|
|
|
|
* between Xn (input) and Yn (output) pins. We need to clear any existing
|
|
|
|
* connection prior to establish a new one, pulsing the STROBE pin.
|
|
|
|
*
|
|
|
|
* The board hardwire Y0 (xpoint) to MUX1 and MUXOUT to Yin.
|
|
|
|
* GPIO pins are wired as:
|
2007-10-20 04:10:43 +07:00
|
|
|
* GPIO[0:3] - AX[0:3] (xpoint) - P1[0:3] (microcontroller)
|
|
|
|
* GPIO[4:6] - AY[0:2] (xpoint) - P1[4:6] (microcontroller)
|
|
|
|
* GPIO[7] - DATA (xpoint) - P1[7] (microcontroller)
|
|
|
|
* GPIO[8] - - P3[5] (microcontroller)
|
|
|
|
* GPIO[9] - RESET (xpoint) - P3[6] (microcontroller)
|
|
|
|
* GPIO[10] - STROBE (xpoint) - P3[7] (microcontroller)
|
|
|
|
* GPINTR - - P3[4] (microcontroller)
|
2005-04-17 05:20:36 +07:00
|
|
|
*
|
2007-10-20 04:10:43 +07:00
|
|
|
* The microcontroller is a 80C32 like. It should be possible to change xpoint
|
|
|
|
* configuration either directly (as we are doing) or using the microcontroller
|
2005-04-17 05:20:36 +07:00
|
|
|
* which is also wired to I2C interface. I have no further info on the
|
2007-10-20 04:10:43 +07:00
|
|
|
* microcontroller features, one would need to disassembly the firmware.
|
2005-04-17 05:20:36 +07:00
|
|
|
* note: the vendor refused to give any information on this product, all
|
|
|
|
* that stuff was found using a multimeter! :)
|
|
|
|
*/
|
|
|
|
static void rv605_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
2009-01-29 07:32:59 +07:00
|
|
|
static const u8 muxgpio[] = { 0x3, 0x1, 0x2, 0x4, 0xf, 0x7, 0xe, 0x0,
|
|
|
|
0xd, 0xb, 0xc, 0x6, 0x9, 0x5, 0x8, 0xa };
|
|
|
|
|
|
|
|
gpio_bits(0x07f, muxgpio[input]);
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* reset all conections */
|
|
|
|
gpio_bits(0x200,0x200);
|
|
|
|
mdelay(1);
|
|
|
|
gpio_bits(0x200,0x000);
|
|
|
|
mdelay(1);
|
|
|
|
|
2008-02-03 22:18:59 +07:00
|
|
|
/* create a new connection */
|
2005-04-17 05:20:36 +07:00
|
|
|
gpio_bits(0x480,0x480);
|
|
|
|
mdelay(1);
|
|
|
|
gpio_bits(0x480,0x080);
|
|
|
|
mdelay(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Tibet Systems 'Progress DVR' CS16 muxsel helper [Chris Fanning]
|
|
|
|
*
|
|
|
|
* The CS16 (available on eBay cheap) is a PCI board with four Fusion
|
tree-wide: Assorted spelling fixes
In particular, several occurances of funny versions of 'success',
'unknown', 'therefore', 'acknowledge', 'argument', 'achieve', 'address',
'beginning', 'desirable', 'separate' and 'necessary' are fixed.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Joe Perches <joe@perches.com>
Cc: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2010-02-03 07:01:28 +07:00
|
|
|
* 878A chips, a PCI bridge, an Atmel microcontroller, four sync separator
|
2005-04-17 05:20:36 +07:00
|
|
|
* chips, ten eight input analog multiplexors, a not chip and a few
|
|
|
|
* other components.
|
|
|
|
*
|
|
|
|
* 16 inputs on a secondary bracket are provided and can be selected
|
|
|
|
* from each of the four capture chips. Two of the eight input
|
|
|
|
* multiplexors are used to select from any of the 16 input signals.
|
|
|
|
*
|
|
|
|
* Unsupported hardware capabilities:
|
|
|
|
* . A video output monitor on the secondary bracket can be selected from
|
|
|
|
* one of the 878A chips.
|
|
|
|
* . Another passthrough but I haven't spent any time investigating it.
|
|
|
|
* . Digital I/O (logic level connected to GPIO) is available from an
|
|
|
|
* onboard header.
|
|
|
|
*
|
|
|
|
* The on chip input mux should always be set to 2.
|
|
|
|
* GPIO[16:19] - Video input selection
|
|
|
|
* GPIO[0:3] - Video output monitor select (only available from one 878A)
|
|
|
|
* GPIO[?:?] - Digital I/O.
|
|
|
|
*
|
|
|
|
* There is an ATMEL microcontroller with an 8031 core on board. I have not
|
|
|
|
* determined what function (if any) it provides. With the microcontroller
|
tree-wide: Assorted spelling fixes
In particular, several occurances of funny versions of 'success',
'unknown', 'therefore', 'acknowledge', 'argument', 'achieve', 'address',
'beginning', 'desirable', 'separate' and 'necessary' are fixed.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Joe Perches <joe@perches.com>
Cc: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2010-02-03 07:01:28 +07:00
|
|
|
* and sync separator chips a guess is that it might have to do with video
|
2005-04-17 05:20:36 +07:00
|
|
|
* switching and maybe some digital I/O.
|
|
|
|
*/
|
|
|
|
static void tibetCS16_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
/* video mux */
|
|
|
|
gpio_bits(0x0f0000, input << 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void tibetCS16_init(struct bttv *btv)
|
|
|
|
{
|
|
|
|
/* enable gpio bits, mask obtained via btSpy */
|
|
|
|
gpio_inout(0xffffff, 0x0f7fff);
|
|
|
|
gpio_write(0x0f7fff);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The following routines for the Kodicom-4400r get a little mind-twisting.
|
|
|
|
* There is a "master" controller and three "slave" controllers, together
|
|
|
|
* an analog switch which connects any of 16 cameras to any of the BT87A's.
|
|
|
|
* The analog switch is controlled by the "master", but the detection order
|
|
|
|
* of the four BT878A chips is in an order which I just don't understand.
|
|
|
|
* The "master" is actually the second controller to be detected. The
|
2007-10-20 04:10:43 +07:00
|
|
|
* logic on the board uses logical numbers for the 4 controllers, but
|
2005-04-17 05:20:36 +07:00
|
|
|
* those numbers are different from the detection sequence. When working
|
|
|
|
* with the analog switch, we need to "map" from the detection sequence
|
|
|
|
* over to the board's logical controller number. This mapping sequence
|
|
|
|
* is {3, 0, 2, 1}, i.e. the first controller to be detected is logical
|
|
|
|
* unit 3, the second (which is the master) is logical unit 0, etc.
|
|
|
|
* We need to maintain the status of the analog switch (which of the 16
|
2013-05-15 02:54:44 +07:00
|
|
|
* cameras is connected to which of the 4 controllers) in sw_status array.
|
2005-04-17 05:20:36 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* First a routine to set the analog switch, which controls which camera
|
|
|
|
* is routed to which controller. The switch comprises an X-address
|
|
|
|
* (gpio bits 0-3, representing the camera, ranging from 0-15), and a
|
|
|
|
* Y-address (gpio bits 4-6, representing the controller, ranging from 0-3).
|
|
|
|
* A data value (gpio bit 7) of '1' enables the switch, and '0' disables
|
|
|
|
* the switch. A STROBE bit (gpio bit 8) latches the data value into the
|
|
|
|
* specified address. The idea is to set the address and data, then bring
|
|
|
|
* STROBE high, and finally bring STROBE back to low.
|
|
|
|
*/
|
|
|
|
static void kodicom4400r_write(struct bttv *btv,
|
|
|
|
unsigned char xaddr,
|
|
|
|
unsigned char yaddr,
|
|
|
|
unsigned char data) {
|
|
|
|
unsigned int udata;
|
|
|
|
|
|
|
|
udata = (data << 7) | ((yaddr&3) << 4) | (xaddr&0xf);
|
|
|
|
gpio_bits(0x1ff, udata); /* write ADDR and DAT */
|
|
|
|
gpio_bits(0x1ff, udata | (1 << 8)); /* strobe high */
|
|
|
|
gpio_bits(0x1ff, udata); /* strobe low */
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Next the mux select. Both the "master" and "slave" 'cards' (controllers)
|
|
|
|
* use this routine. The routine finds the "master" for the card, maps
|
|
|
|
* the controller number from the detected position over to the logical
|
|
|
|
* number, writes the appropriate data to the analog switch, and housekeeps
|
|
|
|
* the local copy of the switch information. The parameter 'input' is the
|
|
|
|
* requested camera number (0 - 15).
|
|
|
|
*/
|
|
|
|
static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
int xaddr, yaddr;
|
|
|
|
struct bttv *mctlr;
|
|
|
|
static unsigned char map[4] = {3, 0, 2, 1};
|
|
|
|
|
|
|
|
mctlr = master[btv->c.nr];
|
|
|
|
if (mctlr == NULL) { /* ignore if master not yet detected */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
yaddr = (btv->c.nr - mctlr->c.nr + 1) & 3; /* the '&' is for safety */
|
|
|
|
yaddr = map[yaddr];
|
|
|
|
xaddr = input & 0xf;
|
|
|
|
/* Check if the controller/camera pair has changed, else ignore */
|
2013-05-15 02:54:44 +07:00
|
|
|
if (mctlr->sw_status[yaddr] != xaddr)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
/* "open" the old switch, "close" the new one, save the new */
|
2013-05-15 02:54:44 +07:00
|
|
|
kodicom4400r_write(mctlr, mctlr->sw_status[yaddr], yaddr, 0);
|
|
|
|
mctlr->sw_status[yaddr] = xaddr;
|
2005-04-17 05:20:36 +07:00
|
|
|
kodicom4400r_write(mctlr, xaddr, yaddr, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* During initialisation, we need to reset the analog switch. We
|
|
|
|
* also preset the switch to map the 4 connectors on the card to the
|
|
|
|
* *user's* (see above description of kodicom4400r_muxsel) channels
|
|
|
|
* 0 through 3
|
|
|
|
*/
|
|
|
|
static void kodicom4400r_init(struct bttv *btv)
|
|
|
|
{
|
|
|
|
int ix;
|
|
|
|
|
|
|
|
gpio_inout(0x0003ff, 0x0003ff);
|
|
|
|
gpio_write(1 << 9); /* reset MUX */
|
|
|
|
gpio_write(0);
|
|
|
|
/* Preset camera 0 to the 4 controllers */
|
2007-03-29 08:37:23 +07:00
|
|
|
for (ix = 0; ix < 4; ix++) {
|
2013-05-15 02:54:44 +07:00
|
|
|
btv->sw_status[ix] = ix;
|
2005-04-17 05:20:36 +07:00
|
|
|
kodicom4400r_write(btv, ix, ix, 1);
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Since this is the "master", we need to set up the
|
|
|
|
* other three controller chips' pointers to this structure
|
|
|
|
* for later use in the muxsel routine.
|
|
|
|
*/
|
|
|
|
if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3))
|
|
|
|
return;
|
|
|
|
master[btv->c.nr-1] = btv;
|
|
|
|
master[btv->c.nr] = btv;
|
|
|
|
master[btv->c.nr+1] = btv;
|
|
|
|
master[btv->c.nr+2] = btv;
|
|
|
|
}
|
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
/* The Grandtec X-Guard framegrabber card uses two Dual 4-channel
|
|
|
|
* video multiplexers to provide up to 16 video inputs. These
|
|
|
|
* multiplexers are controlled by the lower 8 GPIO pins of the
|
|
|
|
* bt878. The multiplexers probably Pericom PI5V331Q or similar.
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
* xxx0 is pin xxx of multiplexer U5,
|
|
|
|
* yyy1 is pin yyy of multiplexer U2
|
|
|
|
*/
|
2005-04-17 05:20:36 +07:00
|
|
|
#define ENA0 0x01
|
|
|
|
#define ENB0 0x02
|
|
|
|
#define ENA1 0x04
|
|
|
|
#define ENB1 0x08
|
|
|
|
|
|
|
|
#define IN10 0x10
|
|
|
|
#define IN00 0x20
|
|
|
|
#define IN11 0x40
|
|
|
|
#define IN01 0x80
|
|
|
|
|
|
|
|
static void xguard_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
static const int masks[] = {
|
2005-11-09 12:37:43 +07:00
|
|
|
ENB0, ENB0|IN00, ENB0|IN10, ENB0|IN00|IN10,
|
|
|
|
ENA0, ENA0|IN00, ENA0|IN10, ENA0|IN00|IN10,
|
|
|
|
ENB1, ENB1|IN01, ENB1|IN11, ENB1|IN01|IN11,
|
|
|
|
ENA1, ENA1|IN01, ENA1|IN11, ENA1|IN01|IN11,
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
gpio_write(masks[input%16]);
|
|
|
|
}
|
|
|
|
static void picolo_tetra_init(struct bttv *btv)
|
|
|
|
{
|
|
|
|
/*This is the video input redirection fonctionality : I DID NOT USED IT. */
|
|
|
|
btwrite (0x08<<16,BT848_GPIO_DATA);/*GPIO[19] [==> 4053 B+C] set to 1 */
|
|
|
|
btwrite (0x04<<16,BT848_GPIO_DATA);/*GPIO[18] [==> 4053 A] set to 1*/
|
|
|
|
}
|
|
|
|
static void picolo_tetra_muxsel (struct bttv* btv, unsigned int input)
|
|
|
|
{
|
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
dprintk("%d : picolo_tetra_muxsel => input = %d\n", btv->c.nr, input);
|
2005-04-17 05:20:36 +07:00
|
|
|
/*Just set the right path in the analog multiplexers : channel 1 -> 4 ==> Analog Mux ==> MUX0*/
|
|
|
|
/*GPIO[20]&GPIO[21] used to choose the right input*/
|
|
|
|
btwrite (input<<20,BT848_GPIO_DATA);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ivc120_muxsel [Added by Alan Garfield <alan@fromorbit.com>]
|
|
|
|
*
|
|
|
|
* The IVC120G security card has 4 i2c controlled TDA8540 matrix
|
|
|
|
* swichers to provide 16 channels to MUX0. The TDA8540's have
|
2006-06-26 23:35:02 +07:00
|
|
|
* 4 independent outputs and as such the IVC120G also has the
|
2005-04-17 05:20:36 +07:00
|
|
|
* optional "Monitor Out" bus. This allows the card to be looking
|
|
|
|
* at one input while the monitor is looking at another.
|
|
|
|
*
|
|
|
|
* Since I've couldn't be bothered figuring out how to add an
|
2011-03-31 08:57:33 +07:00
|
|
|
* independent muxsel for the monitor bus, I've just set it to
|
2005-04-17 05:20:36 +07:00
|
|
|
* whatever the card is looking at.
|
|
|
|
*
|
|
|
|
* OUT0 of the TDA8540's is connected to MUX0 (0x03)
|
|
|
|
* OUT1 of the TDA8540's is connected to "Monitor Out" (0x0C)
|
|
|
|
*
|
|
|
|
* TDA8540_ALT3 IN0-3 = Channel 13 - 16 (0x03)
|
|
|
|
* TDA8540_ALT4 IN0-3 = Channel 1 - 4 (0x03)
|
|
|
|
* TDA8540_ALT5 IN0-3 = Channel 5 - 8 (0x03)
|
|
|
|
* TDA8540_ALT6 IN0-3 = Channel 9 - 12 (0x03)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* All 7 possible sub-ids for the TDA8540 Matrix Switcher */
|
|
|
|
#define I2C_TDA8540 0x90
|
|
|
|
#define I2C_TDA8540_ALT1 0x92
|
|
|
|
#define I2C_TDA8540_ALT2 0x94
|
|
|
|
#define I2C_TDA8540_ALT3 0x96
|
|
|
|
#define I2C_TDA8540_ALT4 0x98
|
|
|
|
#define I2C_TDA8540_ALT5 0x9a
|
|
|
|
#define I2C_TDA8540_ALT6 0x9c
|
|
|
|
|
|
|
|
static void ivc120_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
2005-09-10 03:03:39 +07:00
|
|
|
/* Simple maths */
|
2005-04-17 05:20:36 +07:00
|
|
|
int key = input % 4;
|
|
|
|
int matrix = input / 4;
|
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
dprintk("%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n",
|
2005-04-17 05:20:36 +07:00
|
|
|
btv->c.nr, input, matrix, key);
|
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
/* Handles the input selection on the TDA8540's */
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x00,
|
|
|
|
((matrix == 3) ? (key | key << 2) : 0x00), 1);
|
|
|
|
bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x00,
|
|
|
|
((matrix == 0) ? (key | key << 2) : 0x00), 1);
|
|
|
|
bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x00,
|
|
|
|
((matrix == 1) ? (key | key << 2) : 0x00), 1);
|
|
|
|
bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x00,
|
|
|
|
((matrix == 2) ? (key | key << 2) : 0x00), 1);
|
|
|
|
|
2005-09-10 03:03:39 +07:00
|
|
|
/* Handles the output enables on the TDA8540's */
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x02,
|
2005-09-10 03:03:39 +07:00
|
|
|
((matrix == 3) ? 0x03 : 0x00), 1); /* 13 - 16 */
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x02,
|
2005-09-10 03:03:39 +07:00
|
|
|
((matrix == 0) ? 0x03 : 0x00), 1); /* 1-4 */
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x02,
|
2005-09-10 03:03:39 +07:00
|
|
|
((matrix == 1) ? 0x03 : 0x00), 1); /* 5-8 */
|
2005-04-17 05:20:36 +07:00
|
|
|
bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x02,
|
2005-09-10 03:03:39 +07:00
|
|
|
((matrix == 2) ? 0x03 : 0x00), 1); /* 9-12 */
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2009-01-29 07:32:59 +07:00
|
|
|
/* 878's MUX0 is already selected for input via muxsel values */
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* PXC200 muxsel helper
|
|
|
|
* luke@syseng.anu.edu.au
|
|
|
|
* another transplant
|
|
|
|
* from Alessandro Rubini (rubini@linux.it)
|
|
|
|
*
|
|
|
|
* There are 4 kinds of cards:
|
|
|
|
* PXC200L which is bt848
|
|
|
|
* PXC200F which is bt848 with PIC controlling mux
|
|
|
|
* PXC200AL which is bt878
|
|
|
|
* PXC200AF which is bt878 with PIC controlling mux
|
|
|
|
*/
|
|
|
|
#define PX_CFG_PXC200F 0x01
|
|
|
|
#define PX_FLAG_PXC200A 0x00001000 /* a pxc200A is bt-878 based */
|
|
|
|
#define PX_I2C_PIC 0x0f
|
|
|
|
#define PX_PXC200A_CARDID 0x200a1295
|
|
|
|
#define PX_I2C_CMD_CFG 0x00
|
|
|
|
|
|
|
|
static void PXC200_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
2005-11-09 12:37:43 +07:00
|
|
|
int rc;
|
2005-04-17 05:20:36 +07:00
|
|
|
long mux;
|
|
|
|
int bitmask;
|
2005-11-09 12:37:43 +07:00
|
|
|
unsigned char buf[2];
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* Read PIC config to determine if this is a PXC200F */
|
|
|
|
/* PX_I2C_CMD_CFG*/
|
|
|
|
buf[0]=0;
|
|
|
|
buf[1]=0;
|
|
|
|
rc=bttv_I2CWrite(btv,(PX_I2C_PIC<<1),buf[0],buf[1],1);
|
|
|
|
if (rc) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_debug("%d: PXC200_muxsel: pic cfg write failed:%d\n",
|
|
|
|
btv->c.nr, rc);
|
2005-04-17 05:20:36 +07:00
|
|
|
/* not PXC ? do nothing */
|
2011-08-22 05:56:48 +07:00
|
|
|
return;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
rc=bttv_I2CRead(btv,(PX_I2C_PIC<<1),NULL);
|
|
|
|
if (!(rc & PX_CFG_PXC200F)) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_debug("%d: PXC200_muxsel: not PXC200F rc:%d\n",
|
|
|
|
btv->c.nr, rc);
|
|
|
|
return;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* The multiplexer in the 200F is handled by the GPIO port */
|
|
|
|
/* get correct mapping between inputs */
|
|
|
|
/* mux = bttv_tvcards[btv->type].muxsel[input] & 3; */
|
|
|
|
/* ** not needed!? */
|
|
|
|
mux = input;
|
|
|
|
|
|
|
|
/* make sure output pins are enabled */
|
|
|
|
/* bitmask=0x30f; */
|
|
|
|
bitmask=0x302;
|
|
|
|
/* check whether we have a PXC200A */
|
2005-11-09 12:37:43 +07:00
|
|
|
if (btv->cardid == PX_PXC200A_CARDID) {
|
2005-04-17 05:20:36 +07:00
|
|
|
bitmask ^= 0x180; /* use 7 and 9, not 8 and 9 */
|
|
|
|
bitmask |= 7<<4; /* the DAC */
|
|
|
|
}
|
|
|
|
btwrite(bitmask, BT848_GPIO_OUT_EN);
|
|
|
|
|
|
|
|
bitmask = btread(BT848_GPIO_DATA);
|
2005-11-09 12:37:43 +07:00
|
|
|
if (btv->cardid == PX_PXC200A_CARDID)
|
2005-04-17 05:20:36 +07:00
|
|
|
bitmask = (bitmask & ~0x280) | ((mux & 2) << 8) | ((mux & 1) << 7);
|
|
|
|
else /* older device */
|
|
|
|
bitmask = (bitmask & ~0x300) | ((mux & 3) << 8);
|
|
|
|
btwrite(bitmask,BT848_GPIO_DATA);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Was "to be safe, set the bt848 to input 0"
|
|
|
|
* Actually, since it's ok at load time, better not messing
|
|
|
|
* with these bits (on PXC200AF you need to set mux 2 here)
|
|
|
|
*
|
|
|
|
* needed because bttv-driver sets mux before calling this function
|
|
|
|
*/
|
2005-11-09 12:37:43 +07:00
|
|
|
if (btv->cardid == PX_PXC200A_CARDID)
|
2005-04-17 05:20:36 +07:00
|
|
|
btaor(2<<5, ~BT848_IFORM_MUXSEL, BT848_IFORM);
|
|
|
|
else /* older device */
|
|
|
|
btand(~BT848_IFORM_MUXSEL,BT848_IFORM);
|
|
|
|
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_debug("%d: setting input channel to:%d\n", btv->c.nr, (int)mux);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2009-01-29 07:32:59 +07:00
|
|
|
static void phytec_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
unsigned int mux = input % 4;
|
|
|
|
|
|
|
|
if (input == btv->svhs)
|
|
|
|
mux = 0;
|
|
|
|
|
|
|
|
gpio_bits(0x3, mux);
|
|
|
|
}
|
|
|
|
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
/*
|
|
|
|
* GeoVision GV-800(S) functions
|
|
|
|
* Bruno Christo <bchristo@inf.ufsm.br>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This is a function to control the analog switch, which determines which
|
|
|
|
* camera is routed to which controller. The switch comprises an X-address
|
|
|
|
* (gpio bits 0-3, representing the camera, ranging from 0-15), and a
|
|
|
|
* Y-address (gpio bits 4-6, representing the controller, ranging from 0-3).
|
|
|
|
* A data value (gpio bit 18) of '1' enables the switch, and '0' disables
|
|
|
|
* the switch. A STROBE bit (gpio bit 17) latches the data value into the
|
|
|
|
* specified address. There is also a chip select (gpio bit 16).
|
|
|
|
* The idea is to set the address and chip select together, bring
|
|
|
|
* STROBE high, write the data, and finally bring STROBE back to low.
|
|
|
|
*/
|
|
|
|
static void gv800s_write(struct bttv *btv,
|
|
|
|
unsigned char xaddr,
|
|
|
|
unsigned char yaddr,
|
|
|
|
unsigned char data) {
|
|
|
|
/* On the "master" 878A:
|
|
|
|
* GPIO bits 0-9 are used for the analog switch:
|
|
|
|
* 00 - 03: camera selector
|
|
|
|
* 04 - 06: 878A (controller) selector
|
|
|
|
* 16: cselect
|
|
|
|
* 17: strobe
|
|
|
|
* 18: data (1->on, 0->off)
|
|
|
|
* 19: reset
|
|
|
|
*/
|
|
|
|
const u32 ADDRESS = ((xaddr&0xf) | (yaddr&3)<<4);
|
|
|
|
const u32 CSELECT = 1<<16;
|
|
|
|
const u32 STROBE = 1<<17;
|
|
|
|
const u32 DATA = data<<18;
|
|
|
|
|
|
|
|
gpio_bits(0x1007f, ADDRESS | CSELECT); /* write ADDRESS and CSELECT */
|
|
|
|
gpio_bits(0x20000, STROBE); /* STROBE high */
|
|
|
|
gpio_bits(0x40000, DATA); /* write DATA */
|
|
|
|
gpio_bits(0x20000, ~STROBE); /* STROBE low */
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* GeoVision GV-800(S) muxsel
|
|
|
|
*
|
|
|
|
* Each of the 4 cards (controllers) use this function.
|
|
|
|
* The controller using this function selects the input through the GPIO pins
|
|
|
|
* of the "master" card. A pointer to this card is stored in master[btv->c.nr].
|
|
|
|
*
|
|
|
|
* The parameter 'input' is the requested camera number (0-4) on the controller.
|
|
|
|
* The map array has the address of each input. Note that the addresses in the
|
|
|
|
* array are in the sequence the original GeoVision driver uses, that is, set
|
|
|
|
* every controller to input 0, then to input 1, 2, 3, repeat. This means that
|
|
|
|
* the physical "camera 1" connector corresponds to controller 0 input 0,
|
|
|
|
* "camera 2" corresponds to controller 1 input 0, and so on.
|
|
|
|
*
|
|
|
|
* After getting the input address, the function then writes the appropriate
|
|
|
|
* data to the analog switch, and housekeeps the local copy of the switch
|
|
|
|
* information.
|
|
|
|
*/
|
|
|
|
static void gv800s_muxsel(struct bttv *btv, unsigned int input)
|
|
|
|
{
|
|
|
|
struct bttv *mctlr;
|
|
|
|
int xaddr, yaddr;
|
|
|
|
static unsigned int map[4][4] = { { 0x0, 0x4, 0xa, 0x6 },
|
|
|
|
{ 0x1, 0x5, 0xb, 0x7 },
|
|
|
|
{ 0x2, 0x8, 0xc, 0xe },
|
|
|
|
{ 0x3, 0x9, 0xd, 0xf } };
|
|
|
|
input = input%4;
|
|
|
|
mctlr = master[btv->c.nr];
|
|
|
|
if (mctlr == NULL) {
|
|
|
|
/* do nothing until the "master" is detected */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
yaddr = (btv->c.nr - mctlr->c.nr) & 3;
|
|
|
|
xaddr = map[yaddr][input] & 0xf;
|
|
|
|
|
|
|
|
/* Check if the controller/camera pair has changed, ignore otherwise */
|
2013-05-15 02:54:44 +07:00
|
|
|
if (mctlr->sw_status[yaddr] != xaddr) {
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
/* disable the old switch, enable the new one and save status */
|
2013-05-15 02:54:44 +07:00
|
|
|
gv800s_write(mctlr, mctlr->sw_status[yaddr], yaddr, 0);
|
|
|
|
mctlr->sw_status[yaddr] = xaddr;
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
gv800s_write(mctlr, xaddr, yaddr, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* GeoVision GV-800(S) "master" chip init */
|
|
|
|
static void gv800s_init(struct bttv *btv)
|
|
|
|
{
|
|
|
|
int ix;
|
|
|
|
|
|
|
|
gpio_inout(0xf107f, 0xf107f);
|
|
|
|
gpio_write(1<<19); /* reset the analog MUX */
|
|
|
|
gpio_write(0);
|
|
|
|
|
|
|
|
/* Preset camera 0 to the 4 controllers */
|
|
|
|
for (ix = 0; ix < 4; ix++) {
|
2013-05-15 02:54:44 +07:00
|
|
|
btv->sw_status[ix] = ix;
|
V4L/DVB (10827): Add support for GeoVision GV-800(S)
I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.
The GV-800(S) is identified as follows:
...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
...
02:00.0 0400: 109e:036e (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdfff000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:00.1 0480: 109e:0878 (rev 11)
Subsystem: 800a:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffe000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:04.0 0400: 109e:036e (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffd000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:04.1 0480: 109e:0878 (rev 11)
Subsystem: 800b:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffc000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:08.0 0400: 109e:036e (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffb000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:08.1 0480: 109e:0878 (rev 11)
Subsystem: 800c:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdffa000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
02:0c.0 0400: 109e:036e (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff9000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel modules: bttv
02:0c.1 0480: 109e:0878 (rev 11)
Subsystem: 800d:763d
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at cdff8000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.
After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.
I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.
Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-03 08:38:59 +07:00
|
|
|
gv800s_write(btv, ix, ix, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Inputs on the "master" controller need this brightness fix */
|
|
|
|
bttv_I2CWrite(btv, 0x18, 0x5, 0x90, 1);
|
|
|
|
|
|
|
|
if (btv->c.nr > BTTV_MAX-4)
|
|
|
|
return;
|
|
|
|
/*
|
|
|
|
* Store the "master" controller pointer in the master
|
|
|
|
* array for later use in the muxsel function.
|
|
|
|
*/
|
|
|
|
master[btv->c.nr] = btv;
|
|
|
|
master[btv->c.nr+1] = btv;
|
|
|
|
master[btv->c.nr+2] = btv;
|
|
|
|
master[btv->c.nr+3] = btv;
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/* motherboard chipset specific stuff */
|
|
|
|
|
2007-12-12 05:23:43 +07:00
|
|
|
void __init bttv_check_chipset(void)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
int pcipci_fail = 0;
|
|
|
|
struct pci_dev *dev = NULL;
|
|
|
|
|
2006-09-14 21:53:16 +07:00
|
|
|
if (pci_pci_problems & (PCIPCI_FAIL|PCIAGP_FAIL)) /* should check if target is AGP */
|
2005-04-17 05:20:36 +07:00
|
|
|
pcipci_fail = 1;
|
|
|
|
if (pci_pci_problems & (PCIPCI_TRITON|PCIPCI_NATOMA|PCIPCI_VIAETBF))
|
|
|
|
triton1 = 1;
|
|
|
|
if (pci_pci_problems & PCIPCI_VSFX)
|
|
|
|
vsfx = 1;
|
|
|
|
#ifdef PCIPCI_ALIMAGIK
|
|
|
|
if (pci_pci_problems & PCIPCI_ALIMAGIK)
|
|
|
|
latency = 0x0A;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* print warnings about any quirks found */
|
|
|
|
if (triton1)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("Host bridge needs ETBF enabled\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
if (vsfx)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("Host bridge needs VSFX enabled\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
if (pcipci_fail) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("bttv and your chipset may not work together\n");
|
2005-08-05 02:53:30 +07:00
|
|
|
if (!no_overlay) {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("overlay will be disabled\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
no_overlay = 1;
|
2005-08-05 02:53:30 +07:00
|
|
|
} else {
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("overlay forced. Use this option at your own risk.\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if (UNSET != latency)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("pci latency fixup [%d]\n", latency);
|
2005-11-09 12:36:51 +07:00
|
|
|
while ((dev = pci_get_device(PCI_VENDOR_ID_INTEL,
|
2005-04-17 05:20:36 +07:00
|
|
|
PCI_DEVICE_ID_INTEL_82441, dev))) {
|
2005-11-09 12:37:43 +07:00
|
|
|
unsigned char b;
|
2005-04-17 05:20:36 +07:00
|
|
|
pci_read_config_byte(dev, 0x53, &b);
|
|
|
|
if (bttv_debug)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("Host bridge: 82441FX Natoma, bufcon=0x%02x\n",
|
|
|
|
b);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-12-22 04:17:53 +07:00
|
|
|
int bttv_handle_chipset(struct bttv *btv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2005-11-09 12:37:43 +07:00
|
|
|
unsigned char command;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (!triton1 && !vsfx && UNSET == latency)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
if (bttv_verbose) {
|
|
|
|
if (triton1)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: enabling ETBF (430FX/VP3 compatibility)\n",
|
|
|
|
btv->c.nr);
|
2005-04-17 05:20:36 +07:00
|
|
|
if (vsfx && btv->id >= 878)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: enabling VSFX\n", btv->c.nr);
|
2005-04-17 05:20:36 +07:00
|
|
|
if (UNSET != latency)
|
2011-08-22 05:56:48 +07:00
|
|
|
pr_info("%d: setting pci timer to %d\n",
|
|
|
|
btv->c.nr, latency);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
if (btv->id < 878) {
|
|
|
|
/* bt848 (mis)uses a bit in the irq mask for etbf */
|
|
|
|
if (triton1)
|
|
|
|
btv->triton1 = BT848_INT_ETBF;
|
|
|
|
} else {
|
|
|
|
/* bt878 has a bit in the pci config space for it */
|
2005-11-09 12:37:43 +07:00
|
|
|
pci_read_config_byte(btv->c.pci, BT878_DEVCTRL, &command);
|
2005-04-17 05:20:36 +07:00
|
|
|
if (triton1)
|
|
|
|
command |= BT878_EN_TBFX;
|
|
|
|
if (vsfx)
|
|
|
|
command |= BT878_EN_VSFX;
|
2005-11-09 12:37:43 +07:00
|
|
|
pci_write_config_byte(btv->c.pci, BT878_DEVCTRL, command);
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
if (UNSET != latency)
|
|
|
|
pci_write_config_byte(btv->c.pci, PCI_LATENCY_TIMER, latency);
|
|
|
|
return 0;
|
|
|
|
}
|