diff options
author | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2005-11-09 00:37:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:20 -0500 |
commit | 4ac97914c6c35f6bf132071c718e034d0846b9f5 (patch) | |
tree | 98c7eb827bb8ba99730ed89d32703a30448fd813 /drivers/media/video/cx88 | |
parent | a8900fc242406f25f315190a6d650f1d54617c2f (diff) |
[PATCH] v4l: 800: whitespace cleanups
- Whitespace Cleanups.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r-- | drivers/media/video/cx88/cx88-blackbird.c | 40 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-cards.c | 340 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-core.c | 40 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-dvb.c | 16 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-i2c.c | 22 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-input.c | 2 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-mpeg.c | 18 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-reg.h | 12 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-video.c | 22 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 4 |
10 files changed, 258 insertions, 258 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index fac67d98a745..4ae3f78cccf2 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c | |||
@@ -436,7 +436,7 @@ static int memory_write(struct cx88_core *core, u32 address, u32 value) | |||
436 | 436 | ||
437 | static int memory_read(struct cx88_core *core, u32 address, u32 *value) | 437 | static int memory_read(struct cx88_core *core, u32 address, u32 *value) |
438 | { | 438 | { |
439 | int retval; | 439 | int retval; |
440 | u32 val; | 440 | u32 val; |
441 | 441 | ||
442 | /* Warning: address is dword address (4 bytes) */ | 442 | /* Warning: address is dword address (4 bytes) */ |
@@ -605,11 +605,11 @@ static int blackbird_load_firmware(struct cx8802_dev *dev) | |||
605 | u32 *dataptr; | 605 | u32 *dataptr; |
606 | 606 | ||
607 | retval = register_write(dev->core, IVTV_REG_VPU, 0xFFFFFFED); | 607 | retval = register_write(dev->core, IVTV_REG_VPU, 0xFFFFFFED); |
608 | retval |= register_write(dev->core, IVTV_REG_HW_BLOCKS, IVTV_CMD_HW_BLOCKS_RST); | 608 | retval |= register_write(dev->core, IVTV_REG_HW_BLOCKS, IVTV_CMD_HW_BLOCKS_RST); |
609 | retval |= register_write(dev->core, IVTV_REG_ENC_SDRAM_REFRESH, 0x80000640); | 609 | retval |= register_write(dev->core, IVTV_REG_ENC_SDRAM_REFRESH, 0x80000640); |
610 | retval |= register_write(dev->core, IVTV_REG_ENC_SDRAM_PRECHARGE, 0x1A); | 610 | retval |= register_write(dev->core, IVTV_REG_ENC_SDRAM_PRECHARGE, 0x1A); |
611 | msleep(1); | 611 | msleep(1); |
612 | retval |= register_write(dev->core, IVTV_REG_APU, 0); | 612 | retval |= register_write(dev->core, IVTV_REG_APU, 0); |
613 | 613 | ||
614 | if (retval < 0) | 614 | if (retval < 0) |
615 | dprintk(0, "Error with register_write\n"); | 615 | dprintk(0, "Error with register_write\n"); |
@@ -657,13 +657,13 @@ static int blackbird_load_firmware(struct cx8802_dev *dev) | |||
657 | release_firmware(firmware); | 657 | release_firmware(firmware); |
658 | dprintk(0, "Firmware upload successful.\n"); | 658 | dprintk(0, "Firmware upload successful.\n"); |
659 | 659 | ||
660 | retval |= register_write(dev->core, IVTV_REG_HW_BLOCKS, IVTV_CMD_HW_BLOCKS_RST); | 660 | retval |= register_write(dev->core, IVTV_REG_HW_BLOCKS, IVTV_CMD_HW_BLOCKS_RST); |
661 | retval |= register_read(dev->core, IVTV_REG_SPU, &value); | 661 | retval |= register_read(dev->core, IVTV_REG_SPU, &value); |
662 | retval |= register_write(dev->core, IVTV_REG_SPU, value & 0xFFFFFFFE); | 662 | retval |= register_write(dev->core, IVTV_REG_SPU, value & 0xFFFFFFFE); |
663 | msleep(1); | 663 | msleep(1); |
664 | 664 | ||
665 | retval |= register_read(dev->core, IVTV_REG_VPU, &value); | 665 | retval |= register_read(dev->core, IVTV_REG_VPU, &value); |
666 | retval |= register_write(dev->core, IVTV_REG_VPU, value & 0xFFFFFFE8); | 666 | retval |= register_write(dev->core, IVTV_REG_VPU, value & 0xFFFFFFE8); |
667 | 667 | ||
668 | if (retval < 0) | 668 | if (retval < 0) |
669 | dprintk(0, "Error with register_write\n"); | 669 | dprintk(0, "Error with register_write\n"); |
@@ -876,7 +876,7 @@ static void blackbird_set_default_params(struct cx8802_dev *dev) | |||
876 | au_params |= 0; | 876 | au_params |= 0; |
877 | } | 877 | } |
878 | else if( params->au_bitrate.target >= | 878 | else if( params->au_bitrate.target >= |
879 | mpeg_audio_bitrates[BITRATES_SIZE-1].layer[layer].rate ) | 879 | mpeg_audio_bitrates[BITRATES_SIZE-1].layer[layer].rate ) |
880 | { | 880 | { |
881 | /* clamp the bitrate to the max supported by the standard */ | 881 | /* clamp the bitrate to the max supported by the standard */ |
882 | params->au_bitrate.target = mpeg_audio_bitrates[BITRATES_SIZE-1].layer[layer].rate; | 882 | params->au_bitrate.target = mpeg_audio_bitrates[BITRATES_SIZE-1].layer[layer].rate; |
@@ -942,7 +942,7 @@ static void blackbird_set_default_params(struct cx8802_dev *dev) | |||
942 | /* TODO: implement the stream ID stuff: | 942 | /* TODO: implement the stream ID stuff: |
943 | ts_pid_pmt, ts_pid_audio, ts_pid_video, ts_pid_pcr, | 943 | ts_pid_pmt, ts_pid_audio, ts_pid_video, ts_pid_pcr, |
944 | ps_size, au_pesid, vi_pesid | 944 | ps_size, au_pesid, vi_pesid |
945 | */ | 945 | */ |
946 | } | 946 | } |
947 | #define CHECK_PARAM( name ) ( dev->params.name != params->name ) | 947 | #define CHECK_PARAM( name ) ( dev->params.name != params->name ) |
948 | #define IF_PARAM( name ) if( CHECK_PARAM( name ) ) | 948 | #define IF_PARAM( name ) if( CHECK_PARAM( name ) ) |
@@ -1068,7 +1068,7 @@ void blackbird_set_params(struct cx8802_dev *dev, struct v4l2_mpeg_compression * | |||
1068 | au_params |= 0; | 1068 | au_params |= 0; |
1069 | } | 1069 | } |
1070 | else if( params->au_bitrate.target >= | 1070 | else if( params->au_bitrate.target >= |
1071 | mpeg_audio_bitrates[BITRATES_SIZE-1].layer[layer].rate ) | 1071 | mpeg_audio_bitrates[BITRATES_SIZE-1].layer[layer].rate ) |
1072 | { | 1072 | { |
1073 | /* clamp the bitrate to the max supported by the standard */ | 1073 | /* clamp the bitrate to the max supported by the standard */ |
1074 | params->au_bitrate.target = mpeg_audio_bitrates[BITRATES_SIZE-1].layer[layer].rate; | 1074 | params->au_bitrate.target = mpeg_audio_bitrates[BITRATES_SIZE-1].layer[layer].rate; |
@@ -1150,7 +1150,7 @@ void blackbird_set_params(struct cx8802_dev *dev, struct v4l2_mpeg_compression * | |||
1150 | /* TODO: implement the stream ID stuff: | 1150 | /* TODO: implement the stream ID stuff: |
1151 | ts_pid_pmt, ts_pid_audio, ts_pid_video, ts_pid_pcr, | 1151 | ts_pid_pmt, ts_pid_audio, ts_pid_video, ts_pid_pcr, |
1152 | ps_size, au_pesid, vi_pesid | 1152 | ps_size, au_pesid, vi_pesid |
1153 | */ | 1153 | */ |
1154 | UPDATE_PARAM( ts_pid_pmt ); | 1154 | UPDATE_PARAM( ts_pid_pmt ); |
1155 | UPDATE_PARAM( ts_pid_audio ); | 1155 | UPDATE_PARAM( ts_pid_audio ); |
1156 | UPDATE_PARAM( ts_pid_video ); | 1156 | UPDATE_PARAM( ts_pid_video ); |
@@ -1712,7 +1712,7 @@ static int __devinit blackbird_probe(struct pci_dev *pci_dev, | |||
1712 | 1712 | ||
1713 | static void __devexit blackbird_remove(struct pci_dev *pci_dev) | 1713 | static void __devexit blackbird_remove(struct pci_dev *pci_dev) |
1714 | { | 1714 | { |
1715 | struct cx8802_dev *dev = pci_get_drvdata(pci_dev); | 1715 | struct cx8802_dev *dev = pci_get_drvdata(pci_dev); |
1716 | 1716 | ||
1717 | /* blackbird */ | 1717 | /* blackbird */ |
1718 | blackbird_unregister_video(dev); | 1718 | blackbird_unregister_video(dev); |
@@ -1728,8 +1728,8 @@ static struct pci_device_id cx8802_pci_tbl[] = { | |||
1728 | { | 1728 | { |
1729 | .vendor = 0x14f1, | 1729 | .vendor = 0x14f1, |
1730 | .device = 0x8802, | 1730 | .device = 0x8802, |
1731 | .subvendor = PCI_ANY_ID, | 1731 | .subvendor = PCI_ANY_ID, |
1732 | .subdevice = PCI_ANY_ID, | 1732 | .subdevice = PCI_ANY_ID, |
1733 | },{ | 1733 | },{ |
1734 | /* --- end of list --- */ | 1734 | /* --- end of list --- */ |
1735 | } | 1735 | } |
@@ -1737,10 +1737,10 @@ static struct pci_device_id cx8802_pci_tbl[] = { | |||
1737 | MODULE_DEVICE_TABLE(pci, cx8802_pci_tbl); | 1737 | MODULE_DEVICE_TABLE(pci, cx8802_pci_tbl); |
1738 | 1738 | ||
1739 | static struct pci_driver blackbird_pci_driver = { | 1739 | static struct pci_driver blackbird_pci_driver = { |
1740 | .name = "cx88-blackbird", | 1740 | .name = "cx88-blackbird", |
1741 | .id_table = cx8802_pci_tbl, | 1741 | .id_table = cx8802_pci_tbl, |
1742 | .probe = blackbird_probe, | 1742 | .probe = blackbird_probe, |
1743 | .remove = __devexit_p(blackbird_remove), | 1743 | .remove = __devexit_p(blackbird_remove), |
1744 | .suspend = cx8802_suspend_common, | 1744 | .suspend = cx8802_suspend_common, |
1745 | .resume = cx8802_resume_common, | 1745 | .resume = cx8802_resume_common, |
1746 | }; | 1746 | }; |
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c index cf17da836914..504917768794 100644 --- a/drivers/media/video/cx88/cx88-cards.c +++ b/drivers/media/video/cx88/cx88-cards.c | |||
@@ -126,27 +126,27 @@ struct cx88_board cx88_boards[] = { | |||
126 | .input = {{ | 126 | .input = {{ |
127 | .type = CX88_VMUX_TELEVISION, | 127 | .type = CX88_VMUX_TELEVISION, |
128 | .vmux = 0, | 128 | .vmux = 0, |
129 | .gpio0 = 0x03ff, | 129 | .gpio0 = 0x03ff, |
130 | },{ | 130 | },{ |
131 | .type = CX88_VMUX_COMPOSITE1, | 131 | .type = CX88_VMUX_COMPOSITE1, |
132 | .vmux = 1, | 132 | .vmux = 1, |
133 | .gpio0 = 0x03fe, | 133 | .gpio0 = 0x03fe, |
134 | },{ | 134 | },{ |
135 | .type = CX88_VMUX_SVIDEO, | 135 | .type = CX88_VMUX_SVIDEO, |
136 | .vmux = 2, | 136 | .vmux = 2, |
137 | .gpio0 = 0x03fe, | 137 | .gpio0 = 0x03fe, |
138 | }}, | 138 | }}, |
139 | }, | 139 | }, |
140 | [CX88_BOARD_WINFAST2000XP_EXPERT] = { | 140 | [CX88_BOARD_WINFAST2000XP_EXPERT] = { |
141 | .name = "Leadtek Winfast 2000XP Expert", | 141 | .name = "Leadtek Winfast 2000XP Expert", |
142 | .tuner_type = TUNER_PHILIPS_4IN1, | 142 | .tuner_type = TUNER_PHILIPS_4IN1, |
143 | .radio_type = UNSET, | 143 | .radio_type = UNSET, |
144 | .tuner_addr = ADDR_UNSET, | 144 | .tuner_addr = ADDR_UNSET, |
145 | .radio_addr = ADDR_UNSET, | 145 | .radio_addr = ADDR_UNSET, |
146 | .tda9887_conf = TDA9887_PRESENT, | 146 | .tda9887_conf = TDA9887_PRESENT, |
147 | .input = {{ | 147 | .input = {{ |
148 | .type = CX88_VMUX_TELEVISION, | 148 | .type = CX88_VMUX_TELEVISION, |
149 | .vmux = 0, | 149 | .vmux = 0, |
150 | .gpio0 = 0x00F5e700, | 150 | .gpio0 = 0x00F5e700, |
151 | .gpio1 = 0x00003004, | 151 | .gpio1 = 0x00003004, |
152 | .gpio2 = 0x00F5e700, | 152 | .gpio2 = 0x00F5e700, |
@@ -165,15 +165,15 @@ struct cx88_board cx88_boards[] = { | |||
165 | .gpio1 = 0x00003004, | 165 | .gpio1 = 0x00003004, |
166 | .gpio2 = 0x00F5c700, | 166 | .gpio2 = 0x00F5c700, |
167 | .gpio3 = 0x02000000, | 167 | .gpio3 = 0x02000000, |
168 | }}, | 168 | }}, |
169 | .radio = { | 169 | .radio = { |
170 | .type = CX88_RADIO, | 170 | .type = CX88_RADIO, |
171 | .gpio0 = 0x00F5d700, | 171 | .gpio0 = 0x00F5d700, |
172 | .gpio1 = 0x00003004, | 172 | .gpio1 = 0x00003004, |
173 | .gpio2 = 0x00F5d700, | 173 | .gpio2 = 0x00F5d700, |
174 | .gpio3 = 0x02000000, | 174 | .gpio3 = 0x02000000, |
175 | }, | 175 | }, |
176 | }, | 176 | }, |
177 | [CX88_BOARD_AVERTV_303] = { | 177 | [CX88_BOARD_AVERTV_303] = { |
178 | .name = "AverTV Studio 303 (M126)", | 178 | .name = "AverTV Studio 303 (M126)", |
179 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | 179 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
@@ -214,32 +214,32 @@ struct cx88_board cx88_boards[] = { | |||
214 | .gpio1 = 0x000080c0, | 214 | .gpio1 = 0x000080c0, |
215 | .gpio2 = 0x0000ff40, | 215 | .gpio2 = 0x0000ff40, |
216 | },{ | 216 | },{ |
217 | .type = CX88_VMUX_COMPOSITE1, | 217 | .type = CX88_VMUX_COMPOSITE1, |
218 | .vmux = 1, | 218 | .vmux = 1, |
219 | .gpio0 = 0x000040bf, | 219 | .gpio0 = 0x000040bf, |
220 | .gpio1 = 0x000080c0, | 220 | .gpio1 = 0x000080c0, |
221 | .gpio2 = 0x0000ff40, | 221 | .gpio2 = 0x0000ff40, |
222 | },{ | 222 | },{ |
223 | .type = CX88_VMUX_SVIDEO, | 223 | .type = CX88_VMUX_SVIDEO, |
224 | .vmux = 2, | 224 | .vmux = 2, |
225 | .gpio0 = 0x000040bf, | 225 | .gpio0 = 0x000040bf, |
226 | .gpio1 = 0x000080c0, | 226 | .gpio1 = 0x000080c0, |
227 | .gpio2 = 0x0000ff40, | 227 | .gpio2 = 0x0000ff40, |
228 | }}, | 228 | }}, |
229 | .radio = { | 229 | .radio = { |
230 | .type = CX88_RADIO, | 230 | .type = CX88_RADIO, |
231 | }, | 231 | }, |
232 | }, | 232 | }, |
233 | [CX88_BOARD_WINFAST_DV2000] = { | 233 | [CX88_BOARD_WINFAST_DV2000] = { |
234 | .name = "Leadtek Winfast DV2000", | 234 | .name = "Leadtek Winfast DV2000", |
235 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | 235 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
236 | .radio_type = UNSET, | 236 | .radio_type = UNSET, |
237 | .tuner_addr = ADDR_UNSET, | 237 | .tuner_addr = ADDR_UNSET, |
238 | .radio_addr = ADDR_UNSET, | 238 | .radio_addr = ADDR_UNSET, |
239 | .tda9887_conf = TDA9887_PRESENT, | 239 | .tda9887_conf = TDA9887_PRESENT, |
240 | .input = {{ | 240 | .input = {{ |
241 | .type = CX88_VMUX_TELEVISION, | 241 | .type = CX88_VMUX_TELEVISION, |
242 | .vmux = 0, | 242 | .vmux = 0, |
243 | .gpio0 = 0x0035e700, | 243 | .gpio0 = 0x0035e700, |
244 | .gpio1 = 0x00003004, | 244 | .gpio1 = 0x00003004, |
245 | .gpio2 = 0x0035e700, | 245 | .gpio2 = 0x0035e700, |
@@ -260,14 +260,14 @@ struct cx88_board cx88_boards[] = { | |||
260 | .gpio2 = 0x02000000, | 260 | .gpio2 = 0x02000000, |
261 | .gpio3 = 0x02000000, | 261 | .gpio3 = 0x02000000, |
262 | }}, | 262 | }}, |
263 | .radio = { | 263 | .radio = { |
264 | .type = CX88_RADIO, | 264 | .type = CX88_RADIO, |
265 | .gpio0 = 0x0035d700, | 265 | .gpio0 = 0x0035d700, |
266 | .gpio1 = 0x00007004, | 266 | .gpio1 = 0x00007004, |
267 | .gpio2 = 0x0035d700, | 267 | .gpio2 = 0x0035d700, |
268 | .gpio3 = 0x02000000, | 268 | .gpio3 = 0x02000000, |
269 | }, | 269 | }, |
270 | }, | 270 | }, |
271 | [CX88_BOARD_LEADTEK_PVR2000] = { | 271 | [CX88_BOARD_LEADTEK_PVR2000] = { |
272 | // gpio values for PAL version from regspy by DScaler | 272 | // gpio values for PAL version from regspy by DScaler |
273 | .name = "Leadtek PVR 2000", | 273 | .name = "Leadtek PVR 2000", |
@@ -296,25 +296,25 @@ struct cx88_board cx88_boards[] = { | |||
296 | .blackbird = 1, | 296 | .blackbird = 1, |
297 | }, | 297 | }, |
298 | [CX88_BOARD_IODATA_GVVCP3PCI] = { | 298 | [CX88_BOARD_IODATA_GVVCP3PCI] = { |
299 | .name = "IODATA GV-VCP3/PCI", | 299 | .name = "IODATA GV-VCP3/PCI", |
300 | .tuner_type = TUNER_ABSENT, | 300 | .tuner_type = TUNER_ABSENT, |
301 | .radio_type = UNSET, | 301 | .radio_type = UNSET, |
302 | .tuner_addr = ADDR_UNSET, | 302 | .tuner_addr = ADDR_UNSET, |
303 | .radio_addr = ADDR_UNSET, | 303 | .radio_addr = ADDR_UNSET, |
304 | .input = {{ | 304 | .input = {{ |
305 | .type = CX88_VMUX_COMPOSITE1, | 305 | .type = CX88_VMUX_COMPOSITE1, |
306 | .vmux = 0, | 306 | .vmux = 0, |
307 | },{ | 307 | },{ |
308 | .type = CX88_VMUX_COMPOSITE2, | 308 | .type = CX88_VMUX_COMPOSITE2, |
309 | .vmux = 1, | 309 | .vmux = 1, |
310 | },{ | 310 | },{ |
311 | .type = CX88_VMUX_SVIDEO, | 311 | .type = CX88_VMUX_SVIDEO, |
312 | .vmux = 2, | 312 | .vmux = 2, |
313 | }}, | 313 | }}, |
314 | }, | 314 | }, |
315 | [CX88_BOARD_PROLINK_PLAYTVPVR] = { | 315 | [CX88_BOARD_PROLINK_PLAYTVPVR] = { |
316 | .name = "Prolink PlayTV PVR", | 316 | .name = "Prolink PlayTV PVR", |
317 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, | 317 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
318 | .radio_type = UNSET, | 318 | .radio_type = UNSET, |
319 | .tuner_addr = ADDR_UNSET, | 319 | .tuner_addr = ADDR_UNSET, |
320 | .radio_addr = ADDR_UNSET, | 320 | .radio_addr = ADDR_UNSET, |
@@ -348,15 +348,15 @@ struct cx88_board cx88_boards[] = { | |||
348 | .type = CX88_VMUX_TELEVISION, | 348 | .type = CX88_VMUX_TELEVISION, |
349 | .vmux = 0, | 349 | .vmux = 0, |
350 | .gpio0 = 0x0000fde6, | 350 | .gpio0 = 0x0000fde6, |
351 | },{ | 351 | },{ |
352 | .type = CX88_VMUX_SVIDEO, | 352 | .type = CX88_VMUX_SVIDEO, |
353 | .vmux = 2, | 353 | .vmux = 2, |
354 | .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in? | 354 | .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in? |
355 | }}, | 355 | }}, |
356 | .radio = { | 356 | .radio = { |
357 | .type = CX88_RADIO, | 357 | .type = CX88_RADIO, |
358 | .gpio0 = 0x0000fde2, | 358 | .gpio0 = 0x0000fde2, |
359 | }, | 359 | }, |
360 | .blackbird = 1, | 360 | .blackbird = 1, |
361 | }, | 361 | }, |
362 | [CX88_BOARD_MSI_TVANYWHERE] = { | 362 | [CX88_BOARD_MSI_TVANYWHERE] = { |
@@ -372,34 +372,34 @@ struct cx88_board cx88_boards[] = { | |||
372 | .gpio0 = 0x00000fbf, | 372 | .gpio0 = 0x00000fbf, |
373 | .gpio2 = 0x0000fc08, | 373 | .gpio2 = 0x0000fc08, |
374 | },{ | 374 | },{ |
375 | .type = CX88_VMUX_COMPOSITE1, | 375 | .type = CX88_VMUX_COMPOSITE1, |
376 | .vmux = 1, | 376 | .vmux = 1, |
377 | .gpio0 = 0x00000fbf, | 377 | .gpio0 = 0x00000fbf, |
378 | .gpio2 = 0x0000fc68, | 378 | .gpio2 = 0x0000fc68, |
379 | },{ | 379 | },{ |
380 | .type = CX88_VMUX_SVIDEO, | 380 | .type = CX88_VMUX_SVIDEO, |
381 | .vmux = 2, | 381 | .vmux = 2, |
382 | .gpio0 = 0x00000fbf, | 382 | .gpio0 = 0x00000fbf, |
383 | .gpio2 = 0x0000fc68, | 383 | .gpio2 = 0x0000fc68, |
384 | }}, | 384 | }}, |
385 | }, | 385 | }, |
386 | [CX88_BOARD_KWORLD_DVB_T] = { | 386 | [CX88_BOARD_KWORLD_DVB_T] = { |
387 | .name = "KWorld/VStream XPert DVB-T", | 387 | .name = "KWorld/VStream XPert DVB-T", |
388 | .tuner_type = TUNER_ABSENT, | 388 | .tuner_type = TUNER_ABSENT, |
389 | .radio_type = UNSET, | 389 | .radio_type = UNSET, |
390 | .tuner_addr = ADDR_UNSET, | 390 | .tuner_addr = ADDR_UNSET, |
391 | .radio_addr = ADDR_UNSET, | 391 | .radio_addr = ADDR_UNSET, |
392 | .input = {{ | 392 | .input = {{ |
393 | .type = CX88_VMUX_COMPOSITE1, | 393 | .type = CX88_VMUX_COMPOSITE1, |
394 | .vmux = 1, | 394 | .vmux = 1, |
395 | .gpio0 = 0x0700, | 395 | .gpio0 = 0x0700, |
396 | .gpio2 = 0x0101, | 396 | .gpio2 = 0x0101, |
397 | },{ | 397 | },{ |
398 | .type = CX88_VMUX_SVIDEO, | 398 | .type = CX88_VMUX_SVIDEO, |
399 | .vmux = 2, | 399 | .vmux = 2, |
400 | .gpio0 = 0x0700, | 400 | .gpio0 = 0x0700, |
401 | .gpio2 = 0x0101, | 401 | .gpio2 = 0x0101, |
402 | }}, | 402 | }}, |
403 | .dvb = 1, | 403 | .dvb = 1, |
404 | }, | 404 | }, |
405 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = { | 405 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = { |
@@ -425,27 +425,27 @@ struct cx88_board cx88_boards[] = { | |||
425 | .radio_type = UNSET, | 425 | .radio_type = UNSET, |
426 | .tuner_addr = ADDR_UNSET, | 426 | .tuner_addr = ADDR_UNSET, |
427 | .radio_addr = ADDR_UNSET, | 427 | .radio_addr = ADDR_UNSET, |
428 | .input = {{ | 428 | .input = {{ |
429 | .type = CX88_VMUX_TELEVISION, | 429 | .type = CX88_VMUX_TELEVISION, |
430 | .vmux = 0, | 430 | .vmux = 0, |
431 | .gpio0 = 0x07f8, | 431 | .gpio0 = 0x07f8, |
432 | },{ | 432 | },{ |
433 | .type = CX88_VMUX_DEBUG, | 433 | .type = CX88_VMUX_DEBUG, |
434 | .vmux = 0, | 434 | .vmux = 0, |
435 | .gpio0 = 0x07f9, // mono from tuner chip | 435 | .gpio0 = 0x07f9, // mono from tuner chip |
436 | },{ | 436 | },{ |
437 | .type = CX88_VMUX_COMPOSITE1, | 437 | .type = CX88_VMUX_COMPOSITE1, |
438 | .vmux = 1, | 438 | .vmux = 1, |
439 | .gpio0 = 0x000007fa, | 439 | .gpio0 = 0x000007fa, |
440 | },{ | 440 | },{ |
441 | .type = CX88_VMUX_SVIDEO, | 441 | .type = CX88_VMUX_SVIDEO, |
442 | .vmux = 2, | 442 | .vmux = 2, |
443 | .gpio0 = 0x000007fa, | 443 | .gpio0 = 0x000007fa, |
444 | }}, | 444 | }}, |
445 | .radio = { | 445 | .radio = { |
446 | .type = CX88_RADIO, | 446 | .type = CX88_RADIO, |
447 | .gpio0 = 0x000007f8, | 447 | .gpio0 = 0x000007f8, |
448 | }, | 448 | }, |
449 | }, | 449 | }, |
450 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = { | 450 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = { |
451 | .name = "DViCO FusionHDTV 3 Gold-Q", | 451 | .name = "DViCO FusionHDTV 3 Gold-Q", |
@@ -489,28 +489,28 @@ struct cx88_board cx88_boards[] = { | |||
489 | }}, | 489 | }}, |
490 | .dvb = 1, | 490 | .dvb = 1, |
491 | }, | 491 | }, |
492 | [CX88_BOARD_HAUPPAUGE_DVB_T1] = { | 492 | [CX88_BOARD_HAUPPAUGE_DVB_T1] = { |
493 | .name = "Hauppauge Nova-T DVB-T", | 493 | .name = "Hauppauge Nova-T DVB-T", |
494 | .tuner_type = TUNER_ABSENT, | 494 | .tuner_type = TUNER_ABSENT, |
495 | .radio_type = UNSET, | 495 | .radio_type = UNSET, |
496 | .tuner_addr = ADDR_UNSET, | 496 | .tuner_addr = ADDR_UNSET, |
497 | .radio_addr = ADDR_UNSET, | 497 | .radio_addr = ADDR_UNSET, |
498 | .input = {{ | 498 | .input = {{ |
499 | .type = CX88_VMUX_DVB, | 499 | .type = CX88_VMUX_DVB, |
500 | .vmux = 0, | 500 | .vmux = 0, |
501 | }}, | 501 | }}, |
502 | .dvb = 1, | 502 | .dvb = 1, |
503 | }, | 503 | }, |
504 | [CX88_BOARD_CONEXANT_DVB_T1] = { | 504 | [CX88_BOARD_CONEXANT_DVB_T1] = { |
505 | .name = "Conexant DVB-T reference design", | 505 | .name = "Conexant DVB-T reference design", |
506 | .tuner_type = TUNER_ABSENT, | 506 | .tuner_type = TUNER_ABSENT, |
507 | .radio_type = UNSET, | 507 | .radio_type = UNSET, |
508 | .tuner_addr = ADDR_UNSET, | 508 | .tuner_addr = ADDR_UNSET, |
509 | .radio_addr = ADDR_UNSET, | 509 | .radio_addr = ADDR_UNSET, |
510 | .input = {{ | 510 | .input = {{ |
511 | .type = CX88_VMUX_DVB, | 511 | .type = CX88_VMUX_DVB, |
512 | .vmux = 0, | 512 | .vmux = 0, |
513 | }}, | 513 | }}, |
514 | .dvb = 1, | 514 | .dvb = 1, |
515 | }, | 515 | }, |
516 | [CX88_BOARD_PROVIDEO_PV259] = { | 516 | [CX88_BOARD_PROVIDEO_PV259] = { |
@@ -543,12 +543,12 @@ struct cx88_board cx88_boards[] = { | |||
543 | .dvb = 1, | 543 | .dvb = 1, |
544 | }, | 544 | }, |
545 | [CX88_BOARD_DNTV_LIVE_DVB_T] = { | 545 | [CX88_BOARD_DNTV_LIVE_DVB_T] = { |
546 | .name = "digitalnow DNTV Live! DVB-T", | 546 | .name = "digitalnow DNTV Live! DVB-T", |
547 | .tuner_type = TUNER_ABSENT, | 547 | .tuner_type = TUNER_ABSENT, |
548 | .radio_type = UNSET, | 548 | .radio_type = UNSET, |
549 | .tuner_addr = ADDR_UNSET, | 549 | .tuner_addr = ADDR_UNSET, |
550 | .radio_addr = ADDR_UNSET, | 550 | .radio_addr = ADDR_UNSET, |
551 | .input = {{ | 551 | .input = {{ |
552 | .type = CX88_VMUX_COMPOSITE1, | 552 | .type = CX88_VMUX_COMPOSITE1, |
553 | .vmux = 1, | 553 | .vmux = 1, |
554 | .gpio0 = 0x00000700, | 554 | .gpio0 = 0x00000700, |
@@ -705,44 +705,44 @@ struct cx88_board cx88_boards[] = { | |||
705 | .gpio0 = 0xbf60, | 705 | .gpio0 = 0xbf60, |
706 | }, | 706 | }, |
707 | }, | 707 | }, |
708 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = { | 708 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = { |
709 | .name = "DViCO FusionHDTV 3 Gold-T", | 709 | .name = "DViCO FusionHDTV 3 Gold-T", |
710 | .tuner_type = TUNER_THOMSON_DTT7611, | 710 | .tuner_type = TUNER_THOMSON_DTT7611, |
711 | .radio_type = UNSET, | 711 | .radio_type = UNSET, |
712 | .tuner_addr = ADDR_UNSET, | 712 | .tuner_addr = ADDR_UNSET, |
713 | .radio_addr = ADDR_UNSET, | 713 | .radio_addr = ADDR_UNSET, |
714 | .input = {{ | 714 | .input = {{ |
715 | .type = CX88_VMUX_TELEVISION, | 715 | .type = CX88_VMUX_TELEVISION, |
716 | .vmux = 0, | 716 | .vmux = 0, |
717 | .gpio0 = 0x97ed, | 717 | .gpio0 = 0x97ed, |
718 | },{ | 718 | },{ |
719 | .type = CX88_VMUX_COMPOSITE1, | 719 | .type = CX88_VMUX_COMPOSITE1, |
720 | .vmux = 1, | 720 | .vmux = 1, |
721 | .gpio0 = 0x97e9, | 721 | .gpio0 = 0x97e9, |
722 | },{ | 722 | },{ |
723 | .type = CX88_VMUX_SVIDEO, | 723 | .type = CX88_VMUX_SVIDEO, |
724 | .vmux = 2, | 724 | .vmux = 2, |
725 | .gpio0 = 0x97e9, | 725 | .gpio0 = 0x97e9, |
726 | }}, | 726 | }}, |
727 | .dvb = 1, | 727 | .dvb = 1, |
728 | }, | 728 | }, |
729 | [CX88_BOARD_ADSTECH_DVB_T_PCI] = { | 729 | [CX88_BOARD_ADSTECH_DVB_T_PCI] = { |
730 | .name = "ADS Tech Instant TV DVB-T PCI", | 730 | .name = "ADS Tech Instant TV DVB-T PCI", |
731 | .tuner_type = TUNER_ABSENT, | 731 | .tuner_type = TUNER_ABSENT, |
732 | .radio_type = UNSET, | 732 | .radio_type = UNSET, |
733 | .tuner_addr = ADDR_UNSET, | 733 | .tuner_addr = ADDR_UNSET, |
734 | .radio_addr = ADDR_UNSET, | 734 | .radio_addr = ADDR_UNSET, |
735 | .input = {{ | 735 | .input = {{ |
736 | .type = CX88_VMUX_COMPOSITE1, | 736 | .type = CX88_VMUX_COMPOSITE1, |
737 | .vmux = 1, | 737 | .vmux = 1, |
738 | .gpio0 = 0x0700, | 738 | .gpio0 = 0x0700, |
739 | .gpio2 = 0x0101, | 739 | .gpio2 = 0x0101, |
740 | },{ | 740 | },{ |
741 | .type = CX88_VMUX_SVIDEO, | 741 | .type = CX88_VMUX_SVIDEO, |
742 | .vmux = 2, | 742 | .vmux = 2, |
743 | .gpio0 = 0x0700, | 743 | .gpio0 = 0x0700, |
744 | .gpio2 = 0x0101, | 744 | .gpio2 = 0x0101, |
745 | }}, | 745 | }}, |
746 | .dvb = 1, | 746 | .dvb = 1, |
747 | }, | 747 | }, |
748 | [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = { | 748 | [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = { |
@@ -762,18 +762,18 @@ struct cx88_board cx88_boards[] = { | |||
762 | .radio_addr = ADDR_UNSET, | 762 | .radio_addr = ADDR_UNSET, |
763 | .tda9887_conf = TDA9887_PRESENT, | 763 | .tda9887_conf = TDA9887_PRESENT, |
764 | .input = {{ | 764 | .input = {{ |
765 | .type = CX88_VMUX_TELEVISION, | 765 | .type = CX88_VMUX_TELEVISION, |
766 | .vmux = 0, | 766 | .vmux = 0, |
767 | .gpio0 = 0x87fd, | 767 | .gpio0 = 0x87fd, |
768 | },{ | 768 | },{ |
769 | .type = CX88_VMUX_COMPOSITE1, | 769 | .type = CX88_VMUX_COMPOSITE1, |
770 | .vmux = 1, | 770 | .vmux = 1, |
771 | .gpio0 = 0x87f9, | 771 | .gpio0 = 0x87f9, |
772 | },{ | 772 | },{ |
773 | .type = CX88_VMUX_SVIDEO, | 773 | .type = CX88_VMUX_SVIDEO, |
774 | .vmux = 2, | 774 | .vmux = 2, |
775 | .gpio0 = 0x87f9, | 775 | .gpio0 = 0x87f9, |
776 | }}, | 776 | }}, |
777 | .dvb = 1, | 777 | .dvb = 1, |
778 | }, | 778 | }, |
779 | [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = { | 779 | [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = { |
@@ -805,23 +805,23 @@ struct cx88_board cx88_boards[] = { | |||
805 | }, | 805 | }, |
806 | [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = { | 806 | [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = { |
807 | /* Alexander Wold <awold@bigfoot.com> */ | 807 | /* Alexander Wold <awold@bigfoot.com> */ |
808 | .name = "Kworld V-Stream Xpert DVD", | 808 | .name = "Kworld V-Stream Xpert DVD", |
809 | .tuner_type = UNSET, | 809 | .tuner_type = UNSET, |
810 | .input = {{ | 810 | .input = {{ |
811 | .type = CX88_VMUX_COMPOSITE1, | 811 | .type = CX88_VMUX_COMPOSITE1, |
812 | .vmux = 1, | 812 | .vmux = 1, |
813 | .gpio0 = 0x03000000, | 813 | .gpio0 = 0x03000000, |
814 | .gpio1 = 0x01000000, | ||
815 | .gpio2 = 0x02000000, | ||
816 | .gpio3 = 0x00100000, | ||
817 | },{ | ||
818 | .type = CX88_VMUX_SVIDEO, | ||
819 | .vmux = 2, | ||
820 | .gpio0 = 0x03000000, | ||
821 | .gpio1 = 0x01000000, | 814 | .gpio1 = 0x01000000, |
822 | .gpio2 = 0x02000000, | 815 | .gpio2 = 0x02000000, |
823 | .gpio3 = 0x00100000, | 816 | .gpio3 = 0x00100000, |
824 | }}, | 817 | },{ |
818 | .type = CX88_VMUX_SVIDEO, | ||
819 | .vmux = 2, | ||
820 | .gpio0 = 0x03000000, | ||
821 | .gpio1 = 0x01000000, | ||
822 | .gpio2 = 0x02000000, | ||
823 | .gpio3 = 0x00100000, | ||
824 | }}, | ||
825 | }, | 825 | }, |
826 | [CX88_BOARD_ATI_HDTVWONDER] = { | 826 | [CX88_BOARD_ATI_HDTVWONDER] = { |
827 | .name = "ATI HDTV Wonder", | 827 | .name = "ATI HDTV Wonder", |
@@ -892,26 +892,26 @@ struct cx88_subid cx88_subids[] = { | |||
892 | .subdevice = 0x00f8, | 892 | .subdevice = 0x00f8, |
893 | .card = CX88_BOARD_ATI_WONDER_PRO, | 893 | .card = CX88_BOARD_ATI_WONDER_PRO, |
894 | },{ | 894 | },{ |
895 | .subvendor = 0x107d, | 895 | .subvendor = 0x107d, |
896 | .subdevice = 0x6611, | 896 | .subdevice = 0x6611, |
897 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, | 897 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
898 | },{ | ||
899 | .subvendor = 0x107d, | ||
900 | .subdevice = 0x6613, /* NTSC */ | ||
901 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, | ||
902 | },{ | ||
903 | .subvendor = 0x107d, | ||
904 | .subdevice = 0x6620, | ||
905 | .card = CX88_BOARD_WINFAST_DV2000, | ||
898 | },{ | 906 | },{ |
899 | .subvendor = 0x107d, | 907 | .subvendor = 0x107d, |
900 | .subdevice = 0x6613, /* NTSC */ | 908 | .subdevice = 0x663b, |
901 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, | 909 | .card = CX88_BOARD_LEADTEK_PVR2000, |
902 | },{ | 910 | },{ |
903 | .subvendor = 0x107d, | 911 | .subvendor = 0x107d, |
904 | .subdevice = 0x6620, | 912 | .subdevice = 0x663C, |
905 | .card = CX88_BOARD_WINFAST_DV2000, | 913 | .card = CX88_BOARD_LEADTEK_PVR2000, |
906 | },{ | 914 | },{ |
907 | .subvendor = 0x107d, | ||
908 | .subdevice = 0x663b, | ||
909 | .card = CX88_BOARD_LEADTEK_PVR2000, | ||
910 | },{ | ||
911 | .subvendor = 0x107d, | ||
912 | .subdevice = 0x663C, | ||
913 | .card = CX88_BOARD_LEADTEK_PVR2000, | ||
914 | },{ | ||
915 | .subvendor = 0x1461, | 915 | .subvendor = 0x1461, |
916 | .subdevice = 0x000b, | 916 | .subdevice = 0x000b, |
917 | .card = CX88_BOARD_AVERTV_303, | 917 | .card = CX88_BOARD_AVERTV_303, |
@@ -920,13 +920,13 @@ struct cx88_subid cx88_subids[] = { | |||
920 | .subdevice = 0x8606, | 920 | .subdevice = 0x8606, |
921 | .card = CX88_BOARD_MSI_TVANYWHERE_MASTER, | 921 | .card = CX88_BOARD_MSI_TVANYWHERE_MASTER, |
922 | },{ | 922 | },{ |
923 | .subvendor = 0x10fc, | 923 | .subvendor = 0x10fc, |
924 | .subdevice = 0xd003, | 924 | .subdevice = 0xd003, |
925 | .card = CX88_BOARD_IODATA_GVVCP3PCI, | 925 | .card = CX88_BOARD_IODATA_GVVCP3PCI, |
926 | },{ | 926 | },{ |
927 | .subvendor = 0x1043, | 927 | .subvendor = 0x1043, |
928 | .subdevice = 0x4823, /* with mpeg encoder */ | 928 | .subdevice = 0x4823, /* with mpeg encoder */ |
929 | .card = CX88_BOARD_ASUS_PVR_416, | 929 | .card = CX88_BOARD_ASUS_PVR_416, |
930 | },{ | 930 | },{ |
931 | .subvendor = 0x17de, | 931 | .subvendor = 0x17de, |
932 | .subdevice = 0x08a6, | 932 | .subdevice = 0x08a6, |
@@ -943,15 +943,15 @@ struct cx88_subid cx88_subids[] = { | |||
943 | .subvendor = 0x18ac, | 943 | .subvendor = 0x18ac, |
944 | .subdevice = 0xdb00, | 944 | .subdevice = 0xdb00, |
945 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1, | 945 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1, |
946 | },{ | 946 | },{ |
947 | .subvendor = 0x0070, | 947 | .subvendor = 0x0070, |
948 | .subdevice = 0x9002, | 948 | .subdevice = 0x9002, |
949 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, | 949 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
950 | },{ | 950 | },{ |
951 | .subvendor = 0x14f1, | 951 | .subvendor = 0x14f1, |
952 | .subdevice = 0x0187, | 952 | .subdevice = 0x0187, |
953 | .card = CX88_BOARD_CONEXANT_DVB_T1, | 953 | .card = CX88_BOARD_CONEXANT_DVB_T1, |
954 | },{ | 954 | },{ |
955 | .subvendor = 0x1540, | 955 | .subvendor = 0x1540, |
956 | .subdevice = 0x2580, | 956 | .subdevice = 0x2580, |
957 | .card = CX88_BOARD_PROVIDEO_PV259, | 957 | .card = CX88_BOARD_PROVIDEO_PV259, |
@@ -960,9 +960,9 @@ struct cx88_subid cx88_subids[] = { | |||
960 | .subdevice = 0xdb10, | 960 | .subdevice = 0xdb10, |
961 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, | 961 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, |
962 | },{ | 962 | },{ |
963 | .subvendor = 0x1554, | 963 | .subvendor = 0x1554, |
964 | .subdevice = 0x4811, | 964 | .subdevice = 0x4811, |
965 | .card = CX88_BOARD_PIXELVIEW, | 965 | .card = CX88_BOARD_PIXELVIEW, |
966 | },{ | 966 | },{ |
967 | .subvendor = 0x7063, | 967 | .subvendor = 0x7063, |
968 | .subdevice = 0x3000, /* HD-3000 card */ | 968 | .subdevice = 0x3000, /* HD-3000 card */ |
@@ -987,23 +987,23 @@ struct cx88_subid cx88_subids[] = { | |||
987 | .subvendor = 0x1421, | 987 | .subvendor = 0x1421, |
988 | .subdevice = 0x0334, | 988 | .subdevice = 0x0334, |
989 | .card = CX88_BOARD_ADSTECH_DVB_T_PCI, | 989 | .card = CX88_BOARD_ADSTECH_DVB_T_PCI, |
990 | },{ | 990 | },{ |
991 | .subvendor = 0x153b, | 991 | .subvendor = 0x153b, |
992 | .subdevice = 0x1166, | 992 | .subdevice = 0x1166, |
993 | .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1, | 993 | .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1, |
994 | },{ | 994 | },{ |
995 | .subvendor = 0x18ac, | 995 | .subvendor = 0x18ac, |
996 | .subdevice = 0xd500, | 996 | .subdevice = 0xd500, |
997 | .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD, | 997 | .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD, |
998 | },{ | 998 | },{ |
999 | .subvendor = 0x1461, | 999 | .subvendor = 0x1461, |
1000 | .subdevice = 0x8011, | 1000 | .subdevice = 0x8011, |
1001 | .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550, | 1001 | .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550, |
1002 | },{ | 1002 | },{ |
1003 | .subvendor = PCI_VENDOR_ID_ATI, | 1003 | .subvendor = PCI_VENDOR_ID_ATI, |
1004 | .subdevice = 0xa101, | 1004 | .subdevice = 0xa101, |
1005 | .card = CX88_BOARD_ATI_HDTVWONDER, | 1005 | .card = CX88_BOARD_ATI_HDTVWONDER, |
1006 | },{ | 1006 | },{ |
1007 | .subvendor = 0x107d, | 1007 | .subvendor = 0x107d, |
1008 | .subdevice = 0x665f, | 1008 | .subdevice = 0x665f, |
1009 | .card = CX88_BOARD_WINFAST_DTV1000, | 1009 | .card = CX88_BOARD_WINFAST_DTV1000, |
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index d4d39c1751af..f01a631d0c00 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c | |||
@@ -153,26 +153,26 @@ static u32* cx88_risc_field(u32 *rp, struct scatterlist *sglist, | |||
153 | } | 153 | } |
154 | if (bpl <= sg_dma_len(sg)-offset) { | 154 | if (bpl <= sg_dma_len(sg)-offset) { |
155 | /* fits into current chunk */ | 155 | /* fits into current chunk */ |
156 | *(rp++)=cpu_to_le32(RISC_WRITE|RISC_SOL|RISC_EOL|bpl); | 156 | *(rp++)=cpu_to_le32(RISC_WRITE|RISC_SOL|RISC_EOL|bpl); |
157 | *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); | 157 | *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); |
158 | offset+=bpl; | 158 | offset+=bpl; |
159 | } else { | 159 | } else { |
160 | /* scanline needs to be splitted */ | 160 | /* scanline needs to be splitted */ |
161 | todo = bpl; | 161 | todo = bpl; |
162 | *(rp++)=cpu_to_le32(RISC_WRITE|RISC_SOL| | 162 | *(rp++)=cpu_to_le32(RISC_WRITE|RISC_SOL| |
163 | (sg_dma_len(sg)-offset)); | 163 | (sg_dma_len(sg)-offset)); |
164 | *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); | 164 | *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); |
165 | todo -= (sg_dma_len(sg)-offset); | 165 | todo -= (sg_dma_len(sg)-offset); |
166 | offset = 0; | 166 | offset = 0; |
167 | sg++; | 167 | sg++; |
168 | while (todo > sg_dma_len(sg)) { | 168 | while (todo > sg_dma_len(sg)) { |
169 | *(rp++)=cpu_to_le32(RISC_WRITE| | 169 | *(rp++)=cpu_to_le32(RISC_WRITE| |
170 | sg_dma_len(sg)); | 170 | sg_dma_len(sg)); |
171 | *(rp++)=cpu_to_le32(sg_dma_address(sg)); | 171 | *(rp++)=cpu_to_le32(sg_dma_address(sg)); |
172 | todo -= sg_dma_len(sg); | 172 | todo -= sg_dma_len(sg); |
173 | sg++; | 173 | sg++; |
174 | } | 174 | } |
175 | *(rp++)=cpu_to_le32(RISC_WRITE|RISC_EOL|todo); | 175 | *(rp++)=cpu_to_le32(RISC_WRITE|RISC_EOL|todo); |
176 | *(rp++)=cpu_to_le32(sg_dma_address(sg)); | 176 | *(rp++)=cpu_to_le32(sg_dma_address(sg)); |
177 | offset += todo; | 177 | offset += todo; |
178 | } | 178 | } |
@@ -309,7 +309,7 @@ struct sram_channel cx88_sram_channels[] = { | |||
309 | .name = "video y / packed", | 309 | .name = "video y / packed", |
310 | .cmds_start = 0x180040, | 310 | .cmds_start = 0x180040, |
311 | .ctrl_start = 0x180400, | 311 | .ctrl_start = 0x180400, |
312 | .cdt = 0x180400 + 64, | 312 | .cdt = 0x180400 + 64, |
313 | .fifo_start = 0x180c00, | 313 | .fifo_start = 0x180c00, |
314 | .fifo_size = 0x002800, | 314 | .fifo_size = 0x002800, |
315 | .ptr1_reg = MO_DMA21_PTR1, | 315 | .ptr1_reg = MO_DMA21_PTR1, |
@@ -321,7 +321,7 @@ struct sram_channel cx88_sram_channels[] = { | |||
321 | .name = "video u", | 321 | .name = "video u", |
322 | .cmds_start = 0x180080, | 322 | .cmds_start = 0x180080, |
323 | .ctrl_start = 0x1804a0, | 323 | .ctrl_start = 0x1804a0, |
324 | .cdt = 0x1804a0 + 64, | 324 | .cdt = 0x1804a0 + 64, |
325 | .fifo_start = 0x183400, | 325 | .fifo_start = 0x183400, |
326 | .fifo_size = 0x000800, | 326 | .fifo_size = 0x000800, |
327 | .ptr1_reg = MO_DMA22_PTR1, | 327 | .ptr1_reg = MO_DMA22_PTR1, |
@@ -333,7 +333,7 @@ struct sram_channel cx88_sram_channels[] = { | |||
333 | .name = "video v", | 333 | .name = "video v", |
334 | .cmds_start = 0x1800c0, | 334 | .cmds_start = 0x1800c0, |
335 | .ctrl_start = 0x180540, | 335 | .ctrl_start = 0x180540, |
336 | .cdt = 0x180540 + 64, | 336 | .cdt = 0x180540 + 64, |
337 | .fifo_start = 0x183c00, | 337 | .fifo_start = 0x183c00, |
338 | .fifo_size = 0x000800, | 338 | .fifo_size = 0x000800, |
339 | .ptr1_reg = MO_DMA23_PTR1, | 339 | .ptr1_reg = MO_DMA23_PTR1, |
@@ -345,7 +345,7 @@ struct sram_channel cx88_sram_channels[] = { | |||
345 | .name = "vbi", | 345 | .name = "vbi", |
346 | .cmds_start = 0x180100, | 346 | .cmds_start = 0x180100, |
347 | .ctrl_start = 0x1805e0, | 347 | .ctrl_start = 0x1805e0, |
348 | .cdt = 0x1805e0 + 64, | 348 | .cdt = 0x1805e0 + 64, |
349 | .fifo_start = 0x184400, | 349 | .fifo_start = 0x184400, |
350 | .fifo_size = 0x001000, | 350 | .fifo_size = 0x001000, |
351 | .ptr1_reg = MO_DMA24_PTR1, | 351 | .ptr1_reg = MO_DMA24_PTR1, |
@@ -357,7 +357,7 @@ struct sram_channel cx88_sram_channels[] = { | |||
357 | .name = "audio from", | 357 | .name = "audio from", |
358 | .cmds_start = 0x180140, | 358 | .cmds_start = 0x180140, |
359 | .ctrl_start = 0x180680, | 359 | .ctrl_start = 0x180680, |
360 | .cdt = 0x180680 + 64, | 360 | .cdt = 0x180680 + 64, |
361 | .fifo_start = 0x185400, | 361 | .fifo_start = 0x185400, |
362 | .fifo_size = 0x000200, | 362 | .fifo_size = 0x000200, |
363 | .ptr1_reg = MO_DMA25_PTR1, | 363 | .ptr1_reg = MO_DMA25_PTR1, |
@@ -369,7 +369,7 @@ struct sram_channel cx88_sram_channels[] = { | |||
369 | .name = "audio to", | 369 | .name = "audio to", |
370 | .cmds_start = 0x180180, | 370 | .cmds_start = 0x180180, |
371 | .ctrl_start = 0x180720, | 371 | .ctrl_start = 0x180720, |
372 | .cdt = 0x180680 + 64, /* same as audio IN */ | 372 | .cdt = 0x180680 + 64, /* same as audio IN */ |
373 | .fifo_start = 0x185400, /* same as audio IN */ | 373 | .fifo_start = 0x185400, /* same as audio IN */ |
374 | .fifo_size = 0x000200, /* same as audio IN */ | 374 | .fifo_size = 0x000200, /* same as audio IN */ |
375 | .ptr1_reg = MO_DMA26_PTR1, | 375 | .ptr1_reg = MO_DMA26_PTR1, |
@@ -1137,7 +1137,7 @@ struct cx88_core* cx88_core_get(struct pci_dev *pci) | |||
1137 | if (!core->radio_addr) | 1137 | if (!core->radio_addr) |
1138 | core->radio_addr = cx88_boards[core->board].radio_addr; | 1138 | core->radio_addr = cx88_boards[core->board].radio_addr; |
1139 | 1139 | ||
1140 | printk(KERN_INFO "TV tuner %d at 0x%02x, Radio tuner %d at 0x%02x\n", | 1140 | printk(KERN_INFO "TV tuner %d at 0x%02x, Radio tuner %d at 0x%02x\n", |
1141 | core->tuner_type, core->tuner_addr<<1, | 1141 | core->tuner_type, core->tuner_addr<<1, |
1142 | core->radio_type, core->radio_addr<<1); | 1142 | core->radio_type, core->radio_addr<<1); |
1143 | 1143 | ||
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c index 579de88e3081..3be601cfc99b 100644 --- a/drivers/media/video/cx88/cx88-dvb.c +++ b/drivers/media/video/cx88/cx88-dvb.c | |||
@@ -128,7 +128,7 @@ static int dntv_live_dvbt_demod_init(struct dvb_frontend* fe) | |||
128 | static u8 reset [] = { 0x50, 0x80 }; | 128 | static u8 reset [] = { 0x50, 0x80 }; |
129 | static u8 adc_ctl_1_cfg [] = { 0x8E, 0x40 }; | 129 | static u8 adc_ctl_1_cfg [] = { 0x8E, 0x40 }; |
130 | static u8 agc_cfg [] = { 0x67, 0x10, 0x23, 0x00, 0xFF, 0xFF, | 130 | static u8 agc_cfg [] = { 0x67, 0x10, 0x23, 0x00, 0xFF, 0xFF, |
131 | 0x00, 0xFF, 0x00, 0x40, 0x40 }; | 131 | 0x00, 0xFF, 0x00, 0x40, 0x40 }; |
132 | static u8 dntv_extra[] = { 0xB5, 0x7A }; | 132 | static u8 dntv_extra[] = { 0xB5, 0x7A }; |
133 | static u8 capt_range_cfg[] = { 0x75, 0x32 }; | 133 | static u8 capt_range_cfg[] = { 0x75, 0x32 }; |
134 | 134 | ||
@@ -464,7 +464,7 @@ static int __devinit dvb_probe(struct pci_dev *pci_dev, | |||
464 | 464 | ||
465 | static void __devexit dvb_remove(struct pci_dev *pci_dev) | 465 | static void __devexit dvb_remove(struct pci_dev *pci_dev) |
466 | { | 466 | { |
467 | struct cx8802_dev *dev = pci_get_drvdata(pci_dev); | 467 | struct cx8802_dev *dev = pci_get_drvdata(pci_dev); |
468 | 468 | ||
469 | /* dvb */ | 469 | /* dvb */ |
470 | videobuf_dvb_unregister(&dev->dvb); | 470 | videobuf_dvb_unregister(&dev->dvb); |
@@ -479,8 +479,8 @@ static struct pci_device_id cx8802_pci_tbl[] = { | |||
479 | { | 479 | { |
480 | .vendor = 0x14f1, | 480 | .vendor = 0x14f1, |
481 | .device = 0x8802, | 481 | .device = 0x8802, |
482 | .subvendor = PCI_ANY_ID, | 482 | .subvendor = PCI_ANY_ID, |
483 | .subdevice = PCI_ANY_ID, | 483 | .subdevice = PCI_ANY_ID, |
484 | },{ | 484 | },{ |
485 | /* --- end of list --- */ | 485 | /* --- end of list --- */ |
486 | } | 486 | } |
@@ -488,10 +488,10 @@ static struct pci_device_id cx8802_pci_tbl[] = { | |||
488 | MODULE_DEVICE_TABLE(pci, cx8802_pci_tbl); | 488 | MODULE_DEVICE_TABLE(pci, cx8802_pci_tbl); |
489 | 489 | ||
490 | static struct pci_driver dvb_pci_driver = { | 490 | static struct pci_driver dvb_pci_driver = { |
491 | .name = "cx88-dvb", | 491 | .name = "cx88-dvb", |
492 | .id_table = cx8802_pci_tbl, | 492 | .id_table = cx8802_pci_tbl, |
493 | .probe = dvb_probe, | 493 | .probe = dvb_probe, |
494 | .remove = __devexit_p(dvb_remove), | 494 | .remove = __devexit_p(dvb_remove), |
495 | .suspend = cx8802_suspend_common, | 495 | .suspend = cx8802_suspend_common, |
496 | .resume = cx8802_resume_common, | 496 | .resume = cx8802_resume_common, |
497 | }; | 497 | }; |
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c index 761cebd40dbd..9790d412f192 100644 --- a/drivers/media/video/cx88/cx88-i2c.c +++ b/drivers/media/video/cx88/cx88-i2c.c | |||
@@ -3,7 +3,7 @@ | |||
3 | cx88-i2c.c -- all the i2c code is here | 3 | cx88-i2c.c -- all the i2c code is here |
4 | 4 | ||
5 | Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) | 5 | Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) |
6 | & Marcus Metzler (mocm@thp.uni-koeln.de) | 6 | & Marcus Metzler (mocm@thp.uni-koeln.de) |
7 | (c) 2002 Yurij Sysoev <yurij@naturesoft.net> | 7 | (c) 2002 Yurij Sysoev <yurij@naturesoft.net> |
8 | (c) 1999-2003 Gerd Knorr <kraxel@bytesex.org> | 8 | (c) 1999-2003 Gerd Knorr <kraxel@bytesex.org> |
9 | 9 | ||
@@ -90,7 +90,7 @@ static int cx8800_bit_getsda(void *data) | |||
90 | 90 | ||
91 | static int attach_inform(struct i2c_client *client) | 91 | static int attach_inform(struct i2c_client *client) |
92 | { | 92 | { |
93 | struct tuner_setup tun_setup; | 93 | struct tuner_setup tun_setup; |
94 | struct cx88_core *core = i2c_get_adapdata(client->adapter); | 94 | struct cx88_core *core = i2c_get_adapdata(client->adapter); |
95 | 95 | ||
96 | dprintk(1, "%s i2c attach [addr=0x%x,client=%s]\n", | 96 | dprintk(1, "%s i2c attach [addr=0x%x,client=%s]\n", |
@@ -98,7 +98,7 @@ static int attach_inform(struct i2c_client *client) | |||
98 | if (!client->driver->command) | 98 | if (!client->driver->command) |
99 | return 0; | 99 | return 0; |
100 | 100 | ||
101 | if (core->radio_type != UNSET) { | 101 | if (core->radio_type != UNSET) { |
102 | if ((core->radio_addr==ADDR_UNSET)||(core->radio_addr==client->addr)) { | 102 | if ((core->radio_addr==ADDR_UNSET)||(core->radio_addr==client->addr)) { |
103 | tun_setup.mode_mask = T_RADIO; | 103 | tun_setup.mode_mask = T_RADIO; |
104 | tun_setup.type = core->radio_type; | 104 | tun_setup.type = core->radio_type; |
@@ -106,8 +106,8 @@ static int attach_inform(struct i2c_client *client) | |||
106 | 106 | ||
107 | client->driver->command (client, TUNER_SET_TYPE_ADDR, &tun_setup); | 107 | client->driver->command (client, TUNER_SET_TYPE_ADDR, &tun_setup); |
108 | } | 108 | } |
109 | } | 109 | } |
110 | if (core->tuner_type != UNSET) { | 110 | if (core->tuner_type != UNSET) { |
111 | if ((core->tuner_addr==ADDR_UNSET)||(core->tuner_addr==client->addr)) { | 111 | if ((core->tuner_addr==ADDR_UNSET)||(core->tuner_addr==client->addr)) { |
112 | 112 | ||
113 | tun_setup.mode_mask = T_ANALOG_TV; | 113 | tun_setup.mode_mask = T_ANALOG_TV; |
@@ -116,7 +116,7 @@ static int attach_inform(struct i2c_client *client) | |||
116 | 116 | ||
117 | client->driver->command (client,TUNER_SET_TYPE_ADDR, &tun_setup); | 117 | client->driver->command (client,TUNER_SET_TYPE_ADDR, &tun_setup); |
118 | } | 118 | } |
119 | } | 119 | } |
120 | 120 | ||
121 | if (core->tda9887_conf) | 121 | if (core->tda9887_conf) |
122 | client->driver->command(client, TDA9887_SET_CONFIG, &core->tda9887_conf); | 122 | client->driver->command(client, TDA9887_SET_CONFIG, &core->tda9887_conf); |
@@ -159,7 +159,7 @@ static struct i2c_adapter cx8800_i2c_adap_template = { | |||
159 | }; | 159 | }; |
160 | 160 | ||
161 | static struct i2c_client cx8800_i2c_client_template = { | 161 | static struct i2c_client cx8800_i2c_client_template = { |
162 | .name = "cx88xx internal", | 162 | .name = "cx88xx internal", |
163 | }; | 163 | }; |
164 | 164 | ||
165 | static char *i2c_devs[128] = { | 165 | static char *i2c_devs[128] = { |
@@ -202,10 +202,10 @@ int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci) | |||
202 | 202 | ||
203 | core->i2c_adap.dev.parent = &pci->dev; | 203 | core->i2c_adap.dev.parent = &pci->dev; |
204 | strlcpy(core->i2c_adap.name,core->name,sizeof(core->i2c_adap.name)); | 204 | strlcpy(core->i2c_adap.name,core->name,sizeof(core->i2c_adap.name)); |
205 | core->i2c_algo.data = core; | 205 | core->i2c_algo.data = core; |
206 | i2c_set_adapdata(&core->i2c_adap,core); | 206 | i2c_set_adapdata(&core->i2c_adap,core); |
207 | core->i2c_adap.algo_data = &core->i2c_algo; | 207 | core->i2c_adap.algo_data = &core->i2c_algo; |
208 | core->i2c_client.adapter = &core->i2c_adap; | 208 | core->i2c_client.adapter = &core->i2c_adap; |
209 | 209 | ||
210 | cx8800_bit_setscl(core,1); | 210 | cx8800_bit_setscl(core,1); |
211 | cx8800_bit_setsda(core,1); | 211 | cx8800_bit_setsda(core,1); |
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c index c27fe4c36f69..38b12ebaa49e 100644 --- a/drivers/media/video/cx88/cx88-input.c +++ b/drivers/media/video/cx88/cx88-input.c | |||
@@ -553,7 +553,7 @@ void cx88_ir_irq(struct cx88_core *core) | |||
553 | 553 | ||
554 | if ((ircode & 0xffff) != 0xeb04) { /* wrong address */ | 554 | if ((ircode & 0xffff) != 0xeb04) { /* wrong address */ |
555 | ir_dprintk("pulse distance decoded wrong address\n"); | 555 | ir_dprintk("pulse distance decoded wrong address\n"); |
556 | break; | 556 | break; |
557 | } | 557 | } |
558 | 558 | ||
559 | if (((~ircode >> 24) & 0xff) != ((ircode >> 16) & 0xff)) { /* wrong checksum */ | 559 | if (((~ircode >> 24) & 0xff) != ((ircode >> 16) & 0xff)) { /* wrong checksum */ |
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c index 2c4fbe9258d9..35e6d0c2b872 100644 --- a/drivers/media/video/cx88/cx88-mpeg.c +++ b/drivers/media/video/cx88/cx88-mpeg.c | |||
@@ -316,14 +316,14 @@ static void cx8802_mpeg_irq(struct cx8802_dev *dev) | |||
316 | spin_unlock(&dev->slock); | 316 | spin_unlock(&dev->slock); |
317 | } | 317 | } |
318 | 318 | ||
319 | /* other general errors */ | 319 | /* other general errors */ |
320 | if (status & 0x1f0100) { | 320 | if (status & 0x1f0100) { |
321 | dprintk( 0, "general errors: 0x%08x\n", status & 0x1f0100 ); | 321 | dprintk( 0, "general errors: 0x%08x\n", status & 0x1f0100 ); |
322 | spin_lock(&dev->slock); | 322 | spin_lock(&dev->slock); |
323 | cx8802_stop_dma(dev); | 323 | cx8802_stop_dma(dev); |
324 | cx8802_restart_queue(dev,&dev->mpegq); | 324 | cx8802_restart_queue(dev,&dev->mpegq); |
325 | spin_unlock(&dev->slock); | 325 | spin_unlock(&dev->slock); |
326 | } | 326 | } |
327 | } | 327 | } |
328 | 328 | ||
329 | #define MAX_IRQ_LOOP 10 | 329 | #define MAX_IRQ_LOOP 10 |
@@ -379,8 +379,8 @@ int cx8802_init_common(struct cx8802_dev *dev) | |||
379 | } | 379 | } |
380 | 380 | ||
381 | pci_read_config_byte(dev->pci, PCI_CLASS_REVISION, &dev->pci_rev); | 381 | pci_read_config_byte(dev->pci, PCI_CLASS_REVISION, &dev->pci_rev); |
382 | pci_read_config_byte(dev->pci, PCI_LATENCY_TIMER, &dev->pci_lat); | 382 | pci_read_config_byte(dev->pci, PCI_LATENCY_TIMER, &dev->pci_lat); |
383 | printk(KERN_INFO "%s/2: found at %s, rev: %d, irq: %d, " | 383 | printk(KERN_INFO "%s/2: found at %s, rev: %d, irq: %d, " |
384 | "latency: %d, mmio: 0x%lx\n", dev->core->name, | 384 | "latency: %d, mmio: 0x%lx\n", dev->core->name, |
385 | pci_name(dev->pci), dev->pci_rev, dev->pci->irq, | 385 | pci_name(dev->pci), dev->pci_rev, dev->pci->irq, |
386 | dev->pci_lat,pci_resource_start(dev->pci,0)); | 386 | dev->pci_lat,pci_resource_start(dev->pci,0)); |
@@ -430,7 +430,7 @@ void cx8802_fini_common(struct cx8802_dev *dev) | |||
430 | 430 | ||
431 | int cx8802_suspend_common(struct pci_dev *pci_dev, pm_message_t state) | 431 | int cx8802_suspend_common(struct pci_dev *pci_dev, pm_message_t state) |
432 | { | 432 | { |
433 | struct cx8802_dev *dev = pci_get_drvdata(pci_dev); | 433 | struct cx8802_dev *dev = pci_get_drvdata(pci_dev); |
434 | struct cx88_core *core = dev->core; | 434 | struct cx88_core *core = dev->core; |
435 | 435 | ||
436 | /* stop mpeg dma */ | 436 | /* stop mpeg dma */ |
diff --git a/drivers/media/video/cx88/cx88-reg.h b/drivers/media/video/cx88/cx88-reg.h index 0a3a62fc9bbb..d3bf5b17b1d4 100644 --- a/drivers/media/video/cx88/cx88-reg.h +++ b/drivers/media/video/cx88/cx88-reg.h | |||
@@ -3,9 +3,9 @@ | |||
3 | cx88x-hw.h - CX2388x register offsets | 3 | cx88x-hw.h - CX2388x register offsets |
4 | 4 | ||
5 | Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) | 5 | Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) |
6 | 2001 Michael Eskin | 6 | 2001 Michael Eskin |
7 | 2002 Yurij Sysoev <yurij@naturesoft.net> | 7 | 2002 Yurij Sysoev <yurij@naturesoft.net> |
8 | 2003 Gerd Knorr <kraxel@bytesex.org> | 8 | 2003 Gerd Knorr <kraxel@bytesex.org> |
9 | 9 | ||
10 | This program is free software; you can redistribute it and/or modify | 10 | This program is free software; you can redistribute it and/or modify |
11 | it under the terms of the GNU General Public License as published by | 11 | it under the terms of the GNU General Public License as published by |
@@ -728,13 +728,13 @@ | |||
728 | #define ColorFormatGamma 0x1000 | 728 | #define ColorFormatGamma 0x1000 |
729 | 729 | ||
730 | #define Interlaced 0x1 | 730 | #define Interlaced 0x1 |
731 | #define NonInterlaced 0x0 | 731 | #define NonInterlaced 0x0 |
732 | 732 | ||
733 | #define FieldEven 0x1 | 733 | #define FieldEven 0x1 |
734 | #define FieldOdd 0x0 | 734 | #define FieldOdd 0x0 |
735 | 735 | ||
736 | #define TGReadWriteMode 0x0 | 736 | #define TGReadWriteMode 0x0 |
737 | #define TGEnableMode 0x1 | 737 | #define TGEnableMode 0x1 |
738 | 738 | ||
739 | #define DV_CbAlign 0x0 | 739 | #define DV_CbAlign 0x0 |
740 | #define DV_Y0Align 0x1 | 740 | #define DV_Y0Align 0x1 |
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 4c99fc39bb2a..f22ccb65de1c 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/media/video/cx88/cx88-video.c | |||
@@ -100,7 +100,7 @@ static struct cx88_tvnorm tvnorms[] = { | |||
100 | .id = V4L2_STD_PAL_I, | 100 | .id = V4L2_STD_PAL_I, |
101 | .cxiformat = VideoFormatPAL, | 101 | .cxiformat = VideoFormatPAL, |
102 | .cxoformat = 0x181f0008, | 102 | .cxoformat = 0x181f0008, |
103 | },{ | 103 | },{ |
104 | .name = "PAL-M", | 104 | .name = "PAL-M", |
105 | .id = V4L2_STD_PAL_M, | 105 | .id = V4L2_STD_PAL_M, |
106 | .cxiformat = VideoFormatPALM, | 106 | .cxiformat = VideoFormatPALM, |
@@ -470,7 +470,7 @@ static int restart_video_queue(struct cx8800_dev *dev, | |||
470 | struct list_head *item; | 470 | struct list_head *item; |
471 | 471 | ||
472 | if (!list_empty(&q->active)) { | 472 | if (!list_empty(&q->active)) { |
473 | buf = list_entry(q->active.next, struct cx88_buffer, vb.queue); | 473 | buf = list_entry(q->active.next, struct cx88_buffer, vb.queue); |
474 | dprintk(2,"restart_queue [%p/%d]: restart dma\n", | 474 | dprintk(2,"restart_queue [%p/%d]: restart dma\n", |
475 | buf, buf->vb.i); | 475 | buf, buf->vb.i); |
476 | start_video_dma(dev, q, buf); | 476 | start_video_dma(dev, q, buf); |
@@ -486,7 +486,7 @@ static int restart_video_queue(struct cx8800_dev *dev, | |||
486 | for (;;) { | 486 | for (;;) { |
487 | if (list_empty(&q->queued)) | 487 | if (list_empty(&q->queued)) |
488 | return 0; | 488 | return 0; |
489 | buf = list_entry(q->queued.next, struct cx88_buffer, vb.queue); | 489 | buf = list_entry(q->queued.next, struct cx88_buffer, vb.queue); |
490 | if (NULL == prev) { | 490 | if (NULL == prev) { |
491 | list_del(&buf->vb.queue); | 491 | list_del(&buf->vb.queue); |
492 | list_add_tail(&buf->vb.queue,&q->active); | 492 | list_add_tail(&buf->vb.queue,&q->active); |
@@ -783,7 +783,7 @@ static int video_open(struct inode *inode, struct file *file) | |||
783 | cx88_call_i2c_clients(core,AUDC_SET_RADIO,NULL); | 783 | cx88_call_i2c_clients(core,AUDC_SET_RADIO,NULL); |
784 | } | 784 | } |
785 | 785 | ||
786 | return 0; | 786 | return 0; |
787 | } | 787 | } |
788 | 788 | ||
789 | static ssize_t | 789 | static ssize_t |
@@ -922,7 +922,7 @@ static int set_control(struct cx88_core *core, struct v4l2_control *ctl) | |||
922 | { | 922 | { |
923 | /* struct cx88_core *core = dev->core; */ | 923 | /* struct cx88_core *core = dev->core; */ |
924 | struct cx88_ctrl *c = NULL; | 924 | struct cx88_ctrl *c = NULL; |
925 | u32 v_sat_value; | 925 | u32 v_sat_value; |
926 | u32 value; | 926 | u32 value; |
927 | int i; | 927 | int i; |
928 | 928 | ||
@@ -1252,7 +1252,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file, | |||
1252 | } | 1252 | } |
1253 | 1253 | ||
1254 | int cx88_do_ioctl(struct inode *inode, struct file *file, int radio, | 1254 | int cx88_do_ioctl(struct inode *inode, struct file *file, int radio, |
1255 | struct cx88_core *core, unsigned int cmd, void *arg, v4l2_kioctl driver_ioctl) | 1255 | struct cx88_core *core, unsigned int cmd, void *arg, v4l2_kioctl driver_ioctl) |
1256 | { | 1256 | { |
1257 | int err; | 1257 | int err; |
1258 | 1258 | ||
@@ -1399,7 +1399,7 @@ int cx88_do_ioctl(struct inode *inode, struct file *file, int radio, | |||
1399 | 1399 | ||
1400 | cx88_get_stereo(core ,t); | 1400 | cx88_get_stereo(core ,t); |
1401 | reg = cx_read(MO_DEVICE_STATUS); | 1401 | reg = cx_read(MO_DEVICE_STATUS); |
1402 | t->signal = (reg & (1<<5)) ? 0xffff : 0x0000; | 1402 | t->signal = (reg & (1<<5)) ? 0xffff : 0x0000; |
1403 | return 0; | 1403 | return 0; |
1404 | } | 1404 | } |
1405 | case VIDIOC_S_TUNER: | 1405 | case VIDIOC_S_TUNER: |
@@ -1486,7 +1486,7 @@ static int radio_do_ioctl(struct inode *inode, struct file *file, | |||
1486 | struct v4l2_capability *cap = arg; | 1486 | struct v4l2_capability *cap = arg; |
1487 | 1487 | ||
1488 | memset(cap,0,sizeof(*cap)); | 1488 | memset(cap,0,sizeof(*cap)); |
1489 | strcpy(cap->driver, "cx8800"); | 1489 | strcpy(cap->driver, "cx8800"); |
1490 | strlcpy(cap->card, cx88_boards[core->board].name, | 1490 | strlcpy(cap->card, cx88_boards[core->board].name, |
1491 | sizeof(cap->card)); | 1491 | sizeof(cap->card)); |
1492 | sprintf(cap->bus_info,"PCI:%s", pci_name(dev->pci)); | 1492 | sprintf(cap->bus_info,"PCI:%s", pci_name(dev->pci)); |
@@ -1827,8 +1827,8 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev, | |||
1827 | 1827 | ||
1828 | /* print pci info */ | 1828 | /* print pci info */ |
1829 | pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &dev->pci_rev); | 1829 | pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &dev->pci_rev); |
1830 | pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &dev->pci_lat); | 1830 | pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &dev->pci_lat); |
1831 | printk(KERN_INFO "%s/0: found at %s, rev: %d, irq: %d, " | 1831 | printk(KERN_INFO "%s/0: found at %s, rev: %d, irq: %d, " |
1832 | "latency: %d, mmio: 0x%lx\n", core->name, | 1832 | "latency: %d, mmio: 0x%lx\n", core->name, |
1833 | pci_name(pci_dev), dev->pci_rev, pci_dev->irq, | 1833 | pci_name(pci_dev), dev->pci_rev, pci_dev->irq, |
1834 | dev->pci_lat,pci_resource_start(pci_dev,0)); | 1834 | dev->pci_lat,pci_resource_start(pci_dev,0)); |
@@ -1944,7 +1944,7 @@ fail_free: | |||
1944 | 1944 | ||
1945 | static void __devexit cx8800_finidev(struct pci_dev *pci_dev) | 1945 | static void __devexit cx8800_finidev(struct pci_dev *pci_dev) |
1946 | { | 1946 | { |
1947 | struct cx8800_dev *dev = pci_get_drvdata(pci_dev); | 1947 | struct cx8800_dev *dev = pci_get_drvdata(pci_dev); |
1948 | struct cx88_core *core = dev->core; | 1948 | struct cx88_core *core = dev->core; |
1949 | 1949 | ||
1950 | /* stop thread */ | 1950 | /* stop thread */ |
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index ea5c092a779e..baeae1ac992c 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h | |||
@@ -259,8 +259,8 @@ struct cx88_core { | |||
259 | /* pci stuff */ | 259 | /* pci stuff */ |
260 | int pci_bus; | 260 | int pci_bus; |
261 | int pci_slot; | 261 | int pci_slot; |
262 | u32 __iomem *lmmio; | 262 | u32 __iomem *lmmio; |
263 | u8 __iomem *bmmio; | 263 | u8 __iomem *bmmio; |
264 | u32 shadow[SHADOW_MAX]; | 264 | u32 shadow[SHADOW_MAX]; |
265 | int pci_irqmask; | 265 | int pci_irqmask; |
266 | 266 | ||