diff options
Diffstat (limited to 'drivers/media/pci/bt8xx/bttv-cards.c')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-cards.c | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-cards.c b/drivers/media/pci/bt8xx/bttv-cards.c index 38952faaffda..c4c59175e52c 100644 --- a/drivers/media/pci/bt8xx/bttv-cards.c +++ b/drivers/media/pci/bt8xx/bttv-cards.c | |||
@@ -87,7 +87,7 @@ static int tea5757_read(struct bttv *btv); | |||
87 | static int tea5757_write(struct bttv *btv, int value); | 87 | static int tea5757_write(struct bttv *btv, int value); |
88 | static void identify_by_eeprom(struct bttv *btv, | 88 | static void identify_by_eeprom(struct bttv *btv, |
89 | unsigned char eeprom_data[256]); | 89 | unsigned char eeprom_data[256]); |
90 | static int __devinit pvr_boot(struct bttv *btv); | 90 | static int pvr_boot(struct bttv *btv); |
91 | 91 | ||
92 | /* config variables */ | 92 | /* config variables */ |
93 | static unsigned int triton1; | 93 | static unsigned int triton1; |
@@ -151,7 +151,7 @@ static struct CARD { | |||
151 | unsigned id; | 151 | unsigned id; |
152 | int cardnr; | 152 | int cardnr; |
153 | char *name; | 153 | char *name; |
154 | } cards[] __devinitdata = { | 154 | } cards[] = { |
155 | { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, | 155 | { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, |
156 | { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, | 156 | { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, |
157 | { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, | 157 | { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, |
@@ -2837,7 +2837,7 @@ static unsigned char eeprom_data[256]; | |||
2837 | /* | 2837 | /* |
2838 | * identify card | 2838 | * identify card |
2839 | */ | 2839 | */ |
2840 | void __devinit bttv_idcard(struct bttv *btv) | 2840 | void bttv_idcard(struct bttv *btv) |
2841 | { | 2841 | { |
2842 | unsigned int gpiobits; | 2842 | unsigned int gpiobits; |
2843 | int i,type; | 2843 | int i,type; |
@@ -3235,7 +3235,7 @@ static void bttv_reset_audio(struct bttv *btv) | |||
3235 | } | 3235 | } |
3236 | 3236 | ||
3237 | /* initialization part one -- before registering i2c bus */ | 3237 | /* initialization part one -- before registering i2c bus */ |
3238 | void __devinit bttv_init_card1(struct bttv *btv) | 3238 | void bttv_init_card1(struct bttv *btv) |
3239 | { | 3239 | { |
3240 | switch (btv->c.type) { | 3240 | switch (btv->c.type) { |
3241 | case BTTV_BOARD_HAUPPAUGE: | 3241 | case BTTV_BOARD_HAUPPAUGE: |
@@ -3267,7 +3267,7 @@ void __devinit bttv_init_card1(struct bttv *btv) | |||
3267 | } | 3267 | } |
3268 | 3268 | ||
3269 | /* initialization part two -- after registering i2c bus */ | 3269 | /* initialization part two -- after registering i2c bus */ |
3270 | void __devinit bttv_init_card2(struct bttv *btv) | 3270 | void bttv_init_card2(struct bttv *btv) |
3271 | { | 3271 | { |
3272 | btv->tuner_type = UNSET; | 3272 | btv->tuner_type = UNSET; |
3273 | 3273 | ||
@@ -3571,7 +3571,7 @@ no_audio: | |||
3571 | 3571 | ||
3572 | 3572 | ||
3573 | /* initialize the tuner */ | 3573 | /* initialize the tuner */ |
3574 | void __devinit bttv_init_tuner(struct bttv *btv) | 3574 | void bttv_init_tuner(struct bttv *btv) |
3575 | { | 3575 | { |
3576 | int addr = ADDR_UNSET; | 3576 | int addr = ADDR_UNSET; |
3577 | 3577 | ||
@@ -3635,7 +3635,7 @@ static void modtec_eeprom(struct bttv *btv) | |||
3635 | } | 3635 | } |
3636 | } | 3636 | } |
3637 | 3637 | ||
3638 | static void __devinit hauppauge_eeprom(struct bttv *btv) | 3638 | static void hauppauge_eeprom(struct bttv *btv) |
3639 | { | 3639 | { |
3640 | struct tveeprom tv; | 3640 | struct tveeprom tv; |
3641 | 3641 | ||
@@ -3709,8 +3709,7 @@ static int terratec_active_radio_upgrade(struct bttv *btv) | |||
3709 | #define BTTV_ALT_DCLK 0x100000 | 3709 | #define BTTV_ALT_DCLK 0x100000 |
3710 | #define BTTV_ALT_NCONFIG 0x800000 | 3710 | #define BTTV_ALT_NCONFIG 0x800000 |
3711 | 3711 | ||
3712 | static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro, | 3712 | static int pvr_altera_load(struct bttv *btv, const u8 *micro, u32 microlen) |
3713 | u32 microlen) | ||
3714 | { | 3713 | { |
3715 | u32 n; | 3714 | u32 n; |
3716 | u8 bits; | 3715 | u8 bits; |
@@ -3747,7 +3746,7 @@ static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro, | |||
3747 | return 0; | 3746 | return 0; |
3748 | } | 3747 | } |
3749 | 3748 | ||
3750 | static int __devinit pvr_boot(struct bttv *btv) | 3749 | static int pvr_boot(struct bttv *btv) |
3751 | { | 3750 | { |
3752 | const struct firmware *fw_entry; | 3751 | const struct firmware *fw_entry; |
3753 | int rc; | 3752 | int rc; |
@@ -3767,7 +3766,7 @@ static int __devinit pvr_boot(struct bttv *btv) | |||
3767 | /* ----------------------------------------------------------------------- */ | 3766 | /* ----------------------------------------------------------------------- */ |
3768 | /* some osprey specific stuff */ | 3767 | /* some osprey specific stuff */ |
3769 | 3768 | ||
3770 | static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256]) | 3769 | static void osprey_eeprom(struct bttv *btv, const u8 ee[256]) |
3771 | { | 3770 | { |
3772 | int i; | 3771 | int i; |
3773 | u32 serial = 0; | 3772 | u32 serial = 0; |
@@ -3898,7 +3897,7 @@ static int tuner_1_table[] = { | |||
3898 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ | 3897 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ |
3899 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; | 3898 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; |
3900 | 3899 | ||
3901 | static void __devinit avermedia_eeprom(struct bttv *btv) | 3900 | static void avermedia_eeprom(struct bttv *btv) |
3902 | { | 3901 | { |
3903 | int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0; | 3902 | int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0; |
3904 | 3903 | ||
@@ -3960,7 +3959,7 @@ u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits) | |||
3960 | * Hauppauge: pin 5 | 3959 | * Hauppauge: pin 5 |
3961 | * Voodoo: pin 20 | 3960 | * Voodoo: pin 20 |
3962 | */ | 3961 | */ |
3963 | static void __devinit boot_msp34xx(struct bttv *btv, int pin) | 3962 | static void boot_msp34xx(struct bttv *btv, int pin) |
3964 | { | 3963 | { |
3965 | int mask = (1 << pin); | 3964 | int mask = (1 << pin); |
3966 | 3965 | ||
@@ -3983,11 +3982,10 @@ static void __devinit boot_msp34xx(struct bttv *btv, int pin) | |||
3983 | * used by Alessandro Rubini in his pxc200 | 3982 | * used by Alessandro Rubini in his pxc200 |
3984 | * driver, but using BTTV functions */ | 3983 | * driver, but using BTTV functions */ |
3985 | 3984 | ||
3986 | static void __devinit init_PXC200(struct bttv *btv) | 3985 | static void init_PXC200(struct bttv *btv) |
3987 | { | 3986 | { |
3988 | static int vals[] __devinitdata = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, | 3987 | static int vals[] = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, 0x01, 0x02, |
3989 | 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, | 3988 | 0x03, 0x04, 0x05, 0x06, 0x00 }; |
3990 | 0x00 }; | ||
3991 | unsigned int i; | 3989 | unsigned int i; |
3992 | int tmp; | 3990 | int tmp; |
3993 | u32 val; | 3991 | u32 val; |
@@ -4851,7 +4849,7 @@ void __init bttv_check_chipset(void) | |||
4851 | } | 4849 | } |
4852 | } | 4850 | } |
4853 | 4851 | ||
4854 | int __devinit bttv_handle_chipset(struct bttv *btv) | 4852 | int bttv_handle_chipset(struct bttv *btv) |
4855 | { | 4853 | { |
4856 | unsigned char command; | 4854 | unsigned char command; |
4857 | 4855 | ||