diff options
author | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2005-06-24 01:05:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:06:39 -0400 |
commit | b45009b0288a96a3458f4f8e93cb776678d41875 (patch) | |
tree | c912e8d3dcc625fe92cdd1bac97bab7539fce4d7 /drivers/media/video/cx88/cx88.h | |
parent | 2d03e289ea4b13d78ce55f1ea0b0d45b8f1b34c3 (diff) |
[PATCH] v4l: CX88 cards update
This patch adds support for various CX88 cards and allows specifying
card addresses.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: cybercide@f2s.com <cybercide@f2s.com>
Signed-off-by: Catalin Climov <catalin@climov.com>
Signed-off-by: Nickolay V Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/cx88/cx88.h')
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index 80ddf9911e2f..ac0dc27bb38f 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: cx88.h,v 1.56 2005/03/04 09:12:23 kraxel Exp $ | 2 | * $Id: cx88.h,v 1.62 2005/06/12 04:19:19 mchehab Exp $ |
3 | * | 3 | * |
4 | * v4l2 device driver for cx2388x based TV cards | 4 | * v4l2 device driver for cx2388x based TV cards |
5 | * | 5 | * |
@@ -64,6 +64,13 @@ | |||
64 | #define SHADOW_AUD_BAL_CTL 2 | 64 | #define SHADOW_AUD_BAL_CTL 2 |
65 | #define SHADOW_MAX 2 | 65 | #define SHADOW_MAX 2 |
66 | 66 | ||
67 | /* FM Radio deemphasis type */ | ||
68 | enum cx88_deemph_type { | ||
69 | FM_NO_DEEMPH = 0, | ||
70 | FM_DEEMPH_50, | ||
71 | FM_DEEMPH_75 | ||
72 | }; | ||
73 | |||
67 | /* ----------------------------------------------------------- */ | 74 | /* ----------------------------------------------------------- */ |
68 | /* tv norms */ | 75 | /* tv norms */ |
69 | 76 | ||
@@ -163,7 +170,7 @@ extern struct sram_channel cx88_sram_channels[]; | |||
163 | #define CX88_BOARD_DIGITALLOGIC_MEC 25 | 170 | #define CX88_BOARD_DIGITALLOGIC_MEC 25 |
164 | #define CX88_BOARD_IODATA_GVBCTV7E 26 | 171 | #define CX88_BOARD_IODATA_GVBCTV7E 26 |
165 | #define CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO 27 | 172 | #define CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO 27 |
166 | #define CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T 28 | 173 | #define CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T 28 |
167 | 174 | ||
168 | enum cx88_itype { | 175 | enum cx88_itype { |
169 | CX88_VMUX_COMPOSITE1 = 1, | 176 | CX88_VMUX_COMPOSITE1 = 1, |
@@ -187,6 +194,9 @@ struct cx88_input { | |||
187 | struct cx88_board { | 194 | struct cx88_board { |
188 | char *name; | 195 | char *name; |
189 | unsigned int tuner_type; | 196 | unsigned int tuner_type; |
197 | unsigned int radio_type; | ||
198 | unsigned char tuner_addr; | ||
199 | unsigned char radio_addr; | ||
190 | int tda9887_conf; | 200 | int tda9887_conf; |
191 | struct cx88_input input[8]; | 201 | struct cx88_input input[8]; |
192 | struct cx88_input radio; | 202 | struct cx88_input radio; |
@@ -257,6 +267,9 @@ struct cx88_core { | |||
257 | /* config info -- analog */ | 267 | /* config info -- analog */ |
258 | unsigned int board; | 268 | unsigned int board; |
259 | unsigned int tuner_type; | 269 | unsigned int tuner_type; |
270 | unsigned int radio_type; | ||
271 | unsigned char tuner_addr; | ||
272 | unsigned char radio_addr; | ||
260 | unsigned int tda9887_conf; | 273 | unsigned int tda9887_conf; |
261 | unsigned int has_radio; | 274 | unsigned int has_radio; |
262 | 275 | ||
@@ -422,6 +435,7 @@ struct cx8802_dev { | |||
422 | /* ----------------------------------------------------------- */ | 435 | /* ----------------------------------------------------------- */ |
423 | /* cx88-core.c */ | 436 | /* cx88-core.c */ |
424 | 437 | ||
438 | extern char *cx88_pci_irqs[32]; | ||
425 | extern char *cx88_vid_irqs[32]; | 439 | extern char *cx88_vid_irqs[32]; |
426 | extern char *cx88_mpeg_irqs[32]; | 440 | extern char *cx88_mpeg_irqs[32]; |
427 | extern void cx88_print_irqbits(char *name, char *tag, char **strings, | 441 | extern void cx88_print_irqbits(char *name, char *tag, char **strings, |
@@ -473,6 +487,11 @@ extern void cx88_core_put(struct cx88_core *core, | |||
473 | /* cx88-vbi.c */ | 487 | /* cx88-vbi.c */ |
474 | 488 | ||
475 | void cx8800_vbi_fmt(struct cx8800_dev *dev, struct v4l2_format *f); | 489 | void cx8800_vbi_fmt(struct cx8800_dev *dev, struct v4l2_format *f); |
490 | /* | ||
491 | int cx8800_start_vbi_dma(struct cx8800_dev *dev, | ||
492 | struct cx88_dmaqueue *q, | ||
493 | struct cx88_buffer *buf); | ||
494 | */ | ||
476 | int cx8800_stop_vbi_dma(struct cx8800_dev *dev); | 495 | int cx8800_stop_vbi_dma(struct cx8800_dev *dev); |
477 | int cx8800_restart_vbi_queue(struct cx8800_dev *dev, | 496 | int cx8800_restart_vbi_queue(struct cx8800_dev *dev, |
478 | struct cx88_dmaqueue *q); | 497 | struct cx88_dmaqueue *q); |