Commit 0f97a931 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Linus Torvalds

[PATCH] v4l: tveeprom improved to support newer Hauppage cards

- tveeprom improved and updated to reflect newer Hauppage cards.
- CodingStyle fixes.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 18fc59e2
...@@ -3060,7 +3060,7 @@ static void __devinit hauppauge_eeprom(struct bttv *btv) ...@@ -3060,7 +3060,7 @@ static void __devinit hauppauge_eeprom(struct bttv *btv)
{ {
struct tveeprom tv; struct tveeprom tv;
tveeprom_hauppauge_analog(&tv, eeprom_data); tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data);
btv->tuner_type = tv.tuner_type; btv->tuner_type = tv.tuner_type;
btv->has_radio = tv.has_radio; btv->has_radio = tv.has_radio;
} }
...@@ -4485,6 +4485,7 @@ void __devinit bttv_check_chipset(void) ...@@ -4485,6 +4485,7 @@ void __devinit bttv_check_chipset(void)
} }
if (UNSET != latency) if (UNSET != latency)
printk(KERN_INFO "bttv: pci latency fixup [%d]\n",latency); printk(KERN_INFO "bttv: pci latency fixup [%d]\n",latency);
while ((dev = pci_find_device(PCI_VENDOR_ID_INTEL, while ((dev = pci_find_device(PCI_VENDOR_ID_INTEL,
PCI_DEVICE_ID_INTEL_82441, dev))) { PCI_DEVICE_ID_INTEL_82441, dev))) {
unsigned char b; unsigned char b;
......
...@@ -4079,6 +4079,7 @@ static int bttv_suspend(struct pci_dev *pci_dev, pm_message_t state) ...@@ -4079,6 +4079,7 @@ static int bttv_suspend(struct pci_dev *pci_dev, pm_message_t state)
struct bttv_buffer_set idle; struct bttv_buffer_set idle;
unsigned long flags; unsigned long flags;
dprintk("bttv%d: suspend %d\n", btv->c.nr, state.event);
/* stop dma + irqs */ /* stop dma + irqs */
spin_lock_irqsave(&btv->s_lock,flags); spin_lock_irqsave(&btv->s_lock,flags);
......
...@@ -945,7 +945,7 @@ static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data) ...@@ -945,7 +945,7 @@ static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
{ {
struct tveeprom tv; struct tveeprom tv;
tveeprom_hauppauge_analog(&tv, eeprom_data); tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
core->tuner_type = tv.tuner_type; core->tuner_type = tv.tuner_type;
core->has_radio = tv.has_radio; core->has_radio = tv.has_radio;
} }
......
This diff is collapsed.
...@@ -3,15 +3,19 @@ ...@@ -3,15 +3,19 @@
struct tveeprom { struct tveeprom {
u32 has_radio; u32 has_radio;
u32 has_ir; /* 0: no IR, 1: IR present, 2: unknown */
u32 tuner_type; u32 tuner_type;
u32 tuner_formats; u32 tuner_formats;
u32 tuner2_type;
u32 tuner2_formats;
u32 digitizer; u32 digitizer;
u32 digitizer_formats; u32 digitizer_formats;
u32 audio_processor; u32 audio_processor;
/* a_p_fmts? */ u32 decoder_processor;
u32 model; u32 model;
u32 revision; u32 revision;
...@@ -19,7 +23,7 @@ struct tveeprom { ...@@ -19,7 +23,7 @@ struct tveeprom {
char rev_str[5]; char rev_str[5];
}; };
void tveeprom_hauppauge_analog(struct tveeprom *tvee, void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee,
unsigned char *eeprom_data); unsigned char *eeprom_data);
int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len); int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment