fcef2a33ef3d1ab634b79c97b7f6c1c88d2d9676
[deliverable/linux.git] / drivers / media / usb / dvb-usb-v2 / lmedm04.c
1 /* DVB USB compliant linux driver for
2 *
3 * DM04/QQBOX DVB-S USB BOX LME2510C + SHARP:BS2F7HZ7395
4 * LME2510C + LG TDQY-P001F
5 * LME2510C + BS2F7HZ0194
6 * LME2510 + LG TDQY-P001F
7 * LME2510 + BS2F7HZ0194
8 *
9 * MVB7395 (LME2510C+SHARP:BS2F7HZ7395)
10 * SHARP:BS2F7HZ7395 = (STV0288+Sharp IX2505V)
11 *
12 * MV001F (LME2510+LGTDQY-P001F)
13 * LG TDQY - P001F =(TDA8263 + TDA10086H)
14 *
15 * MVB0001F (LME2510C+LGTDQT-P001F)
16 *
17 * MV0194 (LME2510+SHARP:BS2F7HZ0194)
18 * SHARP:BS2F7HZ0194 = (STV0299+IX2410)
19 *
20 * MVB0194 (LME2510C+SHARP0194)
21 *
22 * LME2510C + M88RS2000
23 *
24 * For firmware see Documentation/dvb/lmedm04.txt
25 *
26 * I2C addresses:
27 * 0xd0 - STV0288 - Demodulator
28 * 0xc0 - Sharp IX2505V - Tuner
29 * --
30 * 0x1c - TDA10086 - Demodulator
31 * 0xc0 - TDA8263 - Tuner
32 * --
33 * 0xd0 - STV0299 - Demodulator
34 * 0xc0 - IX2410 - Tuner
35 *
36 *
37 * VID = 3344 PID LME2510=1122 LME2510C=1120
38 *
39 * Copyright (C) 2010 Malcolm Priestley (tvboxspy@gmail.com)
40 * LME2510(C)(C) Leaguerme (Shenzhen) MicroElectronics Co., Ltd.
41 *
42 * This program is free software; you can redistribute it and/or modify
43 * it under the terms of the GNU General Public License Version 2, as
44 * published by the Free Software Foundation.
45 *
46 * This program is distributed in the hope that it will be useful,
47 * but WITHOUT ANY WARRANTY; without even the implied warranty of
48 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49 * GNU General Public License for more details.
50 *
51 * You should have received a copy of the GNU General Public License
52 * along with this program; if not, write to the Free Software
53 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
54 *
55 *
56 * see Documentation/dvb/README.dvb-usb for more information
57 *
58 * Known Issues :
59 * LME2510: Non Intel USB chipsets fail to maintain High Speed on
60 * Boot or Hot Plug.
61 *
62 * QQbox suffers from noise on LNB voltage.
63 *
64 * LME2510: SHARP:BS2F7HZ0194(MV0194) cannot cold reset and share system
65 * with other tuners. After a cold reset streaming will not start.
66 *
67 * M88RS2000 suffers from loss of lock.
68 */
69 #define DVB_USB_LOG_PREFIX "LME2510(C)"
70 #include <linux/usb.h>
71 #include <linux/usb/input.h>
72 #include <media/rc-core.h>
73
74 #include "dvb_usb.h"
75 #include "lmedm04.h"
76 #include "tda826x.h"
77 #include "tda10086.h"
78 #include "stv0288.h"
79 #include "ix2505v.h"
80 #include "stv0299.h"
81 #include "dvb-pll.h"
82 #include "z0194a.h"
83 #include "m88rs2000.h"
84 #include "ts2020.h"
85
86
87 #define LME2510_C_S7395 "dvb-usb-lme2510c-s7395.fw";
88 #define LME2510_C_LG "dvb-usb-lme2510c-lg.fw";
89 #define LME2510_C_S0194 "dvb-usb-lme2510c-s0194.fw";
90 #define LME2510_C_RS2000 "dvb-usb-lme2510c-rs2000.fw";
91 #define LME2510_LG "dvb-usb-lme2510-lg.fw";
92 #define LME2510_S0194 "dvb-usb-lme2510-s0194.fw";
93
94 /* debug */
95 static int dvb_usb_lme2510_debug;
96 #define lme_debug(var, level, args...) do { \
97 if ((var >= level)) \
98 pr_debug(DVB_USB_LOG_PREFIX": " args); \
99 } while (0)
100 #define deb_info(level, args...) lme_debug(dvb_usb_lme2510_debug, level, args)
101 #define debug_data_snipet(level, name, p) \
102 deb_info(level, name" (%02x%02x%02x%02x%02x%02x%02x%02x)", \
103 *p, *(p+1), *(p+2), *(p+3), *(p+4), \
104 *(p+5), *(p+6), *(p+7));
105 #define info(args...) pr_info(DVB_USB_LOG_PREFIX": "args)
106
107 module_param_named(debug, dvb_usb_lme2510_debug, int, 0644);
108 MODULE_PARM_DESC(debug, "set debugging level (1=info (or-able)).");
109
110 static int dvb_usb_lme2510_firmware;
111 module_param_named(firmware, dvb_usb_lme2510_firmware, int, 0644);
112 MODULE_PARM_DESC(firmware, "set default firmware 0=Sharp7395 1=LG");
113
114 static int pid_filter;
115 module_param_named(pid, pid_filter, int, 0644);
116 MODULE_PARM_DESC(pid, "set default 0=default 1=off 2=on");
117
118
119 DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
120
121 #define TUNER_DEFAULT 0x0
122 #define TUNER_LG 0x1
123 #define TUNER_S7395 0x2
124 #define TUNER_S0194 0x3
125 #define TUNER_RS2000 0x4
126
127 struct lme2510_state {
128 unsigned long int_urb_due;
129 enum fe_status lock_status;
130 u8 id;
131 u8 tuner_config;
132 u8 signal_level;
133 u8 signal_sn;
134 u8 time_key;
135 u8 i2c_talk_onoff;
136 u8 i2c_gate;
137 u8 i2c_tuner_gate_w;
138 u8 i2c_tuner_gate_r;
139 u8 i2c_tuner_addr;
140 u8 stream_on;
141 u8 pid_size;
142 u8 pid_off;
143 void *buffer;
144 struct urb *lme_urb;
145 void *usb_buffer;
146 /* Frontend original calls */
147 int (*fe_read_status)(struct dvb_frontend *, enum fe_status *);
148 int (*fe_read_signal_strength)(struct dvb_frontend *, u16 *);
149 int (*fe_read_snr)(struct dvb_frontend *, u16 *);
150 int (*fe_read_ber)(struct dvb_frontend *, u32 *);
151 int (*fe_read_ucblocks)(struct dvb_frontend *, u32 *);
152 int (*fe_set_voltage)(struct dvb_frontend *, enum fe_sec_voltage);
153 u8 dvb_usb_lme2510_firmware;
154 };
155
156 static int lme2510_bulk_write(struct usb_device *dev,
157 u8 *snd, int len, u8 pipe)
158 {
159 int ret, actual_l;
160
161 ret = usb_bulk_msg(dev, usb_sndbulkpipe(dev, pipe),
162 snd, len , &actual_l, 100);
163 return ret;
164 }
165
166 static int lme2510_bulk_read(struct usb_device *dev,
167 u8 *rev, int len, u8 pipe)
168 {
169 int ret, actual_l;
170
171 ret = usb_bulk_msg(dev, usb_rcvbulkpipe(dev, pipe),
172 rev, len , &actual_l, 200);
173 return ret;
174 }
175
176 static int lme2510_usb_talk(struct dvb_usb_device *d,
177 u8 *wbuf, int wlen, u8 *rbuf, int rlen)
178 {
179 struct lme2510_state *st = d->priv;
180 u8 *buff;
181 int ret = 0;
182
183 if (st->usb_buffer == NULL) {
184 st->usb_buffer = kmalloc(64, GFP_KERNEL);
185 if (st->usb_buffer == NULL) {
186 info("MEM Error no memory");
187 return -ENOMEM;
188 }
189 }
190 buff = st->usb_buffer;
191
192 ret = mutex_lock_interruptible(&d->usb_mutex);
193
194 if (ret < 0)
195 return -EAGAIN;
196
197 /* the read/write capped at 64 */
198 memcpy(buff, wbuf, (wlen < 64) ? wlen : 64);
199
200 ret |= lme2510_bulk_write(d->udev, buff, wlen , 0x01);
201
202 ret |= lme2510_bulk_read(d->udev, buff, (rlen < 64) ?
203 rlen : 64 , 0x01);
204
205 if (rlen > 0)
206 memcpy(rbuf, buff, rlen);
207
208 mutex_unlock(&d->usb_mutex);
209
210 return (ret < 0) ? -ENODEV : 0;
211 }
212
213 static int lme2510_stream_restart(struct dvb_usb_device *d)
214 {
215 struct lme2510_state *st = d->priv;
216 u8 all_pids[] = LME_ALL_PIDS;
217 u8 stream_on[] = LME_ST_ON_W;
218 int ret;
219 u8 rbuff[1];
220 if (st->pid_off)
221 ret = lme2510_usb_talk(d, all_pids, sizeof(all_pids),
222 rbuff, sizeof(rbuff));
223 /*Restart Stream Command*/
224 ret = lme2510_usb_talk(d, stream_on, sizeof(stream_on),
225 rbuff, sizeof(rbuff));
226 return ret;
227 }
228
229 static int lme2510_enable_pid(struct dvb_usb_device *d, u8 index, u16 pid_out)
230 {
231 struct lme2510_state *st = d->priv;
232 static u8 pid_buff[] = LME_ZERO_PID;
233 static u8 rbuf[1];
234 u8 pid_no = index * 2;
235 u8 pid_len = pid_no + 2;
236 int ret = 0;
237 deb_info(1, "PID Setting Pid %04x", pid_out);
238
239 if (st->pid_size == 0)
240 ret |= lme2510_stream_restart(d);
241
242 pid_buff[2] = pid_no;
243 pid_buff[3] = (u8)pid_out & 0xff;
244 pid_buff[4] = pid_no + 1;
245 pid_buff[5] = (u8)(pid_out >> 8);
246
247 if (pid_len > st->pid_size)
248 st->pid_size = pid_len;
249 pid_buff[7] = 0x80 + st->pid_size;
250
251 ret |= lme2510_usb_talk(d, pid_buff ,
252 sizeof(pid_buff) , rbuf, sizeof(rbuf));
253
254 if (st->stream_on)
255 ret |= lme2510_stream_restart(d);
256
257 return ret;
258 }
259
260 static void lme2510_update_stats(struct dvb_usb_adapter *adap)
261 {
262 struct lme2510_state *st = adap_to_priv(adap);
263 struct dvb_frontend *fe = adap->fe[0];
264 struct dtv_frontend_properties *c;
265 u32 s_tmp = 0, c_tmp = 0;
266
267 if (!fe)
268 return;
269
270 c = &fe->dtv_property_cache;
271
272 c->block_count.len = 1;
273 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
274 c->block_error.len = 1;
275 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
276 c->post_bit_count.len = 1;
277 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
278 c->post_bit_error.len = 1;
279 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
280
281 if (st->i2c_talk_onoff) {
282 c->strength.len = 1;
283 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
284 c->cnr.len = 1;
285 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
286 return;
287 }
288
289 switch (st->tuner_config) {
290 case TUNER_LG:
291 s_tmp = 0xff - st->signal_level;
292 s_tmp |= s_tmp << 8;
293
294 c_tmp = 0xff - st->signal_sn;
295 c_tmp |= c_tmp << 8;
296 break;
297 /* fall through */
298 case TUNER_S7395:
299 case TUNER_S0194:
300 s_tmp = 0xffff - (((st->signal_level * 2) << 8) * 5 / 4);
301
302 c_tmp = ((0xff - st->signal_sn - 0xa1) * 3) << 8;
303 break;
304 case TUNER_RS2000:
305 s_tmp = st->signal_level * 0xffff / 0xff;
306
307 c_tmp = st->signal_sn * 0xffff / 0x7f;
308 }
309
310 c->strength.len = 1;
311 c->strength.stat[0].scale = FE_SCALE_RELATIVE;
312 c->strength.stat[0].uvalue = (u64)s_tmp;
313
314 c->cnr.len = 1;
315 c->cnr.stat[0].scale = FE_SCALE_RELATIVE;
316 c->cnr.stat[0].uvalue = (u64)c_tmp;
317 }
318
319 static void lme2510_int_response(struct urb *lme_urb)
320 {
321 struct dvb_usb_adapter *adap = lme_urb->context;
322 struct lme2510_state *st = adap_to_priv(adap);
323 static u8 *ibuf, *rbuf;
324 int i = 0, offset;
325 u32 key;
326 u8 signal_lock = 0;
327
328 switch (lme_urb->status) {
329 case 0:
330 case -ETIMEDOUT:
331 break;
332 case -ECONNRESET:
333 case -ENOENT:
334 case -ESHUTDOWN:
335 return;
336 default:
337 info("Error %x", lme_urb->status);
338 break;
339 }
340
341 rbuf = (u8 *) lme_urb->transfer_buffer;
342
343 offset = ((lme_urb->actual_length/8) > 4)
344 ? 4 : (lme_urb->actual_length/8) ;
345
346 for (i = 0; i < offset; ++i) {
347 ibuf = (u8 *)&rbuf[i*8];
348 deb_info(5, "INT O/S C =%02x C/O=%02x Type =%02x%02x",
349 offset, i, ibuf[0], ibuf[1]);
350
351 switch (ibuf[0]) {
352 case 0xaa:
353 debug_data_snipet(1, "INT Remote data snipet", ibuf);
354 if ((ibuf[4] + ibuf[5]) == 0xff) {
355 key = RC_SCANCODE_NECX((ibuf[2] ^ 0xff) << 8 |
356 (ibuf[3] > 0) ? (ibuf[3] ^ 0xff) : 0,
357 ibuf[5]);
358 deb_info(1, "INT Key =%08x", key);
359 if (adap_to_d(adap)->rc_dev != NULL)
360 rc_keydown(adap_to_d(adap)->rc_dev,
361 RC_TYPE_NEC, key, 0);
362 }
363 break;
364 case 0xbb:
365 switch (st->tuner_config) {
366 case TUNER_LG:
367 signal_lock = ibuf[2] & BIT(5);
368 st->signal_level = ibuf[4];
369 st->signal_sn = ibuf[3];
370 st->time_key = ibuf[7];
371 break;
372 case TUNER_S7395:
373 case TUNER_S0194:
374 /* Tweak for earlier firmware*/
375 if (ibuf[1] == 0x03) {
376 signal_lock = ibuf[2] & BIT(4);
377 st->signal_level = ibuf[3];
378 st->signal_sn = ibuf[4];
379 } else {
380 st->signal_level = ibuf[4];
381 st->signal_sn = ibuf[5];
382 }
383 break;
384 case TUNER_RS2000:
385 signal_lock = ibuf[2] & 0xee;
386 st->signal_level = ibuf[5];
387 st->signal_sn = ibuf[4];
388 st->time_key = ibuf[7];
389 default:
390 break;
391 }
392
393 /* Interrupt will also throw just BIT 0 as lock */
394 signal_lock |= ibuf[2] & BIT(0);
395
396 if (!signal_lock)
397 st->lock_status &= ~FE_HAS_LOCK;
398
399 lme2510_update_stats(adap);
400
401 debug_data_snipet(5, "INT Remote data snipet in", ibuf);
402 break;
403 case 0xcc:
404 debug_data_snipet(1, "INT Control data snipet", ibuf);
405 break;
406 default:
407 debug_data_snipet(1, "INT Unknown data snipet", ibuf);
408 break;
409 }
410 }
411
412 usb_submit_urb(lme_urb, GFP_ATOMIC);
413
414 /* Interrupt urb is due every 48 msecs while streaming the buffer
415 * stores up to 4 periods if missed. Allow 200 msec for next interrupt.
416 */
417 st->int_urb_due = jiffies + msecs_to_jiffies(200);
418 }
419
420 static int lme2510_int_read(struct dvb_usb_adapter *adap)
421 {
422 struct dvb_usb_device *d = adap_to_d(adap);
423 struct lme2510_state *lme_int = adap_to_priv(adap);
424 struct usb_host_endpoint *ep;
425
426 lme_int->lme_urb = usb_alloc_urb(0, GFP_ATOMIC);
427
428 if (lme_int->lme_urb == NULL)
429 return -ENOMEM;
430
431 lme_int->buffer = usb_alloc_coherent(d->udev, 128, GFP_ATOMIC,
432 &lme_int->lme_urb->transfer_dma);
433
434 if (lme_int->buffer == NULL)
435 return -ENOMEM;
436
437 usb_fill_int_urb(lme_int->lme_urb,
438 d->udev,
439 usb_rcvintpipe(d->udev, 0xa),
440 lme_int->buffer,
441 128,
442 lme2510_int_response,
443 adap,
444 8);
445
446 /* Quirk of pipe reporting PIPE_BULK but behaves as interrupt */
447 ep = usb_pipe_endpoint(d->udev, lme_int->lme_urb->pipe);
448
449 if (usb_endpoint_type(&ep->desc) == USB_ENDPOINT_XFER_BULK)
450 lme_int->lme_urb->pipe = usb_rcvbulkpipe(d->udev, 0xa),
451
452 lme_int->lme_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
453
454 usb_submit_urb(lme_int->lme_urb, GFP_ATOMIC);
455 info("INT Interrupt Service Started");
456
457 return 0;
458 }
459
460 static int lme2510_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff)
461 {
462 struct dvb_usb_device *d = adap_to_d(adap);
463 struct lme2510_state *st = adap_to_priv(adap);
464 static u8 clear_pid_reg[] = LME_ALL_PIDS;
465 static u8 rbuf[1];
466 int ret = 0;
467
468 deb_info(1, "PID Clearing Filter");
469
470 mutex_lock(&d->i2c_mutex);
471
472 if (!onoff) {
473 ret |= lme2510_usb_talk(d, clear_pid_reg,
474 sizeof(clear_pid_reg), rbuf, sizeof(rbuf));
475 st->pid_off = true;
476 } else
477 st->pid_off = false;
478
479 st->pid_size = 0;
480
481 mutex_unlock(&d->i2c_mutex);
482
483 return 0;
484 }
485
486 static int lme2510_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid,
487 int onoff)
488 {
489 struct dvb_usb_device *d = adap_to_d(adap);
490 int ret = 0;
491
492 deb_info(3, "%s PID=%04x Index=%04x onoff=%02x", __func__,
493 pid, index, onoff);
494
495 if (onoff) {
496 mutex_lock(&d->i2c_mutex);
497 ret |= lme2510_enable_pid(d, index, pid);
498 mutex_unlock(&d->i2c_mutex);
499 }
500
501
502 return ret;
503 }
504
505
506 static int lme2510_return_status(struct dvb_usb_device *d)
507 {
508 int ret = 0;
509 u8 *data;
510
511 data = kzalloc(10, GFP_KERNEL);
512 if (!data)
513 return -ENOMEM;
514
515 ret |= usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0),
516 0x06, 0x80, 0x0302, 0x00, data, 0x0006, 200);
517 info("Firmware Status: %x (%x)", ret , data[2]);
518
519 ret = (ret < 0) ? -ENODEV : data[2];
520 kfree(data);
521 return ret;
522 }
523
524 static int lme2510_msg(struct dvb_usb_device *d,
525 u8 *wbuf, int wlen, u8 *rbuf, int rlen)
526 {
527 struct lme2510_state *st = d->priv;
528
529 st->i2c_talk_onoff = 1;
530
531 return lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen);
532 }
533
534 static int lme2510_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
535 int num)
536 {
537 struct dvb_usb_device *d = i2c_get_adapdata(adap);
538 struct lme2510_state *st = d->priv;
539 static u8 obuf[64], ibuf[64];
540 int i, read, read_o;
541 u16 len;
542 u8 gate = st->i2c_gate;
543
544 mutex_lock(&d->i2c_mutex);
545
546 if (gate == 0)
547 gate = 5;
548
549 for (i = 0; i < num; i++) {
550 read_o = msg[i].flags & I2C_M_RD;
551 read = i + 1 < num && msg[i + 1].flags & I2C_M_RD;
552 read |= read_o;
553 gate = (msg[i].addr == st->i2c_tuner_addr)
554 ? (read) ? st->i2c_tuner_gate_r
555 : st->i2c_tuner_gate_w
556 : st->i2c_gate;
557 obuf[0] = gate | (read << 7);
558
559 if (gate == 5)
560 obuf[1] = (read) ? 2 : msg[i].len + 1;
561 else
562 obuf[1] = msg[i].len + read + 1;
563
564 obuf[2] = msg[i].addr << 1;
565
566 if (read) {
567 if (read_o)
568 len = 3;
569 else {
570 memcpy(&obuf[3], msg[i].buf, msg[i].len);
571 obuf[msg[i].len+3] = msg[i+1].len;
572 len = msg[i].len+4;
573 }
574 } else {
575 memcpy(&obuf[3], msg[i].buf, msg[i].len);
576 len = msg[i].len+3;
577 }
578
579 if (lme2510_msg(d, obuf, len, ibuf, 64) < 0) {
580 deb_info(1, "i2c transfer failed.");
581 mutex_unlock(&d->i2c_mutex);
582 return -EAGAIN;
583 }
584
585 if (read) {
586 if (read_o)
587 memcpy(msg[i].buf, &ibuf[1], msg[i].len);
588 else {
589 memcpy(msg[i+1].buf, &ibuf[1], msg[i+1].len);
590 i++;
591 }
592 }
593 }
594
595 mutex_unlock(&d->i2c_mutex);
596 return i;
597 }
598
599 static u32 lme2510_i2c_func(struct i2c_adapter *adapter)
600 {
601 return I2C_FUNC_I2C;
602 }
603
604 static struct i2c_algorithm lme2510_i2c_algo = {
605 .master_xfer = lme2510_i2c_xfer,
606 .functionality = lme2510_i2c_func,
607 };
608
609 static int lme2510_streaming_ctrl(struct dvb_frontend *fe, int onoff)
610 {
611 struct dvb_usb_adapter *adap = fe_to_adap(fe);
612 struct dvb_usb_device *d = adap_to_d(adap);
613 struct lme2510_state *st = adap_to_priv(adap);
614 static u8 clear_reg_3[] = LME_ALL_PIDS;
615 static u8 rbuf[1];
616 int ret = 0, rlen = sizeof(rbuf);
617
618 deb_info(1, "STM (%02x)", onoff);
619
620 /* Streaming is started by FE_HAS_LOCK */
621 if (onoff == 1)
622 st->stream_on = 1;
623 else {
624 deb_info(1, "STM Steam Off");
625 /* mutex is here only to avoid collision with I2C */
626 mutex_lock(&d->i2c_mutex);
627
628 ret = lme2510_usb_talk(d, clear_reg_3,
629 sizeof(clear_reg_3), rbuf, rlen);
630 st->stream_on = 0;
631 st->i2c_talk_onoff = 1;
632
633 mutex_unlock(&d->i2c_mutex);
634 }
635
636 return (ret < 0) ? -ENODEV : 0;
637 }
638
639 static u8 check_sum(u8 *p, u8 len)
640 {
641 u8 sum = 0;
642 while (len--)
643 sum += *p++;
644 return sum;
645 }
646
647 static int lme2510_download_firmware(struct dvb_usb_device *d,
648 const struct firmware *fw)
649 {
650 int ret = 0;
651 u8 *data;
652 u16 j, wlen, len_in, start, end;
653 u8 packet_size, dlen, i;
654 u8 *fw_data;
655
656 packet_size = 0x31;
657 len_in = 1;
658
659 data = kzalloc(128, GFP_KERNEL);
660 if (!data) {
661 info("FRM Could not start Firmware Download"\
662 "(Buffer allocation failed)");
663 return -ENOMEM;
664 }
665
666 info("FRM Starting Firmware Download");
667
668 for (i = 1; i < 3; i++) {
669 start = (i == 1) ? 0 : 512;
670 end = (i == 1) ? 512 : fw->size;
671 for (j = start; j < end; j += (packet_size+1)) {
672 fw_data = (u8 *)(fw->data + j);
673 if ((end - j) > packet_size) {
674 data[0] = i;
675 dlen = packet_size;
676 } else {
677 data[0] = i | 0x80;
678 dlen = (u8)(end - j)-1;
679 }
680 data[1] = dlen;
681 memcpy(&data[2], fw_data, dlen+1);
682 wlen = (u8) dlen + 4;
683 data[wlen-1] = check_sum(fw_data, dlen+1);
684 deb_info(1, "Data S=%02x:E=%02x CS= %02x", data[3],
685 data[dlen+2], data[dlen+3]);
686 lme2510_usb_talk(d, data, wlen, data, len_in);
687 ret |= (data[0] == 0x88) ? 0 : -1;
688 }
689 }
690
691 data[0] = 0x8a;
692 len_in = 1;
693 msleep(2000);
694 lme2510_usb_talk(d, data, len_in, data, len_in);
695 msleep(400);
696
697 if (ret < 0)
698 info("FRM Firmware Download Failed (%04x)" , ret);
699 else
700 info("FRM Firmware Download Completed - Resetting Device");
701
702 kfree(data);
703 return RECONNECTS_USB;
704 }
705
706 static void lme_coldreset(struct dvb_usb_device *d)
707 {
708 u8 data[1] = {0};
709 data[0] = 0x0a;
710 info("FRM Firmware Cold Reset");
711
712 lme2510_usb_talk(d, data, sizeof(data), data, sizeof(data));
713
714 return;
715 }
716
717 static const char fw_c_s7395[] = LME2510_C_S7395;
718 static const char fw_c_lg[] = LME2510_C_LG;
719 static const char fw_c_s0194[] = LME2510_C_S0194;
720 static const char fw_c_rs2000[] = LME2510_C_RS2000;
721 static const char fw_lg[] = LME2510_LG;
722 static const char fw_s0194[] = LME2510_S0194;
723
724 static const char *lme_firmware_switch(struct dvb_usb_device *d, int cold)
725 {
726 struct lme2510_state *st = d->priv;
727 struct usb_device *udev = d->udev;
728 const struct firmware *fw = NULL;
729 const char *fw_lme;
730 int ret = 0;
731
732 cold = (cold > 0) ? (cold & 1) : 0;
733
734 switch (le16_to_cpu(udev->descriptor.idProduct)) {
735 case 0x1122:
736 switch (st->dvb_usb_lme2510_firmware) {
737 default:
738 case TUNER_S0194:
739 fw_lme = fw_s0194;
740 ret = request_firmware(&fw, fw_lme, &udev->dev);
741 if (ret == 0) {
742 st->dvb_usb_lme2510_firmware = TUNER_S0194;
743 cold = 0;
744 break;
745 }
746 /* fall through */
747 case TUNER_LG:
748 fw_lme = fw_lg;
749 ret = request_firmware(&fw, fw_lme, &udev->dev);
750 if (ret == 0) {
751 st->dvb_usb_lme2510_firmware = TUNER_LG;
752 break;
753 }
754 st->dvb_usb_lme2510_firmware = TUNER_DEFAULT;
755 break;
756 }
757 break;
758 case 0x1120:
759 switch (st->dvb_usb_lme2510_firmware) {
760 default:
761 case TUNER_S7395:
762 fw_lme = fw_c_s7395;
763 ret = request_firmware(&fw, fw_lme, &udev->dev);
764 if (ret == 0) {
765 st->dvb_usb_lme2510_firmware = TUNER_S7395;
766 cold = 0;
767 break;
768 }
769 /* fall through */
770 case TUNER_LG:
771 fw_lme = fw_c_lg;
772 ret = request_firmware(&fw, fw_lme, &udev->dev);
773 if (ret == 0) {
774 st->dvb_usb_lme2510_firmware = TUNER_LG;
775 break;
776 }
777 /* fall through */
778 case TUNER_S0194:
779 fw_lme = fw_c_s0194;
780 ret = request_firmware(&fw, fw_lme, &udev->dev);
781 if (ret == 0) {
782 st->dvb_usb_lme2510_firmware = TUNER_S0194;
783 break;
784 }
785 st->dvb_usb_lme2510_firmware = TUNER_DEFAULT;
786 cold = 0;
787 break;
788 }
789 break;
790 case 0x22f0:
791 fw_lme = fw_c_rs2000;
792 st->dvb_usb_lme2510_firmware = TUNER_RS2000;
793 break;
794 default:
795 fw_lme = fw_c_s7395;
796 }
797
798 release_firmware(fw);
799
800 if (cold) {
801 dvb_usb_lme2510_firmware = st->dvb_usb_lme2510_firmware;
802 info("FRM Changing to %s firmware", fw_lme);
803 lme_coldreset(d);
804 return NULL;
805 }
806
807 return fw_lme;
808 }
809
810 static int lme2510_kill_urb(struct usb_data_stream *stream)
811 {
812 int i;
813
814 for (i = 0; i < stream->urbs_submitted; i++) {
815 deb_info(3, "killing URB no. %d.", i);
816 /* stop the URB */
817 usb_kill_urb(stream->urb_list[i]);
818 }
819 stream->urbs_submitted = 0;
820
821 return 0;
822 }
823
824 static struct tda10086_config tda10086_config = {
825 .demod_address = 0x0e,
826 .invert = 0,
827 .diseqc_tone = 1,
828 .xtal_freq = TDA10086_XTAL_16M,
829 };
830
831 static struct stv0288_config lme_config = {
832 .demod_address = 0x68,
833 .min_delay_ms = 15,
834 .inittab = s7395_inittab,
835 };
836
837 static struct ix2505v_config lme_tuner = {
838 .tuner_address = 0x60,
839 .min_delay_ms = 100,
840 .tuner_gain = 0x0,
841 .tuner_chargepump = 0x3,
842 };
843
844 static struct stv0299_config sharp_z0194_config = {
845 .demod_address = 0x68,
846 .inittab = sharp_z0194a_inittab,
847 .mclk = 88000000UL,
848 .invert = 0,
849 .skip_reinit = 0,
850 .lock_output = STV0299_LOCKOUTPUT_1,
851 .volt13_op0_op1 = STV0299_VOLT13_OP1,
852 .min_delay_ms = 100,
853 .set_symbol_rate = sharp_z0194a_set_symbol_rate,
854 };
855
856 static struct m88rs2000_config m88rs2000_config = {
857 .demod_addr = 0x68
858 };
859
860 static struct ts2020_config ts2020_config = {
861 .tuner_address = 0x60,
862 .clk_out_div = 7,
863 .dont_poll = true
864 };
865
866 static int dm04_lme2510_set_voltage(struct dvb_frontend *fe,
867 enum fe_sec_voltage voltage)
868 {
869 struct dvb_usb_device *d = fe_to_d(fe);
870 struct lme2510_state *st = fe_to_priv(fe);
871 static u8 voltage_low[] = LME_VOLTAGE_L;
872 static u8 voltage_high[] = LME_VOLTAGE_H;
873 static u8 rbuf[1];
874 int ret = 0, len = 3, rlen = 1;
875
876 mutex_lock(&d->i2c_mutex);
877
878 switch (voltage) {
879 case SEC_VOLTAGE_18:
880 ret |= lme2510_usb_talk(d,
881 voltage_high, len, rbuf, rlen);
882 break;
883
884 case SEC_VOLTAGE_OFF:
885 case SEC_VOLTAGE_13:
886 default:
887 ret |= lme2510_usb_talk(d,
888 voltage_low, len, rbuf, rlen);
889 break;
890 }
891
892 mutex_unlock(&d->i2c_mutex);
893
894 if (st->tuner_config == TUNER_RS2000)
895 if (st->fe_set_voltage)
896 st->fe_set_voltage(fe, voltage);
897
898
899 return (ret < 0) ? -ENODEV : 0;
900 }
901
902 static int dm04_read_status(struct dvb_frontend *fe, enum fe_status *status)
903 {
904 struct dvb_usb_device *d = fe_to_d(fe);
905 struct lme2510_state *st = d->priv;
906 int ret = 0;
907
908 if (st->i2c_talk_onoff) {
909 if (st->fe_read_status) {
910 ret = st->fe_read_status(fe, status);
911 if (ret < 0)
912 return ret;
913 }
914
915 st->lock_status = *status;
916
917 if (*status & FE_HAS_LOCK && st->stream_on) {
918 mutex_lock(&d->i2c_mutex);
919
920 st->i2c_talk_onoff = 0;
921 ret = lme2510_stream_restart(d);
922
923 mutex_unlock(&d->i2c_mutex);
924 }
925
926 return ret;
927 }
928
929 /* Timeout of interrupt reached on RS2000 */
930 if (st->tuner_config == TUNER_RS2000 &&
931 time_after(jiffies, st->int_urb_due))
932 st->lock_status &= ~FE_HAS_LOCK;
933
934 *status = st->lock_status;
935
936 if (!(*status & FE_HAS_LOCK)) {
937 struct dvb_usb_adapter *adap = fe_to_adap(fe);
938
939 st->i2c_talk_onoff = 1;
940
941 lme2510_update_stats(adap);
942 }
943
944 return ret;
945 }
946
947 static int dm04_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
948 {
949 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
950 struct lme2510_state *st = fe_to_priv(fe);
951
952 if (st->fe_read_signal_strength && !st->stream_on)
953 return st->fe_read_signal_strength(fe, strength);
954
955 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE)
956 *strength = (u16)c->strength.stat[0].uvalue;
957 else
958 *strength = 0;
959
960 return 0;
961 }
962
963 static int dm04_read_snr(struct dvb_frontend *fe, u16 *snr)
964 {
965 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
966 struct lme2510_state *st = fe_to_priv(fe);
967
968 if (st->fe_read_snr && !st->stream_on)
969 return st->fe_read_snr(fe, snr);
970
971 if (c->cnr.stat[0].scale == FE_SCALE_RELATIVE)
972 *snr = (u16)c->cnr.stat[0].uvalue;
973 else
974 *snr = 0;
975
976 return 0;
977 }
978
979 static int dm04_read_ber(struct dvb_frontend *fe, u32 *ber)
980 {
981 struct lme2510_state *st = fe_to_priv(fe);
982
983 if (st->fe_read_ber && !st->stream_on)
984 return st->fe_read_ber(fe, ber);
985
986 *ber = 0;
987
988 return 0;
989 }
990
991 static int dm04_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
992 {
993 struct lme2510_state *st = fe_to_priv(fe);
994
995 if (st->fe_read_ucblocks && !st->stream_on)
996 return st->fe_read_ucblocks(fe, ucblocks);
997
998 *ucblocks = 0;
999
1000 return 0;
1001 }
1002
1003 static int lme_name(struct dvb_usb_adapter *adap)
1004 {
1005 struct dvb_usb_device *d = adap_to_d(adap);
1006 struct lme2510_state *st = adap_to_priv(adap);
1007 const char *desc = d->name;
1008 char *fe_name[] = {"", " LG TDQY-P001F", " SHARP:BS2F7HZ7395",
1009 " SHARP:BS2F7HZ0194", " RS2000"};
1010 char *name = adap->fe[0]->ops.info.name;
1011
1012 strlcpy(name, desc, 128);
1013 strlcat(name, fe_name[st->tuner_config], 128);
1014
1015 return 0;
1016 }
1017
1018 static int dm04_lme2510_frontend_attach(struct dvb_usb_adapter *adap)
1019 {
1020 struct dvb_usb_device *d = adap_to_d(adap);
1021 struct lme2510_state *st = d->priv;
1022 int ret = 0;
1023
1024 st->i2c_talk_onoff = 1;
1025 switch (le16_to_cpu(d->udev->descriptor.idProduct)) {
1026 case 0x1122:
1027 case 0x1120:
1028 st->i2c_gate = 4;
1029 adap->fe[0] = dvb_attach(tda10086_attach,
1030 &tda10086_config, &d->i2c_adap);
1031 if (adap->fe[0]) {
1032 info("TUN Found Frontend TDA10086");
1033 st->i2c_tuner_gate_w = 4;
1034 st->i2c_tuner_gate_r = 4;
1035 st->i2c_tuner_addr = 0x60;
1036 st->tuner_config = TUNER_LG;
1037 if (st->dvb_usb_lme2510_firmware != TUNER_LG) {
1038 st->dvb_usb_lme2510_firmware = TUNER_LG;
1039 ret = lme_firmware_switch(d, 1) ? 0 : -ENODEV;
1040 }
1041 break;
1042 }
1043
1044 st->i2c_gate = 4;
1045 adap->fe[0] = dvb_attach(stv0299_attach,
1046 &sharp_z0194_config, &d->i2c_adap);
1047 if (adap->fe[0]) {
1048 info("FE Found Stv0299");
1049 st->i2c_tuner_gate_w = 4;
1050 st->i2c_tuner_gate_r = 5;
1051 st->i2c_tuner_addr = 0x60;
1052 st->tuner_config = TUNER_S0194;
1053 if (st->dvb_usb_lme2510_firmware != TUNER_S0194) {
1054 st->dvb_usb_lme2510_firmware = TUNER_S0194;
1055 ret = lme_firmware_switch(d, 1) ? 0 : -ENODEV;
1056 }
1057 break;
1058 }
1059
1060 st->i2c_gate = 5;
1061 adap->fe[0] = dvb_attach(stv0288_attach, &lme_config,
1062 &d->i2c_adap);
1063
1064 if (adap->fe[0]) {
1065 info("FE Found Stv0288");
1066 st->i2c_tuner_gate_w = 4;
1067 st->i2c_tuner_gate_r = 5;
1068 st->i2c_tuner_addr = 0x60;
1069 st->tuner_config = TUNER_S7395;
1070 if (st->dvb_usb_lme2510_firmware != TUNER_S7395) {
1071 st->dvb_usb_lme2510_firmware = TUNER_S7395;
1072 ret = lme_firmware_switch(d, 1) ? 0 : -ENODEV;
1073 }
1074 break;
1075 }
1076 case 0x22f0:
1077 st->i2c_gate = 5;
1078 adap->fe[0] = dvb_attach(m88rs2000_attach,
1079 &m88rs2000_config, &d->i2c_adap);
1080
1081 if (adap->fe[0]) {
1082 info("FE Found M88RS2000");
1083 dvb_attach(ts2020_attach, adap->fe[0], &ts2020_config,
1084 &d->i2c_adap);
1085 st->i2c_tuner_gate_w = 5;
1086 st->i2c_tuner_gate_r = 5;
1087 st->i2c_tuner_addr = 0x60;
1088 st->tuner_config = TUNER_RS2000;
1089 st->fe_set_voltage =
1090 adap->fe[0]->ops.set_voltage;
1091 }
1092 break;
1093 }
1094
1095 if (adap->fe[0] == NULL) {
1096 info("DM04/QQBOX Not Powered up or not Supported");
1097 return -ENODEV;
1098 }
1099
1100 if (ret) {
1101 if (adap->fe[0]) {
1102 dvb_frontend_detach(adap->fe[0]);
1103 adap->fe[0] = NULL;
1104 }
1105 d->rc_map = NULL;
1106 return -ENODEV;
1107 }
1108
1109 st->fe_read_status = adap->fe[0]->ops.read_status;
1110 st->fe_read_signal_strength = adap->fe[0]->ops.read_signal_strength;
1111 st->fe_read_snr = adap->fe[0]->ops.read_snr;
1112 st->fe_read_ber = adap->fe[0]->ops.read_ber;
1113 st->fe_read_ucblocks = adap->fe[0]->ops.read_ucblocks;
1114
1115 adap->fe[0]->ops.read_status = dm04_read_status;
1116 adap->fe[0]->ops.read_signal_strength = dm04_read_signal_strength;
1117 adap->fe[0]->ops.read_snr = dm04_read_snr;
1118 adap->fe[0]->ops.read_ber = dm04_read_ber;
1119 adap->fe[0]->ops.read_ucblocks = dm04_read_ucblocks;
1120 adap->fe[0]->ops.set_voltage = dm04_lme2510_set_voltage;
1121
1122 ret = lme_name(adap);
1123 return ret;
1124 }
1125
1126 static int dm04_lme2510_tuner(struct dvb_usb_adapter *adap)
1127 {
1128 struct dvb_usb_device *d = adap_to_d(adap);
1129 struct lme2510_state *st = adap_to_priv(adap);
1130 char *tun_msg[] = {"", "TDA8263", "IX2505V", "DVB_PLL_OPERA", "RS2000"};
1131 int ret = 0;
1132
1133 switch (st->tuner_config) {
1134 case TUNER_LG:
1135 if (dvb_attach(tda826x_attach, adap->fe[0], 0x60,
1136 &d->i2c_adap, 1))
1137 ret = st->tuner_config;
1138 break;
1139 case TUNER_S7395:
1140 if (dvb_attach(ix2505v_attach , adap->fe[0], &lme_tuner,
1141 &d->i2c_adap))
1142 ret = st->tuner_config;
1143 break;
1144 case TUNER_S0194:
1145 if (dvb_attach(dvb_pll_attach , adap->fe[0], 0x60,
1146 &d->i2c_adap, DVB_PLL_OPERA1))
1147 ret = st->tuner_config;
1148 break;
1149 case TUNER_RS2000:
1150 ret = st->tuner_config;
1151 break;
1152 default:
1153 break;
1154 }
1155
1156 if (ret)
1157 info("TUN Found %s tuner", tun_msg[ret]);
1158 else {
1159 info("TUN No tuner found --- resetting device");
1160 lme_coldreset(d);
1161 return -ENODEV;
1162 }
1163
1164 /* Start the Interrupt*/
1165 ret = lme2510_int_read(adap);
1166 if (ret < 0) {
1167 info("INT Unable to start Interrupt Service");
1168 return -ENODEV;
1169 }
1170
1171 return ret;
1172 }
1173
1174 static int lme2510_powerup(struct dvb_usb_device *d, int onoff)
1175 {
1176 struct lme2510_state *st = d->priv;
1177 static u8 lnb_on[] = LNB_ON;
1178 static u8 lnb_off[] = LNB_OFF;
1179 static u8 rbuf[1];
1180 int ret = 0, len = 3, rlen = 1;
1181
1182 mutex_lock(&d->i2c_mutex);
1183
1184 if (onoff)
1185 ret = lme2510_usb_talk(d, lnb_on, len, rbuf, rlen);
1186 else
1187 ret = lme2510_usb_talk(d, lnb_off, len, rbuf, rlen);
1188
1189 st->i2c_talk_onoff = 1;
1190
1191 mutex_unlock(&d->i2c_mutex);
1192
1193 return ret;
1194 }
1195
1196 static int lme2510_get_adapter_count(struct dvb_usb_device *d)
1197 {
1198 return 1;
1199 }
1200
1201 static int lme2510_identify_state(struct dvb_usb_device *d, const char **name)
1202 {
1203 struct lme2510_state *st = d->priv;
1204
1205 usb_reset_configuration(d->udev);
1206
1207 usb_set_interface(d->udev,
1208 d->props->bInterfaceNumber, 1);
1209
1210 st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware;
1211
1212 if (lme2510_return_status(d) == 0x44) {
1213 *name = lme_firmware_switch(d, 0);
1214 return COLD;
1215 }
1216
1217 return 0;
1218 }
1219
1220 static int lme2510_get_stream_config(struct dvb_frontend *fe, u8 *ts_type,
1221 struct usb_data_stream_properties *stream)
1222 {
1223 struct dvb_usb_adapter *adap = fe_to_adap(fe);
1224 struct dvb_usb_device *d;
1225
1226 if (adap == NULL)
1227 return 0;
1228
1229 d = adap_to_d(adap);
1230
1231 /* Turn PID filter on the fly by module option */
1232 if (pid_filter == 2) {
1233 adap->pid_filtering = true;
1234 adap->max_feed_count = 15;
1235 }
1236
1237 if (!(le16_to_cpu(d->udev->descriptor.idProduct)
1238 == 0x1122))
1239 stream->endpoint = 0x8;
1240
1241 return 0;
1242 }
1243
1244 static int lme2510_get_rc_config(struct dvb_usb_device *d,
1245 struct dvb_usb_rc *rc)
1246 {
1247 rc->allowed_protos = RC_BIT_NEC;
1248 return 0;
1249 }
1250
1251 static void *lme2510_exit_int(struct dvb_usb_device *d)
1252 {
1253 struct lme2510_state *st = d->priv;
1254 struct dvb_usb_adapter *adap = &d->adapter[0];
1255 void *buffer = NULL;
1256
1257 if (adap != NULL) {
1258 lme2510_kill_urb(&adap->stream);
1259 }
1260
1261 if (st->usb_buffer != NULL) {
1262 st->i2c_talk_onoff = 1;
1263 st->signal_level = 0;
1264 st->signal_sn = 0;
1265 buffer = st->usb_buffer;
1266 }
1267
1268 if (st->lme_urb != NULL) {
1269 usb_kill_urb(st->lme_urb);
1270 usb_free_coherent(d->udev, 128, st->buffer,
1271 st->lme_urb->transfer_dma);
1272 info("Interrupt Service Stopped");
1273 }
1274
1275 return buffer;
1276 }
1277
1278 static void lme2510_exit(struct dvb_usb_device *d)
1279 {
1280 void *usb_buffer;
1281
1282 if (d != NULL) {
1283 usb_buffer = lme2510_exit_int(d);
1284 kfree(usb_buffer);
1285 }
1286 }
1287
1288 static struct dvb_usb_device_properties lme2510_props = {
1289 .driver_name = KBUILD_MODNAME,
1290 .owner = THIS_MODULE,
1291 .bInterfaceNumber = 0,
1292 .adapter_nr = adapter_nr,
1293 .size_of_priv = sizeof(struct lme2510_state),
1294
1295 .download_firmware = lme2510_download_firmware,
1296
1297 .power_ctrl = lme2510_powerup,
1298 .identify_state = lme2510_identify_state,
1299 .i2c_algo = &lme2510_i2c_algo,
1300
1301 .frontend_attach = dm04_lme2510_frontend_attach,
1302 .tuner_attach = dm04_lme2510_tuner,
1303 .get_stream_config = lme2510_get_stream_config,
1304 .get_adapter_count = lme2510_get_adapter_count,
1305 .streaming_ctrl = lme2510_streaming_ctrl,
1306
1307 .get_rc_config = lme2510_get_rc_config,
1308
1309 .exit = lme2510_exit,
1310 .adapter = {
1311 {
1312 .caps = DVB_USB_ADAP_HAS_PID_FILTER|
1313 DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF,
1314 .pid_filter_count = 15,
1315 .pid_filter = lme2510_pid_filter,
1316 .pid_filter_ctrl = lme2510_pid_filter_ctrl,
1317 .stream =
1318 DVB_USB_STREAM_BULK(0x86, 10, 4096),
1319 },
1320 {
1321 }
1322 },
1323 };
1324
1325 static const struct usb_device_id lme2510_id_table[] = {
1326 { DVB_USB_DEVICE(0x3344, 0x1122, &lme2510_props,
1327 "DM04_LME2510_DVB-S", RC_MAP_LME2510) },
1328 { DVB_USB_DEVICE(0x3344, 0x1120, &lme2510_props,
1329 "DM04_LME2510C_DVB-S", RC_MAP_LME2510) },
1330 { DVB_USB_DEVICE(0x3344, 0x22f0, &lme2510_props,
1331 "DM04_LME2510C_DVB-S RS2000", RC_MAP_LME2510) },
1332 {} /* Terminating entry */
1333 };
1334
1335 MODULE_DEVICE_TABLE(usb, lme2510_id_table);
1336
1337 static struct usb_driver lme2510_driver = {
1338 .name = KBUILD_MODNAME,
1339 .probe = dvb_usbv2_probe,
1340 .disconnect = dvb_usbv2_disconnect,
1341 .id_table = lme2510_id_table,
1342 .no_dynamic_id = 1,
1343 .soft_unbind = 1,
1344 };
1345
1346 module_usb_driver(lme2510_driver);
1347
1348 MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>");
1349 MODULE_DESCRIPTION("LME2510(C) DVB-S USB2.0");
1350 MODULE_VERSION("2.06");
1351 MODULE_LICENSE("GPL");
1352 MODULE_FIRMWARE(LME2510_C_S7395);
1353 MODULE_FIRMWARE(LME2510_C_LG);
1354 MODULE_FIRMWARE(LME2510_C_S0194);
1355 MODULE_FIRMWARE(LME2510_C_RS2000);
1356 MODULE_FIRMWARE(LME2510_LG);
1357 MODULE_FIRMWARE(LME2510_S0194);
1358
This page took 0.133833 seconds and 4 git commands to generate.