Commit 57bd64b6 authored by Gerd Knorr's avatar Gerd Knorr Committed by Linus Torvalds

[PATCH] DVB/V4L dependency fix

The problem is that dvb is way to much work-in-progress right now, it's
almost impossible to build something which works on both mainline kernel +
latest dvb cvs.  Hope at least the interfaces are settled soon, for now I
gave up on getting it work in mainline in short-term.

The patch below compiles the DVB card configuration code only when
VIDEO_CX88_DVB is enabled (which is commented right now in Kconfig due to
being broken).
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b0a83f3c
...@@ -26,8 +26,14 @@ ...@@ -26,8 +26,14 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/delay.h> #include <linux/delay.h>
#if defined(CONFIG_VIDEO_CX88_DVB) || defined(CONFIG_VIDEO_CX88_DVB_MODULE)
# define WITH_DVB 1
#endif
#include "cx88.h" #include "cx88.h"
#ifdef WITH_DVB
#include "cx22702.h" #include "cx22702.h"
#endif
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
/* board config info */ /* board config info */
...@@ -641,6 +647,7 @@ static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data) ...@@ -641,6 +647,7 @@ static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
core->tuner_type, radio ? "yes" : "no"); core->tuner_type, radio ? "yes" : "no");
} }
#ifdef WITH_DVB
static int hauppauge_eeprom_dvb(struct cx88_core *core, u8 *ee) static int hauppauge_eeprom_dvb(struct cx88_core *core, u8 *ee)
{ {
int model; int model;
...@@ -683,6 +690,7 @@ static int hauppauge_eeprom_dvb(struct cx88_core *core, u8 *ee) ...@@ -683,6 +690,7 @@ static int hauppauge_eeprom_dvb(struct cx88_core *core, u8 *ee)
core->pll_addr = 0x61; core->pll_addr = 0x61;
core->demod_addr = 0x43; core->demod_addr = 0x43;
} }
#endif
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
/* some GDI (was: Modular Technology) specific stuff */ /* some GDI (was: Modular Technology) specific stuff */
...@@ -820,6 +828,7 @@ void cx88_card_setup(struct cx88_core *core) ...@@ -820,6 +828,7 @@ void cx88_card_setup(struct cx88_core *core)
msleep(1); msleep(1);
cx_set(MO_GP0_IO, 0x00000101); cx_set(MO_GP0_IO, 0x00000101);
break; break;
#ifdef WITH_DVB
case CX88_BOARD_HAUPPAUGE_DVB_T1: case CX88_BOARD_HAUPPAUGE_DVB_T1:
if (0 == core->i2c_rc) if (0 == core->i2c_rc)
i2c_eeprom(&core->i2c_client,eeprom,sizeof(eeprom)); i2c_eeprom(&core->i2c_client,eeprom,sizeof(eeprom));
...@@ -830,6 +839,7 @@ void cx88_card_setup(struct cx88_core *core) ...@@ -830,6 +839,7 @@ void cx88_card_setup(struct cx88_core *core)
core->pll_addr = 0x60; core->pll_addr = 0x60;
core->demod_addr = 0x43; core->demod_addr = 0x43;
break; break;
#endif
} }
if (cx88_boards[core->board].radio.type == CX88_RADIO) if (cx88_boards[core->board].radio.type == CX88_RADIO)
core->has_radio = 1; core->has_radio = 1;
......
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