2 * Driver for DVBSky USB2.0 receiver
4 * Copyright (C) 2013 Max nibble <nibble.max@gmail.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
18 #include "m88ds3103.h"
24 #define DVBSKY_MSG_DELAY 0/*2000*/
25 #define DVBSKY_BUF_LEN 64
27 static int dvb_usb_dvbsky_disable_rc;
28 module_param_named(disable_rc, dvb_usb_dvbsky_disable_rc, int, 0644);
29 MODULE_PARM_DESC(disable_rc, "Disable inbuilt IR receiver.");
31 DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
34 struct mutex stream_mutex;
35 u8 ibuf[DVBSKY_BUF_LEN];
36 u8 obuf[DVBSKY_BUF_LEN];
38 struct i2c_client *i2c_client_demod;
39 struct i2c_client *i2c_client_tuner;
40 struct i2c_client *i2c_client_ci;
42 /* fe hook functions*/
43 int (*fe_set_voltage)(struct dvb_frontend *fe,
44 enum fe_sec_voltage voltage);
45 int (*fe_read_status)(struct dvb_frontend *fe,
46 enum fe_status *status);
49 static int dvbsky_usb_generic_rw(struct dvb_usb_device *d,
50 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
53 struct dvbsky_state *state = d_to_priv(d);
55 mutex_lock(&d->usb_mutex);
57 memcpy(state->obuf, wbuf, wlen);
59 ret = dvb_usbv2_generic_rw_locked(d, state->obuf, wlen,
62 if (!ret && (rlen != 0))
63 memcpy(rbuf, state->ibuf, rlen);
65 mutex_unlock(&d->usb_mutex);
69 static int dvbsky_stream_ctrl(struct dvb_usb_device *d, u8 onoff)
71 struct dvbsky_state *state = d_to_priv(d);
73 u8 obuf_pre[3] = { 0x37, 0, 0 };
74 u8 obuf_post[3] = { 0x36, 3, 0 };
76 mutex_lock(&state->stream_mutex);
77 ret = dvbsky_usb_generic_rw(d, obuf_pre, 3, NULL, 0);
80 ret = dvbsky_usb_generic_rw(d, obuf_post, 3, NULL, 0);
82 mutex_unlock(&state->stream_mutex);
86 static int dvbsky_streaming_ctrl(struct dvb_frontend *fe, int onoff)
88 struct dvb_usb_device *d = fe_to_d(fe);
90 return dvbsky_stream_ctrl(d, (onoff == 0) ? 0 : 1);
94 static int dvbsky_gpio_ctrl(struct dvb_usb_device *d, u8 gport, u8 value)
102 ret = dvbsky_usb_generic_rw(d, obuf, 3, ibuf, 1);
104 dev_err(&d->udev->dev, "failed=%d\n", ret);
109 static int dvbsky_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
112 struct dvb_usb_device *d = i2c_get_adapdata(adap);
114 u8 ibuf[64], obuf[64];
116 if (mutex_lock_interruptible(&d->i2c_mutex) < 0)
120 dev_err(&d->udev->dev,
121 "too many i2c messages[%d], max 2.", num);
127 if (msg[0].len > 60) {
128 dev_err(&d->udev->dev,
129 "too many i2c bytes[%d], max 60.",
134 if (msg[0].flags & I2C_M_RD) {
138 obuf[2] = msg[0].len;
139 obuf[3] = msg[0].addr;
140 ret = dvbsky_usb_generic_rw(d, obuf, 4,
141 ibuf, msg[0].len + 1);
143 dev_err(&d->udev->dev, "failed=%d\n", ret);
145 memcpy(msg[0].buf, &ibuf[1], msg[0].len);
149 obuf[1] = msg[0].addr;
150 obuf[2] = msg[0].len;
151 memcpy(&obuf[3], msg[0].buf, msg[0].len);
152 ret = dvbsky_usb_generic_rw(d, obuf,
153 msg[0].len + 3, ibuf, 1);
155 dev_err(&d->udev->dev, "failed=%d\n", ret);
158 if ((msg[0].len > 60) || (msg[1].len > 60)) {
159 dev_err(&d->udev->dev,
160 "too many i2c bytes[w-%d][r-%d], max 60.",
161 msg[0].len, msg[1].len);
165 /* write then read */
167 obuf[1] = msg[0].len;
168 obuf[2] = msg[1].len;
169 obuf[3] = msg[0].addr;
170 memcpy(&obuf[4], msg[0].buf, msg[0].len);
171 ret = dvbsky_usb_generic_rw(d, obuf,
172 msg[0].len + 4, ibuf, msg[1].len + 1);
174 dev_err(&d->udev->dev, "failed=%d\n", ret);
177 memcpy(msg[1].buf, &ibuf[1], msg[1].len);
180 mutex_unlock(&d->i2c_mutex);
181 return (ret) ? ret : num;
184 static u32 dvbsky_i2c_func(struct i2c_adapter *adapter)
189 static struct i2c_algorithm dvbsky_i2c_algo = {
190 .master_xfer = dvbsky_i2c_xfer,
191 .functionality = dvbsky_i2c_func,
194 #if IS_ENABLED(CONFIG_RC_CORE)
195 static int dvbsky_rc_query(struct dvb_usb_device *d)
197 u32 code = 0xffff, scancode;
198 u8 rc5_command, rc5_system;
199 u8 obuf[2], ibuf[2], toggle;
203 ret = dvbsky_usb_generic_rw(d, obuf, 1, ibuf, 2);
205 dev_err(&d->udev->dev, "failed=%d\n", ret);
207 code = (ibuf[0] << 8) | ibuf[1];
208 if (code != 0xffff) {
209 dev_dbg(&d->udev->dev, "rc code: %x\n", code);
210 rc5_command = code & 0x3F;
211 rc5_system = (code & 0x7C0) >> 6;
212 toggle = (code & 0x800) ? 1 : 0;
213 scancode = rc5_system << 8 | rc5_command;
214 rc_keydown(d->rc_dev, RC_PROTO_RC5, scancode, toggle);
219 static int dvbsky_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)
221 if (dvb_usb_dvbsky_disable_rc) {
226 rc->allowed_protos = RC_PROTO_BIT_RC5;
227 rc->query = dvbsky_rc_query;
232 #define dvbsky_get_rc_config NULL
235 static int dvbsky_usb_set_voltage(struct dvb_frontend *fe,
236 enum fe_sec_voltage voltage)
238 struct dvb_usb_device *d = fe_to_d(fe);
239 struct dvbsky_state *state = d_to_priv(d);
242 if (voltage == SEC_VOLTAGE_OFF)
246 dvbsky_gpio_ctrl(d, 0x80, value);
248 return state->fe_set_voltage(fe, voltage);
251 static int dvbsky_read_mac_addr(struct dvb_usb_adapter *adap, u8 mac[6])
253 struct dvb_usb_device *d = adap_to_d(adap);
254 u8 obuf[] = { 0x1e, 0x00 };
256 struct i2c_msg msg[] = {
270 if (i2c_transfer(&d->i2c_adap, msg, 2) == 2)
271 memcpy(mac, ibuf, 6);
276 static int dvbsky_usb_read_status(struct dvb_frontend *fe,
277 enum fe_status *status)
279 struct dvb_usb_device *d = fe_to_d(fe);
280 struct dvbsky_state *state = d_to_priv(d);
283 ret = state->fe_read_status(fe, status);
285 /* it need resync slave fifo when signal change from unlock to lock.*/
286 if ((*status & FE_HAS_LOCK) && (!state->last_lock))
287 dvbsky_stream_ctrl(d, 1);
289 state->last_lock = (*status & FE_HAS_LOCK) ? 1 : 0;
293 static int dvbsky_s960_attach(struct dvb_usb_adapter *adap)
295 struct dvbsky_state *state = adap_to_priv(adap);
296 struct dvb_usb_device *d = adap_to_d(adap);
297 struct i2c_adapter *i2c_adapter;
298 struct m88ds3103_platform_data m88ds3103_pdata = {};
299 struct ts2020_config ts2020_config = {};
302 m88ds3103_pdata.clk = 27000000;
303 m88ds3103_pdata.i2c_wr_max = 33;
304 m88ds3103_pdata.clk_out = 0;
305 m88ds3103_pdata.ts_mode = M88DS3103_TS_CI;
306 m88ds3103_pdata.ts_clk = 16000;
307 m88ds3103_pdata.ts_clk_pol = 0;
308 m88ds3103_pdata.agc = 0x99;
309 m88ds3103_pdata.lnb_hv_pol = 1,
310 m88ds3103_pdata.lnb_en_pol = 1,
312 state->i2c_client_demod = dvb_module_probe("m88ds3103", NULL,
314 0x68, &m88ds3103_pdata);
315 if (!state->i2c_client_demod)
318 adap->fe[0] = m88ds3103_pdata.get_dvb_frontend(state->i2c_client_demod);
319 i2c_adapter = m88ds3103_pdata.get_i2c_adapter(state->i2c_client_demod);
322 ts2020_config.fe = adap->fe[0];
323 ts2020_config.get_agc_pwm = m88ds3103_get_agc_pwm;
325 state->i2c_client_tuner = dvb_module_probe("ts2020", NULL,
327 0x60, &ts2020_config);
328 if (!state->i2c_client_tuner) {
329 dvb_module_release(state->i2c_client_demod);
333 /* delegate signal strength measurement to tuner */
334 adap->fe[0]->ops.read_signal_strength =
335 adap->fe[0]->ops.tuner_ops.get_rf_strength;
337 /* hook fe: need to resync the slave fifo when signal locks. */
338 state->fe_read_status = adap->fe[0]->ops.read_status;
339 adap->fe[0]->ops.read_status = dvbsky_usb_read_status;
341 /* hook fe: LNB off/on is control by Cypress usb chip. */
342 state->fe_set_voltage = adap->fe[0]->ops.set_voltage;
343 adap->fe[0]->ops.set_voltage = dvbsky_usb_set_voltage;
348 static int dvbsky_usb_ci_set_voltage(struct dvb_frontend *fe,
349 enum fe_sec_voltage voltage)
351 struct dvb_usb_device *d = fe_to_d(fe);
352 struct dvbsky_state *state = d_to_priv(d);
355 if (voltage == SEC_VOLTAGE_OFF)
359 dvbsky_gpio_ctrl(d, 0x00, value);
361 return state->fe_set_voltage(fe, voltage);
364 static int dvbsky_ci_ctrl(void *priv, u8 read, int addr,
367 struct dvb_usb_device *d = priv;
369 u8 command[4], respond[2], command_size, respond_size;
371 command[1] = (u8)((addr >> 8) & 0xff); /*high part of address*/
372 command[2] = (u8)(addr & 0xff); /*low part of address*/
383 ret = dvbsky_usb_generic_rw(d, command, command_size,
384 respond, respond_size);
391 dev_err(&d->udev->dev, "ci control failed=%d\n", ret);
395 static int dvbsky_s960c_attach(struct dvb_usb_adapter *adap)
397 struct dvbsky_state *state = adap_to_priv(adap);
398 struct dvb_usb_device *d = adap_to_d(adap);
399 struct i2c_adapter *i2c_adapter;
400 struct m88ds3103_platform_data m88ds3103_pdata = {};
401 struct ts2020_config ts2020_config = {};
402 struct sp2_config sp2_config = {};
405 m88ds3103_pdata.clk = 27000000,
406 m88ds3103_pdata.i2c_wr_max = 33,
407 m88ds3103_pdata.clk_out = 0,
408 m88ds3103_pdata.ts_mode = M88DS3103_TS_CI,
409 m88ds3103_pdata.ts_clk = 10000,
410 m88ds3103_pdata.ts_clk_pol = 1,
411 m88ds3103_pdata.agc = 0x99,
412 m88ds3103_pdata.lnb_hv_pol = 0,
413 m88ds3103_pdata.lnb_en_pol = 1,
415 state->i2c_client_demod = dvb_module_probe("m88ds3103", NULL,
417 0x68, &m88ds3103_pdata);
418 if (!state->i2c_client_demod)
421 adap->fe[0] = m88ds3103_pdata.get_dvb_frontend(state->i2c_client_demod);
422 i2c_adapter = m88ds3103_pdata.get_i2c_adapter(state->i2c_client_demod);
425 ts2020_config.fe = adap->fe[0];
426 ts2020_config.get_agc_pwm = m88ds3103_get_agc_pwm;
428 state->i2c_client_tuner = dvb_module_probe("ts2020", NULL,
430 0x60, &ts2020_config);
431 if (!state->i2c_client_tuner) {
432 dvb_module_release(state->i2c_client_demod);
436 /* attach ci controller */
437 sp2_config.dvb_adap = &adap->dvb_adap;
439 sp2_config.ci_control = dvbsky_ci_ctrl;
441 state->i2c_client_ci = dvb_module_probe("sp2", NULL,
445 if (!state->i2c_client_ci) {
446 dvb_module_release(state->i2c_client_tuner);
447 dvb_module_release(state->i2c_client_demod);
451 /* delegate signal strength measurement to tuner */
452 adap->fe[0]->ops.read_signal_strength =
453 adap->fe[0]->ops.tuner_ops.get_rf_strength;
455 /* hook fe: need to resync the slave fifo when signal locks. */
456 state->fe_read_status = adap->fe[0]->ops.read_status;
457 adap->fe[0]->ops.read_status = dvbsky_usb_read_status;
459 /* hook fe: LNB off/on is control by Cypress usb chip. */
460 state->fe_set_voltage = adap->fe[0]->ops.set_voltage;
461 adap->fe[0]->ops.set_voltage = dvbsky_usb_ci_set_voltage;
466 static int dvbsky_t680c_attach(struct dvb_usb_adapter *adap)
468 struct dvbsky_state *state = adap_to_priv(adap);
469 struct dvb_usb_device *d = adap_to_d(adap);
470 struct i2c_adapter *i2c_adapter;
471 struct si2168_config si2168_config = {};
472 struct si2157_config si2157_config = {};
473 struct sp2_config sp2_config = {};
476 si2168_config.i2c_adapter = &i2c_adapter;
477 si2168_config.fe = &adap->fe[0];
478 si2168_config.ts_mode = SI2168_TS_PARALLEL;
480 state->i2c_client_demod = dvb_module_probe("si2168", NULL,
482 0x64, &si2168_config);
483 if (!state->i2c_client_demod)
487 si2157_config.fe = adap->fe[0];
488 si2157_config.if_port = 1;
490 state->i2c_client_tuner = dvb_module_probe("si2157", NULL,
492 0x60, &si2157_config);
493 if (!state->i2c_client_tuner) {
494 dvb_module_release(state->i2c_client_demod);
498 /* attach ci controller */
499 sp2_config.dvb_adap = &adap->dvb_adap;
501 sp2_config.ci_control = dvbsky_ci_ctrl;
503 state->i2c_client_ci = dvb_module_probe("sp2", NULL,
507 if (!state->i2c_client_ci) {
508 dvb_module_release(state->i2c_client_tuner);
509 dvb_module_release(state->i2c_client_demod);
516 static int dvbsky_t330_attach(struct dvb_usb_adapter *adap)
518 struct dvbsky_state *state = adap_to_priv(adap);
519 struct dvb_usb_device *d = adap_to_d(adap);
520 struct i2c_adapter *i2c_adapter;
521 struct si2168_config si2168_config = {};
522 struct si2157_config si2157_config = {};
525 si2168_config.i2c_adapter = &i2c_adapter;
526 si2168_config.fe = &adap->fe[0];
527 si2168_config.ts_mode = SI2168_TS_PARALLEL;
528 si2168_config.ts_clock_gapped = true;
530 state->i2c_client_demod = dvb_module_probe("si2168", NULL,
532 0x64, &si2168_config);
533 if (!state->i2c_client_demod)
537 si2157_config.fe = adap->fe[0];
538 si2157_config.if_port = 1;
540 state->i2c_client_tuner = dvb_module_probe("si2157", NULL,
542 0x60, &si2157_config);
543 if (!state->i2c_client_tuner) {
544 dvb_module_release(state->i2c_client_demod);
551 static int dvbsky_mygica_t230c_attach(struct dvb_usb_adapter *adap)
553 struct dvbsky_state *state = adap_to_priv(adap);
554 struct dvb_usb_device *d = adap_to_d(adap);
555 struct i2c_adapter *i2c_adapter;
556 struct si2168_config si2168_config = {};
557 struct si2157_config si2157_config = {};
560 si2168_config.i2c_adapter = &i2c_adapter;
561 si2168_config.fe = &adap->fe[0];
562 si2168_config.ts_mode = SI2168_TS_PARALLEL;
563 si2168_config.ts_clock_inv = 1;
565 state->i2c_client_demod = dvb_module_probe("si2168", NULL,
567 0x64, &si2168_config);
568 if (!state->i2c_client_demod)
572 si2157_config.fe = adap->fe[0];
573 si2157_config.if_port = 0;
575 state->i2c_client_tuner = dvb_module_probe("si2157", "si2141",
577 0x60, &si2157_config);
578 if (!state->i2c_client_tuner) {
579 dvb_module_release(state->i2c_client_demod);
587 static int dvbsky_identify_state(struct dvb_usb_device *d, const char **name)
589 dvbsky_gpio_ctrl(d, 0x04, 1);
591 dvbsky_gpio_ctrl(d, 0x83, 0);
592 dvbsky_gpio_ctrl(d, 0xc0, 1);
594 dvbsky_gpio_ctrl(d, 0x83, 1);
595 dvbsky_gpio_ctrl(d, 0xc0, 0);
601 static int dvbsky_init(struct dvb_usb_device *d)
603 struct dvbsky_state *state = d_to_priv(d);
605 /* use default interface */
607 ret = usb_set_interface(d->udev, 0, 0);
611 mutex_init(&state->stream_mutex);
613 state->last_lock = 0;
618 static void dvbsky_exit(struct dvb_usb_device *d)
620 struct dvbsky_state *state = d_to_priv(d);
621 struct dvb_usb_adapter *adap = &d->adapter[0];
623 dvb_module_release(state->i2c_client_tuner);
624 dvb_module_release(state->i2c_client_demod);
625 dvb_module_release(state->i2c_client_ci);
630 /* DVB USB Driver stuff */
631 static struct dvb_usb_device_properties dvbsky_s960_props = {
632 .driver_name = KBUILD_MODNAME,
633 .owner = THIS_MODULE,
634 .adapter_nr = adapter_nr,
635 .size_of_priv = sizeof(struct dvbsky_state),
637 .generic_bulk_ctrl_endpoint = 0x01,
638 .generic_bulk_ctrl_endpoint_response = 0x81,
639 .generic_bulk_ctrl_delay = DVBSKY_MSG_DELAY,
641 .i2c_algo = &dvbsky_i2c_algo,
642 .frontend_attach = dvbsky_s960_attach,
644 .get_rc_config = dvbsky_get_rc_config,
645 .streaming_ctrl = dvbsky_streaming_ctrl,
646 .identify_state = dvbsky_identify_state,
648 .read_mac_address = dvbsky_read_mac_addr,
653 .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
658 static struct dvb_usb_device_properties dvbsky_s960c_props = {
659 .driver_name = KBUILD_MODNAME,
660 .owner = THIS_MODULE,
661 .adapter_nr = adapter_nr,
662 .size_of_priv = sizeof(struct dvbsky_state),
664 .generic_bulk_ctrl_endpoint = 0x01,
665 .generic_bulk_ctrl_endpoint_response = 0x81,
666 .generic_bulk_ctrl_delay = DVBSKY_MSG_DELAY,
668 .i2c_algo = &dvbsky_i2c_algo,
669 .frontend_attach = dvbsky_s960c_attach,
671 .get_rc_config = dvbsky_get_rc_config,
672 .streaming_ctrl = dvbsky_streaming_ctrl,
673 .identify_state = dvbsky_identify_state,
675 .read_mac_address = dvbsky_read_mac_addr,
680 .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
685 static struct dvb_usb_device_properties dvbsky_t680c_props = {
686 .driver_name = KBUILD_MODNAME,
687 .owner = THIS_MODULE,
688 .adapter_nr = adapter_nr,
689 .size_of_priv = sizeof(struct dvbsky_state),
691 .generic_bulk_ctrl_endpoint = 0x01,
692 .generic_bulk_ctrl_endpoint_response = 0x81,
693 .generic_bulk_ctrl_delay = DVBSKY_MSG_DELAY,
695 .i2c_algo = &dvbsky_i2c_algo,
696 .frontend_attach = dvbsky_t680c_attach,
698 .get_rc_config = dvbsky_get_rc_config,
699 .streaming_ctrl = dvbsky_streaming_ctrl,
700 .identify_state = dvbsky_identify_state,
702 .read_mac_address = dvbsky_read_mac_addr,
707 .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
712 static struct dvb_usb_device_properties dvbsky_t330_props = {
713 .driver_name = KBUILD_MODNAME,
714 .owner = THIS_MODULE,
715 .adapter_nr = adapter_nr,
716 .size_of_priv = sizeof(struct dvbsky_state),
718 .generic_bulk_ctrl_endpoint = 0x01,
719 .generic_bulk_ctrl_endpoint_response = 0x81,
720 .generic_bulk_ctrl_delay = DVBSKY_MSG_DELAY,
722 .i2c_algo = &dvbsky_i2c_algo,
723 .frontend_attach = dvbsky_t330_attach,
725 .get_rc_config = dvbsky_get_rc_config,
726 .streaming_ctrl = dvbsky_streaming_ctrl,
727 .identify_state = dvbsky_identify_state,
729 .read_mac_address = dvbsky_read_mac_addr,
734 .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
739 static struct dvb_usb_device_properties mygica_t230c_props = {
740 .driver_name = KBUILD_MODNAME,
741 .owner = THIS_MODULE,
742 .adapter_nr = adapter_nr,
743 .size_of_priv = sizeof(struct dvbsky_state),
745 .generic_bulk_ctrl_endpoint = 0x01,
746 .generic_bulk_ctrl_endpoint_response = 0x81,
747 .generic_bulk_ctrl_delay = DVBSKY_MSG_DELAY,
749 .i2c_algo = &dvbsky_i2c_algo,
750 .frontend_attach = dvbsky_mygica_t230c_attach,
752 .get_rc_config = dvbsky_get_rc_config,
753 .streaming_ctrl = dvbsky_streaming_ctrl,
754 .identify_state = dvbsky_identify_state,
760 .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
765 static const struct usb_device_id dvbsky_id_table[] = {
766 { DVB_USB_DEVICE(0x0572, 0x6831,
767 &dvbsky_s960_props, "DVBSky S960/S860", RC_MAP_DVBSKY) },
768 { DVB_USB_DEVICE(0x0572, 0x960c,
769 &dvbsky_s960c_props, "DVBSky S960CI", RC_MAP_DVBSKY) },
770 { DVB_USB_DEVICE(0x0572, 0x680c,
771 &dvbsky_t680c_props, "DVBSky T680CI", RC_MAP_DVBSKY) },
772 { DVB_USB_DEVICE(0x0572, 0x0320,
773 &dvbsky_t330_props, "DVBSky T330", RC_MAP_DVBSKY) },
774 { DVB_USB_DEVICE(USB_VID_TECHNOTREND,
775 USB_PID_TECHNOTREND_TVSTICK_CT2_4400,
776 &dvbsky_t330_props, "TechnoTrend TVStick CT2-4400",
778 { DVB_USB_DEVICE(USB_VID_TECHNOTREND,
779 USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI,
780 &dvbsky_t680c_props, "TechnoTrend TT-connect CT2-4650 CI",
782 { DVB_USB_DEVICE(USB_VID_TECHNOTREND,
783 USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI_2,
784 &dvbsky_t680c_props, "TechnoTrend TT-connect CT2-4650 CI v1.1",
786 { DVB_USB_DEVICE(USB_VID_TECHNOTREND,
787 USB_PID_TECHNOTREND_CONNECT_S2_4650_CI,
788 &dvbsky_s960c_props, "TechnoTrend TT-connect S2-4650 CI",
790 { DVB_USB_DEVICE(USB_VID_TERRATEC,
791 USB_PID_TERRATEC_H7_3,
792 &dvbsky_t680c_props, "Terratec H7 Rev.4",
794 { DVB_USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_S2_R4,
795 &dvbsky_s960_props, "Terratec Cinergy S2 Rev.4",
797 { DVB_USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_T230C,
798 &mygica_t230c_props, "MyGica Mini DVB-T2 USB Stick T230C",
799 RC_MAP_TOTAL_MEDIA_IN_HAND_02) },
802 MODULE_DEVICE_TABLE(usb, dvbsky_id_table);
804 static struct usb_driver dvbsky_usb_driver = {
805 .name = KBUILD_MODNAME,
806 .id_table = dvbsky_id_table,
807 .probe = dvb_usbv2_probe,
808 .disconnect = dvb_usbv2_disconnect,
809 .suspend = dvb_usbv2_suspend,
810 .resume = dvb_usbv2_resume,
811 .reset_resume = dvb_usbv2_reset_resume,
816 module_usb_driver(dvbsky_usb_driver);
818 MODULE_AUTHOR("Max nibble <nibble.max@gmail.com>");
819 MODULE_DESCRIPTION("Driver for DVBSky USB");
820 MODULE_LICENSE("GPL");