summaryrefslogtreecommitdiff
path: root/drivers/media/common/tuners/xc4000.h
diff options
context:
space:
mode:
authorIstvan Varga <istvan_v@mailbox.hu>2011-06-03 09:38:04 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:52:36 -0300
commit0b4021321c0536a3368746497686ce56e5bcf3e5 (patch)
treeabe2125ee12c80dcc85a2726ef8f97d7d6705101 /drivers/media/common/tuners/xc4000.h
parent595a83f49a7536f43a68cab78098d5ad11d1c51f (diff)
[media] xc4000: added card_type
This patch adds support for selecting a card type in struct xc4000_config, to allow for implementing some card specific code in the driver. Signed-off-by: Istvan Varga <istvan_v@mailbox.hu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/xc4000.h')
-rw-r--r--drivers/media/common/tuners/xc4000.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/xc4000.h b/drivers/media/common/tuners/xc4000.h
index 3881ba26b794..d560d01cc82b 100644
--- a/drivers/media/common/tuners/xc4000.h
+++ b/drivers/media/common/tuners/xc4000.h
@@ -27,8 +27,13 @@
struct dvb_frontend;
struct i2c_adapter;
+#define XC4000_CARD_GENERIC 0
+#define XC4000_CARD_PCTV_340E 1
+#define XC4000_CARD_WINFAST_CX88 2
+
struct xc4000_config {
- u8 i2c_address;
+ u8 card_type; /* if card type is not generic, all other */
+ u8 i2c_address; /* parameters are automatically set */
u32 if_khz;
};