Lines Matching +full:0 +full:xc5000
23 #include "xc5000.h"
33 MODULE_PARM_DESC(transfer_mode, "transfer mode (1-ISO or 0-BULK)");
39 /* Bitmask marking allocated devices from 0 to CX231XX_MAXBOARDS */
47 {0x03, 0x01, 10},
48 {0x03, 0x00, 30},
49 {0x03, 0x01, 10},
83 .tuner_addr = 0x61,
85 .tuner_sif_gpio = 0x05,
86 .tuner_scl_gpio = 0x1a,
87 .tuner_sda_gpio = 0x1b,
90 .demod_xfer_mode = 0,
91 .ctl_pin_status_mask = 0xFFFFFFC4,
92 .agc_analog_digital_select_gpio = 0x0c,
93 .gpio_pin_status_mask = 0x4001000,
97 .demod_addr = 0x02,
123 .tuner_addr = 0x61,
125 .tuner_sif_gpio = 0x05,
126 .tuner_scl_gpio = 0x1a,
127 .tuner_sda_gpio = 0x1b,
130 .demod_xfer_mode = 0,
131 .ctl_pin_status_mask = 0xFFFFFFC4,
132 .agc_analog_digital_select_gpio = 0x0c,
133 .gpio_pin_status_mask = 0x4001000,
137 .demod_addr = 0x32,
163 .tuner_addr = 0x60,
165 .tuner_sif_gpio = 0x05,
166 .tuner_scl_gpio = 0x1a,
167 .tuner_sda_gpio = 0x1b,
170 .demod_xfer_mode = 0,
171 .ctl_pin_status_mask = 0xFFFFFFC4,
172 .agc_analog_digital_select_gpio = 0x1c,
173 .gpio_pin_status_mask = 0x4001000,
177 .demod_addr = 0x02,
204 .tuner_addr = 0x60,
206 .tuner_sif_gpio = 0x05,
207 .tuner_scl_gpio = 0x1a,
208 .tuner_sda_gpio = 0x1b,
211 .demod_xfer_mode = 0,
212 .ctl_pin_status_mask = 0xFFFFFFC4,
213 .agc_analog_digital_select_gpio = 0x1c,
214 .gpio_pin_status_mask = 0x4001000,
218 .demod_addr = 0x02,
246 .ctl_pin_status_mask = 0xFFFFFFC4,
247 .agc_analog_digital_select_gpio = 0x1c,
248 .gpio_pin_status_mask = 0x4001000,
253 * So set to 0 for now until someone can manage to get this
255 .has_417 = 0,
275 .tuner_addr = 0x61,
277 .tuner_sif_gpio = 0x05,
278 .tuner_scl_gpio = 0x1a,
279 .tuner_sda_gpio = 0x1b,
282 .demod_xfer_mode = 0,
283 .ctl_pin_status_mask = 0xFFFFFFC4,
284 .agc_analog_digital_select_gpio = 0x0c,
285 .gpio_pin_status_mask = 0x4001000,
289 .demod_addr = 0x02,
303 .tuner_addr = 0x61,
305 .tuner_sif_gpio = 0x05,
306 .tuner_scl_gpio = 0x1a,
307 .tuner_sda_gpio = 0x1b,
310 .demod_xfer_mode = 0,
311 .ctl_pin_status_mask = 0xFFFFFFC4,
312 .agc_analog_digital_select_gpio = 0x0c,
313 .gpio_pin_status_mask = 0x4001000,
317 .demod_addr = 0x32,
331 .tuner_addr = 0x60,
333 .tuner_sif_gpio = 0x05,
334 .tuner_scl_gpio = 0x1a,
335 .tuner_sda_gpio = 0x1b,
338 .demod_xfer_mode = 0,
339 .ctl_pin_status_mask = 0xFFFFFFC4,
340 .agc_analog_digital_select_gpio = 0x0c,
341 .gpio_pin_status_mask = 0x4001000,
345 .demod_addr = 0x0e,
372 .demod_xfer_mode = 0,
373 .ctl_pin_status_mask = 0xFFFFFFC4,
374 .agc_analog_digital_select_gpio = 0x0c,
375 .gpio_pin_status_mask = 0x4001000,
396 .tuner_addr = 0x60,
399 .demod_xfer_mode = 0,
400 .ctl_pin_status_mask = 0xFFFFFFC4,
401 .agc_analog_digital_select_gpio = 0x11, /* According with PV cxPolaris.inf file */
405 .gpio_pin_status_mask = 0x4001000,
410 .demod_addr = 0x10,
434 .tuner_addr = 0x60,
437 .demod_xfer_mode = 0,
438 .ctl_pin_status_mask = 0xFFFFFFC4,
439 .agc_analog_digital_select_gpio = 0x11, /* According with PV cxPolaris.inf file */
443 .gpio_pin_status_mask = 0x4001000,
448 .demod_addr = 0x10,
472 .tuner_addr = 0x60,
475 .demod_xfer_mode = 0,
476 .ctl_pin_status_mask = 0xFFFFFFC4,
477 .agc_analog_digital_select_gpio = 0x1c,
481 .gpio_pin_status_mask = 0x4001000,
487 .demod_addr = 0x10,
513 .demod_xfer_mode = 0,
514 .ctl_pin_status_mask = 0xFFFFFFC4,
515 .agc_analog_digital_select_gpio = 0x0c,
516 .gpio_pin_status_mask = 0x4001000,
542 .demod_xfer_mode = 0,
543 .ctl_pin_status_mask = 0xFFFFFFC4,
544 .agc_analog_digital_select_gpio = 0x1C,
545 .gpio_pin_status_mask = 0x4001000,
564 .tuner_addr = 0x60,
566 .tuner_sif_gpio = 0x05,
567 .tuner_scl_gpio = 0x1a,
568 .tuner_sda_gpio = 0x1b,
571 .ctl_pin_status_mask = 0xFFFFFFC4,
572 .agc_analog_digital_select_gpio = 0x0c,
573 .gpio_pin_status_mask = 0x4001000,
599 .tuner_addr = 0x60,
601 .tuner_sif_gpio = 0x05,
602 .tuner_scl_gpio = 0x1a,
603 .tuner_sda_gpio = 0x1b,
606 .ctl_pin_status_mask = 0xFFFFFFC4,
607 .agc_analog_digital_select_gpio = 0x0c,
608 .gpio_pin_status_mask = 0x4001000,
636 .demod_xfer_mode = 0,
637 .ctl_pin_status_mask = 0xFFFFFFC4,
638 .agc_analog_digital_select_gpio = 0x0c,
639 .gpio_pin_status_mask = 0x4001000,
662 .ctl_pin_status_mask = 0xFFFFFFC4,
663 .agc_analog_digital_select_gpio = 0x0c,
665 .gpio_pin_status_mask = 0x4001000,
692 .tuner_addr = 0x60,
694 .tuner_sif_gpio = 0x05,
695 .tuner_scl_gpio = 0x1a,
696 .tuner_sda_gpio = 0x1b,
699 .demod_xfer_mode = 0,
700 .ctl_pin_status_mask = 0xFFFFFFC4,
701 .agc_analog_digital_select_gpio = 0x0c,
702 .gpio_pin_status_mask = 0x4001000,
706 .demod_addr = 0x64, /* 0xc8 >> 1 */
731 .tuner_addr = 0x60,
733 .tuner_sif_gpio = 0x05,
734 .tuner_scl_gpio = 0x1a,
735 .tuner_sda_gpio = 0x1b,
738 .demod_xfer_mode = 0,
739 .ctl_pin_status_mask = 0xFFFFFFC4,
740 .agc_analog_digital_select_gpio = 0x0c,
741 .gpio_pin_status_mask = 0x4001000,
745 .demod_addr = 0x64, /* 0xc8 >> 1 */
770 .tuner_addr = 0x60,
772 .tuner_sif_gpio = 0x05,
773 .tuner_scl_gpio = 0x1a,
774 .tuner_sda_gpio = 0x1b,
777 .demod_xfer_mode = 0,
778 .ctl_pin_status_mask = 0xFFFFFFC4,
779 .agc_analog_digital_select_gpio = 0x0c,
780 .gpio_pin_status_mask = 0x4001000,
784 .demod_addr = 0x59, /* 0xb2 >> 1 */
811 .demod_xfer_mode = 0,
812 .ctl_pin_status_mask = 0xFFFFFFC4,
813 .agc_analog_digital_select_gpio = 0x0c,
814 .gpio_pin_status_mask = 0x4001000,
835 .demod_addr = 0x64, /* 0xc8 >> 1 */
841 .tuner_addr = 0x60, /* 0xc0 >> 1 */
845 .vmux = 0,
865 .agc_analog_digital_select_gpio = 0x01,
866 .ctl_pin_status_mask = 0xffffffc4,
867 .demod_addr = 0x18, /* 0x30 >> 1 */
869 .gpio_pin_status_mask = 0xa,
871 .tuner_addr = 0x3a, /* 0x74 >> 1 */
873 .tuner_scl_gpio = 0x1a,
874 .tuner_sda_gpio = 0x1b,
875 .tuner_sif_gpio = 0x05,
892 .demod_xfer_mode = 0,
893 .ctl_pin_status_mask = 0xFFFFFFC4,
894 .agc_analog_digital_select_gpio = 0x0c,
895 .gpio_pin_status_mask = 0x4001000,
916 .tuner_addr = 0x60,
918 .tuner_sif_gpio = 0x05,
919 .tuner_scl_gpio = 0x1a,
920 .tuner_sda_gpio = 0x1b,
923 .demod_xfer_mode = 0,
924 .ctl_pin_status_mask = 0xFFFFFFC4,
925 .agc_analog_digital_select_gpio = 0x0c,
926 .gpio_pin_status_mask = 0x4001000,
930 .demod_addr = 0x64, /* 0xc8 >> 1 */
955 .tuner_addr = 0x60,
957 .tuner_sif_gpio = 0x05,
958 .tuner_scl_gpio = 0x1a,
959 .tuner_sda_gpio = 0x1b,
962 .demod_xfer_mode = 0,
963 .ctl_pin_status_mask = 0xFFFFFFC4,
964 .agc_analog_digital_select_gpio = 0x0c,
965 .gpio_pin_status_mask = 0x4001000,
969 .demod_addr = 0x59, /* 0xb2 >> 1 */
970 .demod_addr2 = 0x64, /* 0xc8 >> 1 */
997 {USB_DEVICE(0x1D19, 0x6109),
999 {USB_DEVICE(0x0572, 0x5A3C),
1001 {USB_DEVICE(0x0572, 0x58A2),
1003 {USB_DEVICE(0x0572, 0x58A1),
1005 {USB_DEVICE(0x0572, 0x58A4),
1007 {USB_DEVICE(0x0572, 0x58A5),
1009 {USB_DEVICE(0x0572, 0x58A6),
1011 {USB_DEVICE(0x0572, 0x589E),
1013 {USB_DEVICE(0x0572, 0x58A0),
1016 {USB_DEVICE(0x07ca, 0xc039),
1018 {USB_DEVICE(0x2040, 0xb110),
1020 {USB_DEVICE(0x2040, 0xb111),
1022 {USB_DEVICE(0x2040, 0xb120),
1024 {USB_DEVICE(0x2040, 0xb123),
1026 {USB_DEVICE(0x2040, 0xb124),
1028 {USB_DEVICE(0x2040, 0xb151),
1030 {USB_DEVICE(0x2040, 0xb150),
1032 {USB_DEVICE(0x2040, 0xb130),
1034 {USB_DEVICE(0x2040, 0xb131),
1037 {USB_DEVICE(0x2040, 0xb138),
1040 {USB_DEVICE(0x2040, 0xb139),
1042 {USB_DEVICE(0x2040, 0xb140),
1044 {USB_DEVICE(0x2040, 0xc200),
1047 {USB_DEVICE(0x2013, 0x0259),
1050 {USB_DEVICE(0x2013, 0x025e),
1052 {USB_DEVICE_VER(USB_VID_PIXELVIEW, USB_PID_PIXELVIEW_SBTVD, 0x4000, 0x4001),
1054 {USB_DEVICE(USB_VID_PIXELVIEW, 0x5014),
1056 {USB_DEVICE(0x1b80, 0xe424),
1058 {USB_DEVICE(0x1b80, 0xe421),
1060 {USB_DEVICE(0x1f4d, 0x0237),
1062 {USB_DEVICE(0x0fd9, 0x0037),
1064 {USB_DEVICE(0x1f4d, 0x0102),
1066 {USB_DEVICE(USB_VID_TERRATEC, 0x00a6),
1068 {USB_DEVICE(0x1b80, 0xd3b2),
1070 {USB_DEVICE(0x15f4, 0x0135),
1072 {USB_DEVICE(0x199e, 0x8002),
1080 * will be used to reset XC5000 tuner using GPIO pin
1085 int rc = 0; in cx231xx_tuner_callback()
1097 0); in cx231xx_tuner_callback()
1122 cx231xx_set_gpio_value(dev, CX23417_RESET, 0); in cx231xx_reset_out()
1134 cx231xx_set_gpio_value(dev, SLEEP_S5H1432, 0); in cx231xx_sleep_s5h1432()
1152 cx231xx_set_gpio_value(dev, 0x03, 0x01); in cx231xx_pre_card_setup()
1160 if (dev->board.tuner_sif_gpio >= 0) in cx231xx_pre_card_setup()
1188 #if 0 in cx231xx_config_tuner()
1193 .demod = 0; in cx231xx_config_tuner()
1203 f.tuner = 0; in cx231xx_config_tuner()
1215 u8 start_offset = 0; in read_eeprom()
1219 struct i2c_msg msg_write = { .addr = client->addr, .flags = 0, in read_eeprom()
1223 /* start reading at offset 0 */ in read_eeprom()
1225 if (ret < 0) { in read_eeprom()
1230 while (len_todo > 0) { in read_eeprom()
1235 if (ret < 0) { in read_eeprom()
1243 for (i = 0; i + 15 < len; i += 16) in read_eeprom()
1247 return 0; in read_eeprom()
1263 "cx25840", 0x88 >> 1, NULL); in cx231xx_card_setup()
1306 e->client.addr = 0xa0 >> 1; in cx231xx_card_setup()
1309 tveeprom_hauppauge_analog(&e->tvee, e->eeprom + 0xc0); in cx231xx_card_setup()
1325 return 0; in cx231xx_config()
1392 return 0; in cx231xx_media_device_init()
1427 if (retval < 0) { in cx231xx_init_dev()
1472 dev->interlaced = 0; in cx231xx_init_dev()
1473 dev->video_input = 0; in cx231xx_init_dev()
1493 if (cx231xx_417_register(dev) < 0) { in cx231xx_init_dev()
1508 return 0; in cx231xx_init_dev()
1558 idx = dev->current_pcb_config.hs_config_info[0].interface_info.video_index + 1; in cx231xx_init_v4l2()
1567 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2()
1570 dev->video_mode.end_point_addr = uif->altsetting[0].endpoint[isoc_pipe].desc.bEndpointAddress; in cx231xx_init_v4l2()
1574 "video EndPoint Addr 0x%x, Alternate settings: %i\n", in cx231xx_init_v4l2()
1582 for (i = 0; i < dev->video_mode.num_alt; i++) { in cx231xx_init_v4l2()
1589 dev->video_mode.alt_max_pkt_size[i] = (tmp & 0x07ff) * (((tmp & 0x1800) >> 11) + 1); in cx231xx_init_v4l2()
1597 idx = dev->current_pcb_config.hs_config_info[0].interface_info.vanc_index + 1; in cx231xx_init_v4l2()
1605 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2()
1609 uif->altsetting[0].endpoint[isoc_pipe].desc. in cx231xx_init_v4l2()
1614 "VBI EndPoint Addr 0x%x, Alternate settings: %i\n", in cx231xx_init_v4l2()
1623 for (i = 0; i < dev->vbi_mode.num_alt; i++) { in cx231xx_init_v4l2()
1632 (tmp & 0x07ff) * (((tmp & 0x1800) >> 11) + 1); in cx231xx_init_v4l2()
1641 idx = dev->current_pcb_config.hs_config_info[0].interface_info.hanc_index + 1; in cx231xx_init_v4l2()
1649 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2()
1653 uif->altsetting[0].endpoint[isoc_pipe].desc. in cx231xx_init_v4l2()
1658 "sliced CC EndPoint Addr 0x%x, Alternate settings: %i\n", in cx231xx_init_v4l2()
1665 for (i = 0; i < dev->sliced_cc_mode.num_alt; i++) { in cx231xx_init_v4l2()
1674 (tmp & 0x07ff) * (((tmp & 0x1800) >> 11) + 1); in cx231xx_init_v4l2()
1680 return 0; in cx231xx_init_v4l2()
1695 int nr = 0, ifnum; in cx231xx_usb_probe()
1696 int i, isoc_pipe = 0; in cx231xx_usb_probe()
1701 ifnum = interface->altsetting[0].desc.bInterfaceNumber; in cx231xx_usb_probe()
1704 * Interface number 0 - IR interface (handled by mceusb driver) in cx231xx_usb_probe()
1741 dev->gpio_dir = 0; in cx231xx_usb_probe()
1742 dev->gpio_val = 0; in cx231xx_usb_probe()
1743 dev->xc_fw_load_done = 0; in cx231xx_usb_probe()
1746 atomic_set(&dev->devlist_count, 0); in cx231xx_usb_probe()
1748 /* 0 - vbi ; 1 -sliced cc mode */ in cx231xx_usb_probe()
1749 dev->vbi_or_sliced_cc_mode = 0; in cx231xx_usb_probe()
1756 /*mode_tv: digital=1 or analog=0*/ in cx231xx_usb_probe()
1757 dev->mode_tv = 0; in cx231xx_usb_probe()
1791 assoc_desc = udev->actconfig->intf_assoc[0]; in cx231xx_usb_probe()
1829 if (dev->current_pcb_config.ts1_source != 0xff) { in cx231xx_usb_probe()
1831 idx = dev->current_pcb_config.hs_config_info[0].interface_info.ts1_index + 1; in cx231xx_usb_probe()
1840 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) { in cx231xx_usb_probe()
1846 uif->altsetting[0].endpoint[isoc_pipe]. in cx231xx_usb_probe()
1851 "TS EndPoint Addr 0x%x, Alternate settings: %i\n", in cx231xx_usb_probe()
1861 for (i = 0; i < dev->ts1_mode.num_alt; i++) { in cx231xx_usb_probe()
1873 (tmp & 0x07ff) * (((tmp & 0x1800) >> 11) + 1); in cx231xx_usb_probe()
1899 if (retval < 0) in cx231xx_usb_probe()