2005-07-08 07:58:10 +07:00
|
|
|
/* DVB USB compliant linux driver for Conexant USB reference design.
|
|
|
|
*
|
|
|
|
* The Conexant reference design I saw on their website was only for analogue
|
|
|
|
* capturing (using the cx25842). The box I took to write this driver (reverse
|
|
|
|
* engineered) is the one labeled Medion MD95700. In addition to the cx25842
|
|
|
|
* for analogue capturing it also has a cx22702 DVB-T demodulator on the main
|
|
|
|
* board. Besides it has a atiremote (X10) and a USB2.0 hub onboard.
|
|
|
|
*
|
|
|
|
* Maybe it is a little bit premature to call this driver cxusb, but I assume
|
|
|
|
* the USB protocol is identical or at least inherited from the reference
|
|
|
|
* design, so it can be reused for the "analogue-only" device (if it will
|
|
|
|
* appear at all).
|
|
|
|
*
|
2006-01-10 03:21:38 +07:00
|
|
|
* TODO: Use the cx25840-driver for the analogue part
|
2005-07-08 07:58:10 +07:00
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Patrick Boettcher (patrick.boettcher@desy.de)
|
2006-10-16 00:51:08 +07:00
|
|
|
* Copyright (C) 2006 Michael Krufky (mkrufky@linuxtv.org)
|
2007-11-20 07:57:10 +07:00
|
|
|
* Copyright (C) 2006, 2007 Chris Pascoe (c.pascoe@itee.uq.edu.au)
|
2005-07-08 07:58:10 +07:00
|
|
|
*
|
2006-12-06 00:53:39 +07:00
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation, version 2.
|
2005-07-08 07:58:10 +07:00
|
|
|
*
|
|
|
|
* see Documentation/dvb/README.dvb-usb for more information
|
|
|
|
*/
|
2008-04-23 00:46:16 +07:00
|
|
|
#include <media/tuner.h>
|
2008-05-24 06:12:42 +07:00
|
|
|
#include <linux/vmalloc.h>
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 15:04:11 +07:00
|
|
|
#include <linux/slab.h>
|
2008-04-23 00:46:16 +07:00
|
|
|
|
2005-07-08 07:58:10 +07:00
|
|
|
#include "cxusb.h"
|
|
|
|
|
|
|
|
#include "cx22702.h"
|
2006-01-10 00:25:47 +07:00
|
|
|
#include "lgdt330x.h"
|
2006-01-10 03:21:28 +07:00
|
|
|
#include "mt352.h"
|
|
|
|
#include "mt352_priv.h"
|
2006-06-11 14:24:31 +07:00
|
|
|
#include "zl10353.h"
|
2007-11-20 07:57:10 +07:00
|
|
|
#include "tuner-xc2028.h"
|
2008-04-23 00:46:16 +07:00
|
|
|
#include "tuner-simple.h"
|
2008-06-28 15:01:30 +07:00
|
|
|
#include "mxl5005s.h"
|
2009-10-26 19:41:22 +07:00
|
|
|
#include "max2165.h"
|
2008-08-09 22:23:15 +07:00
|
|
|
#include "dib7000p.h"
|
|
|
|
#include "dib0070.h"
|
2009-08-05 23:07:10 +07:00
|
|
|
#include "lgs8gxx.h"
|
2009-10-26 19:41:22 +07:00
|
|
|
#include "atbm8830.h"
|
2014-07-13 20:52:22 +07:00
|
|
|
#include "si2168.h"
|
|
|
|
#include "si2157.h"
|
2005-07-08 07:58:10 +07:00
|
|
|
|
2013-11-02 17:18:09 +07:00
|
|
|
/* Max transfer size done by I2C transfer functions */
|
2014-06-30 21:56:33 +07:00
|
|
|
#define MAX_XFER_SIZE 80
|
2013-11-02 17:18:09 +07:00
|
|
|
|
2005-07-08 07:58:10 +07:00
|
|
|
/* debug */
|
2007-11-06 00:07:06 +07:00
|
|
|
static int dvb_usb_cxusb_debug;
|
2006-12-06 00:53:39 +07:00
|
|
|
module_param_named(debug, dvb_usb_cxusb_debug, int, 0644);
|
2005-07-08 07:58:10 +07:00
|
|
|
MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS);
|
2008-04-10 05:13:13 +07:00
|
|
|
|
|
|
|
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
|
|
|
|
|
2008-06-28 15:01:30 +07:00
|
|
|
#define deb_info(args...) dprintk(dvb_usb_cxusb_debug, 0x03, args)
|
|
|
|
#define deb_i2c(args...) dprintk(dvb_usb_cxusb_debug, 0x02, args)
|
2005-07-08 07:58:10 +07:00
|
|
|
|
|
|
|
static int cxusb_ctrl_msg(struct dvb_usb_device *d,
|
2006-12-06 00:53:39 +07:00
|
|
|
u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen)
|
2005-07-08 07:58:10 +07:00
|
|
|
{
|
|
|
|
int wo = (rbuf == NULL || rlen == 0); /* write-only */
|
2013-11-02 17:18:09 +07:00
|
|
|
u8 sndbuf[MAX_XFER_SIZE];
|
|
|
|
|
|
|
|
if (1 + wlen > sizeof(sndbuf)) {
|
|
|
|
warn("i2c wr: len=%d is too big!\n",
|
|
|
|
wlen);
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
|
|
|
|
2006-12-06 00:53:39 +07:00
|
|
|
memset(sndbuf, 0, 1+wlen);
|
2005-07-08 07:58:10 +07:00
|
|
|
|
|
|
|
sndbuf[0] = cmd;
|
2006-12-06 00:53:39 +07:00
|
|
|
memcpy(&sndbuf[1], wbuf, wlen);
|
2005-07-08 07:58:10 +07:00
|
|
|
if (wo)
|
2007-11-19 12:42:44 +07:00
|
|
|
return dvb_usb_generic_write(d, sndbuf, 1+wlen);
|
2005-07-08 07:58:10 +07:00
|
|
|
else
|
2007-11-19 12:42:44 +07:00
|
|
|
return dvb_usb_generic_rw(d, sndbuf, 1+wlen, rbuf, rlen, 0);
|
2005-07-08 07:58:10 +07:00
|
|
|
}
|
|
|
|
|
2005-09-10 03:02:51 +07:00
|
|
|
/* GPIO */
|
|
|
|
static void cxusb_gpio_tuner(struct dvb_usb_device *d, int onoff)
|
2005-07-08 07:58:10 +07:00
|
|
|
{
|
|
|
|
struct cxusb_state *st = d->priv;
|
2006-12-06 00:53:39 +07:00
|
|
|
u8 o[2], i;
|
2005-07-08 07:58:10 +07:00
|
|
|
|
2005-09-10 03:02:51 +07:00
|
|
|
if (st->gpio_write_state[GPIO_TUNER] == onoff)
|
2005-07-08 07:58:10 +07:00
|
|
|
return;
|
|
|
|
|
2005-09-10 03:02:51 +07:00
|
|
|
o[0] = GPIO_TUNER;
|
|
|
|
o[1] = onoff;
|
2006-12-06 00:53:39 +07:00
|
|
|
cxusb_ctrl_msg(d, CMD_GPIO_WRITE, o, 2, &i, 1);
|
2005-07-08 07:58:10 +07:00
|
|
|
|
|
|
|
if (i != 0x01)
|
2005-09-10 03:02:51 +07:00
|
|
|
deb_info("gpio_write failed.\n");
|
2005-07-08 07:58:10 +07:00
|
|
|
|
2005-09-10 03:02:51 +07:00
|
|
|
st->gpio_write_state[GPIO_TUNER] = onoff;
|
2005-07-08 07:58:10 +07:00
|
|
|
}
|
|
|
|
|
2007-11-20 07:57:10 +07:00
|
|
|
static int cxusb_bluebird_gpio_rw(struct dvb_usb_device *d, u8 changemask,
|
|
|
|
u8 newval)
|
|
|
|
{
|
|
|
|
u8 o[2], gpio_state;
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
o[0] = 0xff & ~changemask; /* mask of bits to keep */
|
|
|
|
o[1] = newval & changemask; /* new values for bits */
|
|
|
|
|
|
|
|
rc = cxusb_ctrl_msg(d, CMD_BLUEBIRD_GPIO_RW, o, 2, &gpio_state, 1);
|
|
|
|
if (rc < 0 || (gpio_state & changemask) != (newval & changemask))
|
|
|
|
deb_info("bluebird_gpio_write failed.\n");
|
|
|
|
|
|
|
|
return rc < 0 ? rc : gpio_state;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void cxusb_bluebird_gpio_pulse(struct dvb_usb_device *d, u8 pin, int low)
|
|
|
|
{
|
|
|
|
cxusb_bluebird_gpio_rw(d, pin, low ? 0 : pin);
|
|
|
|
msleep(5);
|
|
|
|
cxusb_bluebird_gpio_rw(d, pin, low ? pin : 0);
|
|
|
|
}
|
|
|
|
|
2007-11-20 11:53:31 +07:00
|
|
|
static void cxusb_nano2_led(struct dvb_usb_device *d, int onoff)
|
|
|
|
{
|
|
|
|
cxusb_bluebird_gpio_rw(d, 0x40, onoff ? 0 : 0x40);
|
|
|
|
}
|
|
|
|
|
2008-08-09 23:36:51 +07:00
|
|
|
static int cxusb_d680_dmb_gpio_tuner(struct dvb_usb_device *d,
|
|
|
|
u8 addr, int onoff)
|
|
|
|
{
|
|
|
|
u8 o[2] = {addr, onoff};
|
|
|
|
u8 i;
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
rc = cxusb_ctrl_msg(d, CMD_GPIO_WRITE, o, 2, &i, 1);
|
|
|
|
|
|
|
|
if (rc < 0)
|
|
|
|
return rc;
|
|
|
|
if (i == 0x01)
|
|
|
|
return 0;
|
|
|
|
else {
|
|
|
|
deb_info("gpio_write failed.\n");
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-09-10 03:02:51 +07:00
|
|
|
/* I2C */
|
2006-12-06 00:53:39 +07:00
|
|
|
static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
|
|
|
|
int num)
|
2005-07-08 07:58:10 +07:00
|
|
|
{
|
|
|
|
struct dvb_usb_device *d = i2c_get_adapdata(adap);
|
2013-11-22 14:55:43 +07:00
|
|
|
int ret;
|
2005-07-08 07:58:10 +07:00
|
|
|
int i;
|
|
|
|
|
2006-02-07 15:49:14 +07:00
|
|
|
if (mutex_lock_interruptible(&d->i2c_mutex) < 0)
|
2005-07-08 07:58:10 +07:00
|
|
|
return -EAGAIN;
|
|
|
|
|
|
|
|
for (i = 0; i < num; i++) {
|
|
|
|
|
2014-08-21 21:55:00 +07:00
|
|
|
if (le16_to_cpu(d->udev->descriptor.idVendor) == USB_VID_MEDION)
|
2006-03-23 10:01:34 +07:00
|
|
|
switch (msg[i].addr) {
|
2006-12-06 00:53:39 +07:00
|
|
|
case 0x63:
|
|
|
|
cxusb_gpio_tuner(d, 0);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
cxusb_gpio_tuner(d, 1);
|
|
|
|
break;
|
2006-03-23 10:01:34 +07:00
|
|
|
}
|
2005-07-08 07:58:10 +07:00
|
|
|
|
2007-11-19 13:01:22 +07:00
|
|
|
if (msg[i].flags & I2C_M_RD) {
|
|
|
|
/* read only */
|
2013-11-02 17:18:09 +07:00
|
|
|
u8 obuf[3], ibuf[MAX_XFER_SIZE];
|
|
|
|
|
|
|
|
if (1 + msg[i].len > sizeof(ibuf)) {
|
|
|
|
warn("i2c rd: len=%d is too big!\n",
|
|
|
|
msg[i].len);
|
2013-11-22 14:55:43 +07:00
|
|
|
ret = -EOPNOTSUPP;
|
|
|
|
goto unlock;
|
2013-11-02 17:18:09 +07:00
|
|
|
}
|
2007-11-19 13:01:22 +07:00
|
|
|
obuf[0] = 0;
|
|
|
|
obuf[1] = msg[i].len;
|
|
|
|
obuf[2] = msg[i].addr;
|
|
|
|
if (cxusb_ctrl_msg(d, CMD_I2C_READ,
|
|
|
|
obuf, 3,
|
|
|
|
ibuf, 1+msg[i].len) < 0) {
|
|
|
|
warn("i2c read failed");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
memcpy(msg[i].buf, &ibuf[1], msg[i].len);
|
2007-11-19 13:05:09 +07:00
|
|
|
} else if (i+1 < num && (msg[i+1].flags & I2C_M_RD) &&
|
|
|
|
msg[i].addr == msg[i+1].addr) {
|
|
|
|
/* write to then read from same address */
|
2013-11-02 17:18:09 +07:00
|
|
|
u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE];
|
|
|
|
|
|
|
|
if (3 + msg[i].len > sizeof(obuf)) {
|
|
|
|
warn("i2c wr: len=%d is too big!\n",
|
|
|
|
msg[i].len);
|
2013-11-22 14:55:43 +07:00
|
|
|
ret = -EOPNOTSUPP;
|
|
|
|
goto unlock;
|
2013-11-02 17:18:09 +07:00
|
|
|
}
|
|
|
|
if (1 + msg[i + 1].len > sizeof(ibuf)) {
|
|
|
|
warn("i2c rd: len=%d is too big!\n",
|
|
|
|
msg[i + 1].len);
|
2013-11-22 14:55:43 +07:00
|
|
|
ret = -EOPNOTSUPP;
|
|
|
|
goto unlock;
|
2013-11-02 17:18:09 +07:00
|
|
|
}
|
2005-07-08 07:58:10 +07:00
|
|
|
obuf[0] = msg[i].len;
|
|
|
|
obuf[1] = msg[i+1].len;
|
|
|
|
obuf[2] = msg[i].addr;
|
2006-12-06 00:53:39 +07:00
|
|
|
memcpy(&obuf[3], msg[i].buf, msg[i].len);
|
2005-07-08 07:58:10 +07:00
|
|
|
|
|
|
|
if (cxusb_ctrl_msg(d, CMD_I2C_READ,
|
2006-12-06 00:53:39 +07:00
|
|
|
obuf, 3+msg[i].len,
|
|
|
|
ibuf, 1+msg[i+1].len) < 0)
|
2005-07-08 07:58:10 +07:00
|
|
|
break;
|
|
|
|
|
|
|
|
if (ibuf[0] != 0x08)
|
2006-03-23 11:11:18 +07:00
|
|
|
deb_i2c("i2c read may have failed\n");
|
2005-07-08 07:58:10 +07:00
|
|
|
|
2006-12-06 00:53:39 +07:00
|
|
|
memcpy(msg[i+1].buf, &ibuf[1], msg[i+1].len);
|
2005-07-08 07:58:10 +07:00
|
|
|
|
|
|
|
i++;
|
2007-11-19 13:01:22 +07:00
|
|
|
} else {
|
|
|
|
/* write only */
|
2013-11-02 17:18:09 +07:00
|
|
|
u8 obuf[MAX_XFER_SIZE], ibuf;
|
|
|
|
|
|
|
|
if (2 + msg[i].len > sizeof(obuf)) {
|
|
|
|
warn("i2c wr: len=%d is too big!\n",
|
|
|
|
msg[i].len);
|
2013-11-22 14:55:43 +07:00
|
|
|
ret = -EOPNOTSUPP;
|
|
|
|
goto unlock;
|
2013-11-02 17:18:09 +07:00
|
|
|
}
|
2005-07-08 07:58:10 +07:00
|
|
|
obuf[0] = msg[i].addr;
|
|
|
|
obuf[1] = msg[i].len;
|
2006-12-06 00:53:39 +07:00
|
|
|
memcpy(&obuf[2], msg[i].buf, msg[i].len);
|
2005-07-08 07:58:10 +07:00
|
|
|
|
2006-12-06 00:53:39 +07:00
|
|
|
if (cxusb_ctrl_msg(d, CMD_I2C_WRITE, obuf,
|
|
|
|
2+msg[i].len, &ibuf,1) < 0)
|
2005-07-08 07:58:10 +07:00
|
|
|
break;
|
|
|
|
if (ibuf != 0x08)
|
2006-03-23 11:11:18 +07:00
|
|
|
deb_i2c("i2c write may have failed\n");
|
2005-07-08 07:58:10 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-22 14:55:43 +07:00
|
|
|
if (i == num)
|
|
|
|
ret = num;
|
|
|
|
else
|
|
|
|
ret = -EREMOTEIO;
|
|
|
|
|
|
|
|
unlock:
|
2006-02-07 15:49:14 +07:00
|
|
|
mutex_unlock(&d->i2c_mutex);
|
2013-11-22 14:55:43 +07:00
|
|
|
return ret;
|
2005-07-08 07:58:10 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
static u32 cxusb_i2c_func(struct i2c_adapter *adapter)
|
|
|
|
{
|
|
|
|
return I2C_FUNC_I2C;
|
|
|
|
}
|
|
|
|
|
|
|
|
static struct i2c_algorithm cxusb_i2c_algo = {
|
|
|
|
.master_xfer = cxusb_i2c_xfer,
|
|
|
|
.functionality = cxusb_i2c_func,
|
|
|
|
};
|
|
|
|
|
|
|
|
static int cxusb_power_ctrl(struct dvb_usb_device *d, int onoff)
|
|
|
|
{
|
2005-09-10 03:02:51 +07:00
|
|
|
u8 b = 0;
|
|
|
|
if (onoff)
|
|
|
|
return cxusb_ctrl_msg(d, CMD_POWER_ON, &b, 1, NULL, 0);
|
|
|
|
else
|
|
|
|
return cxusb_ctrl_msg(d, CMD_POWER_OFF, &b, 1, NULL, 0);
|
2005-07-08 07:58:10 +07:00
|
|
|
}
|
|
|
|
|
2008-06-28 15:01:30 +07:00
|
|
|
static int cxusb_aver_power_ctrl(struct dvb_usb_device *d, int onoff)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
if (!onoff)
|
|
|
|
return cxusb_ctrl_msg(d, CMD_POWER_OFF, NULL, 0, NULL, 0);
|
|
|
|
if (d->state == DVB_USB_STATE_INIT &&
|
|
|
|
usb_set_interface(d->udev, 0, 0) < 0)
|
|
|
|
err("set interface failed");
|
2008-09-04 03:11:54 +07:00
|
|
|
do {} while (!(ret = cxusb_ctrl_msg(d, CMD_POWER_ON, NULL, 0, NULL, 0)) &&
|
2008-06-28 15:01:30 +07:00
|
|
|
!(ret = cxusb_ctrl_msg(d, 0x15, NULL, 0, NULL, 0)) &&
|
|
|
|
!(ret = cxusb_ctrl_msg(d, 0x17, NULL, 0, NULL, 0)) && 0);
|
|
|
|
if (!ret) {
|
|
|
|
/* FIXME: We don't know why, but we need to configure the
|
|
|
|
* lgdt3303 with the register settings below on resume */
|
|
|
|
int i;
|
|
|
|
u8 buf, bufs[] = {
|
|
|
|
0x0e, 0x2, 0x00, 0x7f,
|
|
|
|
0x0e, 0x2, 0x02, 0xfe,
|
|
|
|
0x0e, 0x2, 0x02, 0x01,
|
|
|
|
0x0e, 0x2, 0x00, 0x03,
|
|
|
|
0x0e, 0x2, 0x0d, 0x40,
|
|
|
|
0x0e, 0x2, 0x0e, 0x87,
|
|
|
|
0x0e, 0x2, 0x0f, 0x8e,
|
|
|
|
0x0e, 0x2, 0x10, 0x01,
|
|
|
|
0x0e, 0x2, 0x14, 0xd7,
|
|
|
|
0x0e, 0x2, 0x47, 0x88,
|
|
|
|
};
|
|
|
|
msleep(20);
|
|
|
|
for (i = 0; i < sizeof(bufs)/sizeof(u8); i += 4/sizeof(u8)) {
|
|
|
|
ret = cxusb_ctrl_msg(d, CMD_I2C_WRITE,
|
|
|
|
bufs+i, 4, &buf, 1);
|
|
|
|
if (ret)
|
|
|
|
break;
|
|
|
|
if (buf != 0x8)
|
|
|
|
return -EREMOTEIO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2006-04-20 06:40:01 +07:00
|
|
|
static int cxusb_bluebird_power_ctrl(struct dvb_usb_device *d, int onoff)
|
|
|
|
{
|
|
|
|
u8 b = 0;
|
|
|
|
if (onoff)
|
|
|
|
return cxusb_ctrl_msg(d, CMD_POWER_ON, &b, 1, NULL, 0);
|
|
|
|
else
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2007-11-20 11:53:31 +07:00
|
|
|
static int cxusb_nano2_power_ctrl(struct dvb_usb_device *d, int onoff)
|
|
|
|
{
|
|
|
|
int rc = 0;
|
|
|
|
|
|
|
|
rc = cxusb_power_ctrl(d, onoff);
|
|
|
|
if (!onoff)
|
|
|
|
cxusb_nano2_led(d, 0);
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2008-08-09 23:36:51 +07:00
|
|
|
static int cxusb_d680_dmb_power_ctrl(struct dvb_usb_device *d, int onoff)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
u8 b;
|
|
|
|
ret = cxusb_power_ctrl(d, onoff);
|
|
|
|
if (!onoff)
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
msleep(128);
|
|
|
|
cxusb_ctrl_msg(d, CMD_DIGITAL, NULL, 0, &b, 1);
|
|
|
|
msleep(100);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
|
2005-07-08 07:58:10 +07:00
|
|
|
{
|
2005-07-08 07:58:15 +07:00
|
|
|
u8 buf[2] = { 0x03, 0x00 };
|
|
|
|
if (onoff)
|
2006-09-30 16:53:48 +07:00
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_STREAMING_ON, buf, 2, NULL, 0);
|
2005-07-08 07:58:15 +07:00
|
|
|
else
|
2006-09-30 16:53:48 +07:00
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_STREAMING_OFF, NULL, 0, NULL, 0);
|
2005-07-08 07:58:15 +07:00
|
|
|
|
2005-07-08 07:58:10 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-06-28 15:01:30 +07:00
|
|
|
static int cxusb_aver_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
|
|
|
|
{
|
|
|
|
if (onoff)
|
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_AVER_STREAM_ON, NULL, 0, NULL, 0);
|
|
|
|
else
|
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_AVER_STREAM_OFF,
|
|
|
|
NULL, 0, NULL, 0);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-08-09 23:36:51 +07:00
|
|
|
static void cxusb_d680_dmb_drain_message(struct dvb_usb_device *d)
|
|
|
|
{
|
|
|
|
int ep = d->props.generic_bulk_ctrl_endpoint;
|
|
|
|
const int timeout = 100;
|
|
|
|
const int junk_len = 32;
|
|
|
|
u8 *junk;
|
|
|
|
int rd_count;
|
|
|
|
|
|
|
|
/* Discard remaining data in video pipe */
|
|
|
|
junk = kmalloc(junk_len, GFP_KERNEL);
|
|
|
|
if (!junk)
|
|
|
|
return;
|
|
|
|
while (1) {
|
|
|
|
if (usb_bulk_msg(d->udev,
|
|
|
|
usb_rcvbulkpipe(d->udev, ep),
|
|
|
|
junk, junk_len, &rd_count, timeout) < 0)
|
|
|
|
break;
|
|
|
|
if (!rd_count)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
kfree(junk);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void cxusb_d680_dmb_drain_video(struct dvb_usb_device *d)
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
struct usb_data_stream_properties *p = &d->props.adapter[0].fe[0].stream;
|
2008-08-09 23:36:51 +07:00
|
|
|
const int timeout = 100;
|
|
|
|
const int junk_len = p->u.bulk.buffersize;
|
|
|
|
u8 *junk;
|
|
|
|
int rd_count;
|
|
|
|
|
|
|
|
/* Discard remaining data in video pipe */
|
|
|
|
junk = kmalloc(junk_len, GFP_KERNEL);
|
|
|
|
if (!junk)
|
|
|
|
return;
|
|
|
|
while (1) {
|
|
|
|
if (usb_bulk_msg(d->udev,
|
|
|
|
usb_rcvbulkpipe(d->udev, p->endpoint),
|
|
|
|
junk, junk_len, &rd_count, timeout) < 0)
|
|
|
|
break;
|
|
|
|
if (!rd_count)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
kfree(junk);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int cxusb_d680_dmb_streaming_ctrl(
|
|
|
|
struct dvb_usb_adapter *adap, int onoff)
|
|
|
|
{
|
|
|
|
if (onoff) {
|
|
|
|
u8 buf[2] = { 0x03, 0x00 };
|
|
|
|
cxusb_d680_dmb_drain_video(adap->dev);
|
|
|
|
return cxusb_ctrl_msg(adap->dev, CMD_STREAMING_ON,
|
|
|
|
buf, sizeof(buf), NULL, 0);
|
|
|
|
} else {
|
|
|
|
int ret = cxusb_ctrl_msg(adap->dev,
|
|
|
|
CMD_STREAMING_OFF, NULL, 0, NULL, 0);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-01-10 03:21:29 +07:00
|
|
|
static int cxusb_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
|
|
|
|
{
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table;
|
2006-01-10 03:21:31 +07:00
|
|
|
u8 ircode[4];
|
2006-01-10 03:21:29 +07:00
|
|
|
int i;
|
|
|
|
|
2006-01-10 03:21:31 +07:00
|
|
|
cxusb_ctrl_msg(d, CMD_GET_IR_CODE, NULL, 0, ircode, 4);
|
2006-01-10 03:21:29 +07:00
|
|
|
|
|
|
|
*event = 0;
|
|
|
|
*state = REMOTE_NO_KEY_PRESSED;
|
|
|
|
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) {
|
2009-08-30 01:19:31 +07:00
|
|
|
if (rc5_custom(&keymap[i]) == ircode[2] &&
|
|
|
|
rc5_data(&keymap[i]) == ircode[3]) {
|
2010-07-31 21:24:57 +07:00
|
|
|
*event = keymap[i].keycode;
|
2006-01-10 03:21:29 +07:00
|
|
|
*state = REMOTE_KEY_PRESSED;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2007-11-20 07:57:10 +07:00
|
|
|
static int cxusb_bluebird2_rc_query(struct dvb_usb_device *d, u32 *event,
|
|
|
|
int *state)
|
|
|
|
{
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table;
|
2007-11-20 07:57:10 +07:00
|
|
|
u8 ircode[4];
|
|
|
|
int i;
|
|
|
|
struct i2c_msg msg = { .addr = 0x6b, .flags = I2C_M_RD,
|
|
|
|
.buf = ircode, .len = 4 };
|
|
|
|
|
|
|
|
*event = 0;
|
|
|
|
*state = REMOTE_NO_KEY_PRESSED;
|
|
|
|
|
|
|
|
if (cxusb_i2c_xfer(&d->i2c_adap, &msg, 1) != 1)
|
|
|
|
return 0;
|
|
|
|
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) {
|
2009-08-30 01:19:31 +07:00
|
|
|
if (rc5_custom(&keymap[i]) == ircode[1] &&
|
|
|
|
rc5_data(&keymap[i]) == ircode[2]) {
|
2010-07-31 21:24:57 +07:00
|
|
|
*event = keymap[i].keycode;
|
2007-11-20 07:57:10 +07:00
|
|
|
*state = REMOTE_KEY_PRESSED;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-08-09 23:36:51 +07:00
|
|
|
static int cxusb_d680_dmb_rc_query(struct dvb_usb_device *d, u32 *event,
|
|
|
|
int *state)
|
|
|
|
{
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table;
|
2008-08-09 23:36:51 +07:00
|
|
|
u8 ircode[2];
|
|
|
|
int i;
|
|
|
|
|
|
|
|
*event = 0;
|
|
|
|
*state = REMOTE_NO_KEY_PRESSED;
|
|
|
|
|
|
|
|
if (cxusb_ctrl_msg(d, 0x10, NULL, 0, ircode, 2) < 0)
|
|
|
|
return 0;
|
|
|
|
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) {
|
2009-08-30 01:19:31 +07:00
|
|
|
if (rc5_custom(&keymap[i]) == ircode[0] &&
|
|
|
|
rc5_data(&keymap[i]) == ircode[1]) {
|
2010-07-31 21:24:57 +07:00
|
|
|
*event = keymap[i].keycode;
|
2008-08-09 23:36:51 +07:00
|
|
|
*state = REMOTE_KEY_PRESSED;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
static struct rc_map_table rc_map_dvico_mce_table[] = {
|
2009-08-30 01:19:31 +07:00
|
|
|
{ 0xfe02, KEY_TV },
|
|
|
|
{ 0xfe0e, KEY_MP3 },
|
|
|
|
{ 0xfe1a, KEY_DVD },
|
|
|
|
{ 0xfe1e, KEY_FAVORITES },
|
|
|
|
{ 0xfe16, KEY_SETUP },
|
|
|
|
{ 0xfe46, KEY_POWER2 },
|
|
|
|
{ 0xfe0a, KEY_EPG },
|
|
|
|
{ 0xfe49, KEY_BACK },
|
|
|
|
{ 0xfe4d, KEY_MENU },
|
|
|
|
{ 0xfe51, KEY_UP },
|
|
|
|
{ 0xfe5b, KEY_LEFT },
|
|
|
|
{ 0xfe5f, KEY_RIGHT },
|
|
|
|
{ 0xfe53, KEY_DOWN },
|
|
|
|
{ 0xfe5e, KEY_OK },
|
|
|
|
{ 0xfe59, KEY_INFO },
|
|
|
|
{ 0xfe55, KEY_TAB },
|
|
|
|
{ 0xfe0f, KEY_PREVIOUSSONG },/* Replay */
|
|
|
|
{ 0xfe12, KEY_NEXTSONG }, /* Skip */
|
|
|
|
{ 0xfe42, KEY_ENTER }, /* Windows/Start */
|
|
|
|
{ 0xfe15, KEY_VOLUMEUP },
|
|
|
|
{ 0xfe05, KEY_VOLUMEDOWN },
|
|
|
|
{ 0xfe11, KEY_CHANNELUP },
|
|
|
|
{ 0xfe09, KEY_CHANNELDOWN },
|
|
|
|
{ 0xfe52, KEY_CAMERA },
|
|
|
|
{ 0xfe5a, KEY_TUNER }, /* Live */
|
|
|
|
{ 0xfe19, KEY_OPEN },
|
|
|
|
{ 0xfe0b, KEY_1 },
|
|
|
|
{ 0xfe17, KEY_2 },
|
|
|
|
{ 0xfe1b, KEY_3 },
|
|
|
|
{ 0xfe07, KEY_4 },
|
|
|
|
{ 0xfe50, KEY_5 },
|
|
|
|
{ 0xfe54, KEY_6 },
|
|
|
|
{ 0xfe48, KEY_7 },
|
|
|
|
{ 0xfe4c, KEY_8 },
|
|
|
|
{ 0xfe58, KEY_9 },
|
|
|
|
{ 0xfe13, KEY_ANGLE }, /* Aspect */
|
|
|
|
{ 0xfe03, KEY_0 },
|
|
|
|
{ 0xfe1f, KEY_ZOOM },
|
|
|
|
{ 0xfe43, KEY_REWIND },
|
|
|
|
{ 0xfe47, KEY_PLAYPAUSE },
|
|
|
|
{ 0xfe4f, KEY_FASTFORWARD },
|
|
|
|
{ 0xfe57, KEY_MUTE },
|
|
|
|
{ 0xfe0d, KEY_STOP },
|
|
|
|
{ 0xfe01, KEY_RECORD },
|
|
|
|
{ 0xfe4e, KEY_POWER },
|
2006-01-10 03:21:31 +07:00
|
|
|
};
|
|
|
|
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
static struct rc_map_table rc_map_dvico_portable_table[] = {
|
2009-08-30 01:19:31 +07:00
|
|
|
{ 0xfc02, KEY_SETUP }, /* Profile */
|
|
|
|
{ 0xfc43, KEY_POWER2 },
|
|
|
|
{ 0xfc06, KEY_EPG },
|
|
|
|
{ 0xfc5a, KEY_BACK },
|
|
|
|
{ 0xfc05, KEY_MENU },
|
|
|
|
{ 0xfc47, KEY_INFO },
|
|
|
|
{ 0xfc01, KEY_TAB },
|
|
|
|
{ 0xfc42, KEY_PREVIOUSSONG },/* Replay */
|
|
|
|
{ 0xfc49, KEY_VOLUMEUP },
|
|
|
|
{ 0xfc09, KEY_VOLUMEDOWN },
|
|
|
|
{ 0xfc54, KEY_CHANNELUP },
|
|
|
|
{ 0xfc0b, KEY_CHANNELDOWN },
|
|
|
|
{ 0xfc16, KEY_CAMERA },
|
|
|
|
{ 0xfc40, KEY_TUNER }, /* ATV/DTV */
|
|
|
|
{ 0xfc45, KEY_OPEN },
|
|
|
|
{ 0xfc19, KEY_1 },
|
|
|
|
{ 0xfc18, KEY_2 },
|
|
|
|
{ 0xfc1b, KEY_3 },
|
|
|
|
{ 0xfc1a, KEY_4 },
|
|
|
|
{ 0xfc58, KEY_5 },
|
|
|
|
{ 0xfc59, KEY_6 },
|
|
|
|
{ 0xfc15, KEY_7 },
|
|
|
|
{ 0xfc14, KEY_8 },
|
|
|
|
{ 0xfc17, KEY_9 },
|
|
|
|
{ 0xfc44, KEY_ANGLE }, /* Aspect */
|
|
|
|
{ 0xfc55, KEY_0 },
|
|
|
|
{ 0xfc07, KEY_ZOOM },
|
|
|
|
{ 0xfc0a, KEY_REWIND },
|
|
|
|
{ 0xfc08, KEY_PLAYPAUSE },
|
|
|
|
{ 0xfc4b, KEY_FASTFORWARD },
|
|
|
|
{ 0xfc5b, KEY_MUTE },
|
|
|
|
{ 0xfc04, KEY_STOP },
|
|
|
|
{ 0xfc56, KEY_RECORD },
|
|
|
|
{ 0xfc57, KEY_POWER },
|
|
|
|
{ 0xfc41, KEY_UNKNOWN }, /* INPUT */
|
|
|
|
{ 0xfc00, KEY_UNKNOWN }, /* HD */
|
2006-03-26 15:43:36 +07:00
|
|
|
};
|
|
|
|
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
static struct rc_map_table rc_map_d680_dmb_table[] = {
|
2009-08-30 01:19:31 +07:00
|
|
|
{ 0x0038, KEY_UNKNOWN }, /* TV/AV */
|
|
|
|
{ 0x080c, KEY_ZOOM },
|
|
|
|
{ 0x0800, KEY_0 },
|
|
|
|
{ 0x0001, KEY_1 },
|
|
|
|
{ 0x0802, KEY_2 },
|
|
|
|
{ 0x0003, KEY_3 },
|
|
|
|
{ 0x0804, KEY_4 },
|
|
|
|
{ 0x0005, KEY_5 },
|
|
|
|
{ 0x0806, KEY_6 },
|
|
|
|
{ 0x0007, KEY_7 },
|
|
|
|
{ 0x0808, KEY_8 },
|
|
|
|
{ 0x0009, KEY_9 },
|
|
|
|
{ 0x000a, KEY_MUTE },
|
|
|
|
{ 0x0829, KEY_BACK },
|
|
|
|
{ 0x0012, KEY_CHANNELUP },
|
|
|
|
{ 0x0813, KEY_CHANNELDOWN },
|
|
|
|
{ 0x002b, KEY_VOLUMEUP },
|
|
|
|
{ 0x082c, KEY_VOLUMEDOWN },
|
|
|
|
{ 0x0020, KEY_UP },
|
|
|
|
{ 0x0821, KEY_DOWN },
|
|
|
|
{ 0x0011, KEY_LEFT },
|
|
|
|
{ 0x0810, KEY_RIGHT },
|
|
|
|
{ 0x000d, KEY_OK },
|
|
|
|
{ 0x081f, KEY_RECORD },
|
|
|
|
{ 0x0017, KEY_PLAYPAUSE },
|
|
|
|
{ 0x0816, KEY_PLAYPAUSE },
|
|
|
|
{ 0x000b, KEY_STOP },
|
|
|
|
{ 0x0827, KEY_FASTFORWARD },
|
|
|
|
{ 0x0026, KEY_REWIND },
|
|
|
|
{ 0x081e, KEY_UNKNOWN }, /* Time Shift */
|
|
|
|
{ 0x000e, KEY_UNKNOWN }, /* Snapshot */
|
|
|
|
{ 0x082d, KEY_UNKNOWN }, /* Mouse Cursor */
|
|
|
|
{ 0x000f, KEY_UNKNOWN }, /* Minimize/Maximize */
|
|
|
|
{ 0x0814, KEY_UNKNOWN }, /* Shuffle */
|
|
|
|
{ 0x0025, KEY_POWER },
|
2008-08-09 23:36:51 +07:00
|
|
|
};
|
|
|
|
|
2006-01-10 03:21:28 +07:00
|
|
|
static int cxusb_dee1601_demod_init(struct dvb_frontend* fe)
|
|
|
|
{
|
2006-02-07 15:49:11 +07:00
|
|
|
static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x28 };
|
2006-01-10 03:21:28 +07:00
|
|
|
static u8 reset [] = { RESET, 0x80 };
|
|
|
|
static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 };
|
|
|
|
static u8 agc_cfg [] = { AGC_TARGET, 0x28, 0x20 };
|
|
|
|
static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x33 };
|
|
|
|
static u8 capt_range_cfg[] = { CAPT_RANGE, 0x32 };
|
|
|
|
|
|
|
|
mt352_write(fe, clock_config, sizeof(clock_config));
|
|
|
|
udelay(200);
|
|
|
|
mt352_write(fe, reset, sizeof(reset));
|
|
|
|
mt352_write(fe, adc_ctl_1_cfg, sizeof(adc_ctl_1_cfg));
|
|
|
|
|
|
|
|
mt352_write(fe, agc_cfg, sizeof(agc_cfg));
|
|
|
|
mt352_write(fe, gpp_ctl_cfg, sizeof(gpp_ctl_cfg));
|
|
|
|
mt352_write(fe, capt_range_cfg, sizeof(capt_range_cfg));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-01-12 04:40:33 +07:00
|
|
|
static int cxusb_mt352_demod_init(struct dvb_frontend* fe)
|
|
|
|
{ /* used in both lgz201 and th7579 */
|
2006-02-07 15:49:12 +07:00
|
|
|
static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x29 };
|
2006-01-12 04:40:33 +07:00
|
|
|
static u8 reset [] = { RESET, 0x80 };
|
|
|
|
static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 };
|
|
|
|
static u8 agc_cfg [] = { AGC_TARGET, 0x24, 0x20 };
|
|
|
|
static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x33 };
|
|
|
|
static u8 capt_range_cfg[] = { CAPT_RANGE, 0x32 };
|
|
|
|
|
|
|
|
mt352_write(fe, clock_config, sizeof(clock_config));
|
|
|
|
udelay(200);
|
|
|
|
mt352_write(fe, reset, sizeof(reset));
|
|
|
|
mt352_write(fe, adc_ctl_1_cfg, sizeof(adc_ctl_1_cfg));
|
|
|
|
|
|
|
|
mt352_write(fe, agc_cfg, sizeof(agc_cfg));
|
|
|
|
mt352_write(fe, gpp_ctl_cfg, sizeof(gpp_ctl_cfg));
|
|
|
|
mt352_write(fe, capt_range_cfg, sizeof(capt_range_cfg));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-01-24 02:11:09 +07:00
|
|
|
static struct cx22702_config cxusb_cx22702_config = {
|
2005-07-08 07:58:10 +07:00
|
|
|
.demod_address = 0x63,
|
2005-07-08 07:58:15 +07:00
|
|
|
.output_mode = CX22702_PARALLEL_OUTPUT,
|
2005-07-08 07:58:10 +07:00
|
|
|
};
|
|
|
|
|
2006-02-27 10:08:17 +07:00
|
|
|
static struct lgdt330x_config cxusb_lgdt3303_config = {
|
2006-01-10 00:25:47 +07:00
|
|
|
.demod_address = 0x0e,
|
|
|
|
.demod_chip = LGDT3303,
|
|
|
|
};
|
|
|
|
|
2008-06-28 15:01:30 +07:00
|
|
|
static struct lgdt330x_config cxusb_aver_lgdt3303_config = {
|
|
|
|
.demod_address = 0x0e,
|
|
|
|
.demod_chip = LGDT3303,
|
|
|
|
.clock_polarity_flip = 2,
|
|
|
|
};
|
|
|
|
|
2006-01-24 02:11:09 +07:00
|
|
|
static struct mt352_config cxusb_dee1601_config = {
|
2006-01-10 03:21:28 +07:00
|
|
|
.demod_address = 0x0f,
|
|
|
|
.demod_init = cxusb_dee1601_demod_init,
|
|
|
|
};
|
|
|
|
|
2006-06-11 14:24:31 +07:00
|
|
|
static struct zl10353_config cxusb_zl10353_dee1601_config = {
|
|
|
|
.demod_address = 0x0f,
|
2006-08-10 13:17:16 +07:00
|
|
|
.parallel_ts = 1,
|
2006-06-11 14:24:31 +07:00
|
|
|
};
|
|
|
|
|
2006-04-20 06:49:28 +07:00
|
|
|
static struct mt352_config cxusb_mt352_config = {
|
2006-01-12 04:40:33 +07:00
|
|
|
/* used in both lgz201 and th7579 */
|
|
|
|
.demod_address = 0x0f,
|
|
|
|
.demod_init = cxusb_mt352_demod_init,
|
|
|
|
};
|
|
|
|
|
2007-11-20 07:57:10 +07:00
|
|
|
static struct zl10353_config cxusb_zl10353_xc3028_config = {
|
|
|
|
.demod_address = 0x0f,
|
2007-11-20 18:17:54 +07:00
|
|
|
.if2 = 45600,
|
2007-11-20 07:57:10 +07:00
|
|
|
.no_tuner = 1,
|
|
|
|
.parallel_ts = 1,
|
|
|
|
};
|
|
|
|
|
2009-11-08 10:00:11 +07:00
|
|
|
static struct zl10353_config cxusb_zl10353_xc3028_config_no_i2c_gate = {
|
|
|
|
.demod_address = 0x0f,
|
|
|
|
.if2 = 45600,
|
|
|
|
.no_tuner = 1,
|
|
|
|
.parallel_ts = 1,
|
|
|
|
.disable_i2c_gate_ctrl = 1,
|
|
|
|
};
|
|
|
|
|
2007-11-20 13:34:11 +07:00
|
|
|
static struct mt352_config cxusb_mt352_xc3028_config = {
|
|
|
|
.demod_address = 0x0f,
|
|
|
|
.if2 = 4560,
|
|
|
|
.no_tuner = 1,
|
|
|
|
.demod_init = cxusb_mt352_demod_init,
|
|
|
|
};
|
|
|
|
|
2008-06-28 15:01:30 +07:00
|
|
|
/* FIXME: needs tweaking */
|
|
|
|
static struct mxl5005s_config aver_a868r_tuner = {
|
|
|
|
.i2c_address = 0x63,
|
|
|
|
.if_freq = 6000000UL,
|
|
|
|
.xtal_freq = CRYSTAL_FREQ_16000000HZ,
|
|
|
|
.agc_mode = MXL_SINGLE_AGC,
|
|
|
|
.tracking_filter = MXL_TF_C,
|
|
|
|
.rssi_enable = MXL_RSSI_ENABLE,
|
|
|
|
.cap_select = MXL_CAP_SEL_ENABLE,
|
|
|
|
.div_out = MXL_DIV_OUT_4,
|
|
|
|
.clock_out = MXL_CLOCK_OUT_DISABLE,
|
|
|
|
.output_load = MXL5005S_IF_OUTPUT_LOAD_200_OHM,
|
|
|
|
.top = MXL5005S_TOP_25P2,
|
|
|
|
.mod_mode = MXL_DIGITAL_MODE,
|
|
|
|
.if_mode = MXL_ZERO_IF,
|
|
|
|
.AgcMasterByte = 0x00,
|
|
|
|
};
|
|
|
|
|
2008-08-09 23:36:51 +07:00
|
|
|
/* FIXME: needs tweaking */
|
|
|
|
static struct mxl5005s_config d680_dmb_tuner = {
|
|
|
|
.i2c_address = 0x63,
|
|
|
|
.if_freq = 36125000UL,
|
|
|
|
.xtal_freq = CRYSTAL_FREQ_16000000HZ,
|
|
|
|
.agc_mode = MXL_SINGLE_AGC,
|
|
|
|
.tracking_filter = MXL_TF_C,
|
|
|
|
.rssi_enable = MXL_RSSI_ENABLE,
|
|
|
|
.cap_select = MXL_CAP_SEL_ENABLE,
|
|
|
|
.div_out = MXL_DIV_OUT_4,
|
|
|
|
.clock_out = MXL_CLOCK_OUT_DISABLE,
|
|
|
|
.output_load = MXL5005S_IF_OUTPUT_LOAD_200_OHM,
|
|
|
|
.top = MXL5005S_TOP_25P2,
|
|
|
|
.mod_mode = MXL_DIGITAL_MODE,
|
|
|
|
.if_mode = MXL_ZERO_IF,
|
|
|
|
.AgcMasterByte = 0x00,
|
|
|
|
};
|
|
|
|
|
2009-10-26 19:41:22 +07:00
|
|
|
static struct max2165_config mygica_d689_max2165_cfg = {
|
|
|
|
.i2c_address = 0x60,
|
|
|
|
.osc_clk = 20
|
|
|
|
};
|
|
|
|
|
2005-07-08 07:58:10 +07:00
|
|
|
/* Callbacks for DVB USB */
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_fmd1216me_tuner_attach(struct dvb_usb_adapter *adap)
|
2005-07-08 07:58:10 +07:00
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
dvb_attach(simple_tuner_attach, adap->fe_adap[0].fe,
|
2008-04-23 00:46:16 +07:00
|
|
|
&adap->dev->i2c_adap, 0x61,
|
|
|
|
TUNER_PHILIPS_FMD1216ME_MK3);
|
2005-07-08 07:58:10 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_dee1601_tuner_attach(struct dvb_usb_adapter *adap)
|
2006-01-10 03:21:28 +07:00
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
dvb_attach(dvb_pll_attach, adap->fe_adap[0].fe, 0x61,
|
2007-06-13 02:10:51 +07:00
|
|
|
NULL, DVB_PLL_THOMSON_DTT7579);
|
2006-01-10 03:21:28 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_lgz201_tuner_attach(struct dvb_usb_adapter *adap)
|
2006-01-12 04:40:33 +07:00
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
dvb_attach(dvb_pll_attach, adap->fe_adap[0].fe, 0x61, NULL, DVB_PLL_LG_Z201);
|
2006-01-12 04:40:33 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_dtt7579_tuner_attach(struct dvb_usb_adapter *adap)
|
2006-01-12 04:40:33 +07:00
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
dvb_attach(dvb_pll_attach, adap->fe_adap[0].fe, 0x60,
|
2007-06-13 02:10:51 +07:00
|
|
|
NULL, DVB_PLL_THOMSON_DTT7579);
|
2006-05-14 14:49:00 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-10-14 07:55:57 +07:00
|
|
|
static int cxusb_lgh064f_tuner_attach(struct dvb_usb_adapter *adap)
|
2006-05-14 14:49:00 +07:00
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
dvb_attach(simple_tuner_attach, adap->fe_adap[0].fe,
|
2008-04-23 00:46:16 +07:00
|
|
|
&adap->dev->i2c_adap, 0x61, TUNER_LG_TDVS_H06XF);
|
2006-01-12 04:40:33 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-09-12 23:31:45 +07:00
|
|
|
static int dvico_bluebird_xc2028_callback(void *ptr, int component,
|
|
|
|
int command, int arg)
|
2007-11-20 07:57:10 +07:00
|
|
|
{
|
2008-07-31 05:43:11 +07:00
|
|
|
struct dvb_usb_adapter *adap = ptr;
|
|
|
|
struct dvb_usb_device *d = adap->dev;
|
2007-11-20 07:57:10 +07:00
|
|
|
|
|
|
|
switch (command) {
|
|
|
|
case XC2028_TUNER_RESET:
|
2008-04-09 09:20:00 +07:00
|
|
|
deb_info("%s: XC2028_TUNER_RESET %d\n", __func__, arg);
|
2007-11-20 07:57:10 +07:00
|
|
|
cxusb_bluebird_gpio_pulse(d, 0x01, 1);
|
|
|
|
break;
|
|
|
|
case XC2028_RESET_CLK:
|
2008-04-09 09:20:00 +07:00
|
|
|
deb_info("%s: XC2028_RESET_CLK %d\n", __func__, arg);
|
2007-11-20 07:57:10 +07:00
|
|
|
break;
|
|
|
|
default:
|
2008-04-09 09:20:00 +07:00
|
|
|
deb_info("%s: unknown command %d, arg %d\n", __func__,
|
2007-11-20 07:57:10 +07:00
|
|
|
command, arg);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int cxusb_dvico_xc3028_tuner_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
struct dvb_frontend *fe;
|
|
|
|
struct xc2028_config cfg = {
|
|
|
|
.i2c_adap = &adap->dev->i2c_adap,
|
|
|
|
.i2c_addr = 0x61,
|
|
|
|
};
|
|
|
|
static struct xc2028_ctrl ctl = {
|
2008-09-16 12:15:30 +07:00
|
|
|
.fname = XC2028_DEFAULT_FIRMWARE,
|
2007-11-20 07:57:10 +07:00
|
|
|
.max_len = 64,
|
2008-07-31 05:43:11 +07:00
|
|
|
.demod = XC3028_FE_ZARLINK456,
|
2007-11-20 07:57:10 +07:00
|
|
|
};
|
|
|
|
|
2008-09-12 23:31:45 +07:00
|
|
|
/* FIXME: generalize & move to common area */
|
2011-09-06 19:31:57 +07:00
|
|
|
adap->fe_adap[0].fe->callback = dvico_bluebird_xc2028_callback;
|
2008-09-12 23:31:45 +07:00
|
|
|
|
2011-09-06 19:31:57 +07:00
|
|
|
fe = dvb_attach(xc2028_attach, adap->fe_adap[0].fe, &cfg);
|
2007-11-20 07:57:10 +07:00
|
|
|
if (fe == NULL || fe->ops.tuner_ops.set_config == NULL)
|
|
|
|
return -EIO;
|
|
|
|
|
|
|
|
fe->ops.tuner_ops.set_config(fe, &ctl);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-06-28 15:01:30 +07:00
|
|
|
static int cxusb_mxl5003s_tuner_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
dvb_attach(mxl5005s_attach, adap->fe_adap[0].fe,
|
2008-06-28 15:01:30 +07:00
|
|
|
&adap->dev->i2c_adap, &aver_a868r_tuner);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-08-09 23:36:51 +07:00
|
|
|
static int cxusb_d680_dmb_tuner_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
struct dvb_frontend *fe;
|
2011-09-06 19:31:57 +07:00
|
|
|
fe = dvb_attach(mxl5005s_attach, adap->fe_adap[0].fe,
|
2008-08-09 23:36:51 +07:00
|
|
|
&adap->dev->i2c_adap, &d680_dmb_tuner);
|
|
|
|
return (fe == NULL) ? -EIO : 0;
|
|
|
|
}
|
|
|
|
|
2009-10-26 19:41:22 +07:00
|
|
|
static int cxusb_mygica_d689_tuner_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
struct dvb_frontend *fe;
|
2011-09-06 19:31:57 +07:00
|
|
|
fe = dvb_attach(max2165_attach, adap->fe_adap[0].fe,
|
2009-10-26 19:41:22 +07:00
|
|
|
&adap->dev->i2c_adap, &mygica_d689_max2165_cfg);
|
|
|
|
return (fe == NULL) ? -EIO : 0;
|
|
|
|
}
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_cx22702_frontend_attach(struct dvb_usb_adapter *adap)
|
2005-07-08 07:58:10 +07:00
|
|
|
{
|
2005-09-10 03:02:51 +07:00
|
|
|
u8 b;
|
2006-09-30 16:53:48 +07:00
|
|
|
if (usb_set_interface(adap->dev->udev, 0, 6) < 0)
|
2005-07-08 07:58:15 +07:00
|
|
|
err("set interface failed");
|
2005-07-08 07:58:10 +07:00
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_DIGITAL, NULL, 0, &b, 1);
|
2005-07-08 07:58:10 +07:00
|
|
|
|
2011-09-18 00:22:59 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(cx22702_attach, &cxusb_cx22702_config,
|
|
|
|
&adap->dev->i2c_adap);
|
|
|
|
if ((adap->fe_adap[0].fe) != NULL)
|
2005-07-08 07:58:10 +07:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_lgdt3303_frontend_attach(struct dvb_usb_adapter *adap)
|
2006-01-10 00:25:47 +07:00
|
|
|
{
|
2006-09-30 16:53:48 +07:00
|
|
|
if (usb_set_interface(adap->dev->udev, 0, 7) < 0)
|
2006-01-10 00:25:47 +07:00
|
|
|
err("set interface failed");
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_DIGITAL, NULL, 0, NULL, 0);
|
2006-01-10 00:25:47 +07:00
|
|
|
|
2011-09-18 00:22:59 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(lgdt330x_attach,
|
|
|
|
&cxusb_lgdt3303_config,
|
|
|
|
&adap->dev->i2c_adap);
|
|
|
|
if ((adap->fe_adap[0].fe) != NULL)
|
2006-01-10 00:25:47 +07:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
|
2008-06-28 15:01:30 +07:00
|
|
|
static int cxusb_aver_lgdt3303_frontend_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(lgdt330x_attach, &cxusb_aver_lgdt3303_config,
|
2008-06-28 15:01:30 +07:00
|
|
|
&adap->dev->i2c_adap);
|
2011-09-06 19:31:57 +07:00
|
|
|
if (adap->fe_adap[0].fe != NULL)
|
2008-06-28 15:01:30 +07:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_mt352_frontend_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
/* used in both lgz201 and th7579 */
|
|
|
|
if (usb_set_interface(adap->dev->udev, 0, 0) < 0)
|
2006-01-12 04:40:33 +07:00
|
|
|
err("set interface failed");
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_DIGITAL, NULL, 0, NULL, 0);
|
2006-01-12 04:40:33 +07:00
|
|
|
|
2011-09-18 00:22:59 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(mt352_attach, &cxusb_mt352_config,
|
|
|
|
&adap->dev->i2c_adap);
|
|
|
|
if ((adap->fe_adap[0].fe) != NULL)
|
2006-01-12 04:40:33 +07:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static int cxusb_dee1601_frontend_attach(struct dvb_usb_adapter *adap)
|
2006-01-10 03:21:28 +07:00
|
|
|
{
|
2006-09-30 16:53:48 +07:00
|
|
|
if (usb_set_interface(adap->dev->udev, 0, 0) < 0)
|
2006-01-10 03:21:28 +07:00
|
|
|
err("set interface failed");
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_DIGITAL, NULL, 0, NULL, 0);
|
2006-01-10 03:21:28 +07:00
|
|
|
|
2011-09-18 00:22:59 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(mt352_attach, &cxusb_dee1601_config,
|
|
|
|
&adap->dev->i2c_adap);
|
|
|
|
if ((adap->fe_adap[0].fe) != NULL)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
adap->fe_adap[0].fe = dvb_attach(zl10353_attach,
|
|
|
|
&cxusb_zl10353_dee1601_config,
|
|
|
|
&adap->dev->i2c_adap);
|
|
|
|
if ((adap->fe_adap[0].fe) != NULL)
|
2006-01-10 03:21:28 +07:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
|
2007-11-20 07:57:10 +07:00
|
|
|
static int cxusb_dualdig4_frontend_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
u8 ircode[4];
|
|
|
|
int i;
|
|
|
|
struct i2c_msg msg = { .addr = 0x6b, .flags = I2C_M_RD,
|
|
|
|
.buf = ircode, .len = 4 };
|
|
|
|
|
|
|
|
if (usb_set_interface(adap->dev->udev, 0, 1) < 0)
|
|
|
|
err("set interface failed");
|
|
|
|
|
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_DIGITAL, NULL, 0, NULL, 0);
|
|
|
|
|
|
|
|
/* reset the tuner and demodulator */
|
|
|
|
cxusb_bluebird_gpio_rw(adap->dev, 0x04, 0);
|
|
|
|
cxusb_bluebird_gpio_pulse(adap->dev, 0x01, 1);
|
|
|
|
cxusb_bluebird_gpio_pulse(adap->dev, 0x02, 1);
|
|
|
|
|
2011-09-18 00:22:59 +07:00
|
|
|
adap->fe_adap[0].fe =
|
|
|
|
dvb_attach(zl10353_attach,
|
|
|
|
&cxusb_zl10353_xc3028_config_no_i2c_gate,
|
|
|
|
&adap->dev->i2c_adap);
|
|
|
|
if ((adap->fe_adap[0].fe) == NULL)
|
2007-11-20 07:57:10 +07:00
|
|
|
return -EIO;
|
|
|
|
|
|
|
|
/* try to determine if there is no IR decoder on the I2C bus */
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
for (i = 0; adap->dev->props.rc.legacy.rc_map_table != NULL && i < 5; i++) {
|
2007-11-20 07:57:10 +07:00
|
|
|
msleep(20);
|
|
|
|
if (cxusb_i2c_xfer(&adap->dev->i2c_adap, &msg, 1) != 1)
|
|
|
|
goto no_IR;
|
|
|
|
if (ircode[0] == 0 && ircode[1] == 0)
|
|
|
|
continue;
|
|
|
|
if (ircode[2] + ircode[3] != 0xff) {
|
|
|
|
no_IR:
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
adap->dev->props.rc.legacy.rc_map_table = NULL;
|
2007-11-20 07:57:10 +07:00
|
|
|
info("No IR receiver detected on this device.");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-08-09 22:23:15 +07:00
|
|
|
static struct dibx000_agc_config dib7070_agc_config = {
|
|
|
|
.band_caps = BAND_UHF | BAND_VHF | BAND_LBAND | BAND_SBAND,
|
|
|
|
|
|
|
|
/*
|
|
|
|
* P_agc_use_sd_mod1=0, P_agc_use_sd_mod2=0, P_agc_freq_pwm_div=5,
|
|
|
|
* P_agc_inv_pwm1=0, P_agc_inv_pwm2=0, P_agc_inh_dc_rv_est=0,
|
|
|
|
* P_agc_time_est=3, P_agc_freeze=0, P_agc_nb_est=5, P_agc_write=0
|
|
|
|
*/
|
|
|
|
.setup = (0 << 15) | (0 << 14) | (5 << 11) | (0 << 10) | (0 << 9) |
|
|
|
|
(0 << 8) | (3 << 5) | (0 << 4) | (5 << 1) | (0 << 0),
|
|
|
|
.inv_gain = 600,
|
|
|
|
.time_stabiliz = 10,
|
|
|
|
.alpha_level = 0,
|
|
|
|
.thlock = 118,
|
|
|
|
.wbd_inv = 0,
|
|
|
|
.wbd_ref = 3530,
|
|
|
|
.wbd_sel = 1,
|
|
|
|
.wbd_alpha = 5,
|
|
|
|
.agc1_max = 65535,
|
|
|
|
.agc1_min = 0,
|
|
|
|
.agc2_max = 65535,
|
|
|
|
.agc2_min = 0,
|
|
|
|
.agc1_pt1 = 0,
|
|
|
|
.agc1_pt2 = 40,
|
|
|
|
.agc1_pt3 = 183,
|
|
|
|
.agc1_slope1 = 206,
|
|
|
|
.agc1_slope2 = 255,
|
|
|
|
.agc2_pt1 = 72,
|
|
|
|
.agc2_pt2 = 152,
|
|
|
|
.agc2_slope1 = 88,
|
|
|
|
.agc2_slope2 = 90,
|
|
|
|
.alpha_mant = 17,
|
|
|
|
.alpha_exp = 27,
|
|
|
|
.beta_mant = 23,
|
|
|
|
.beta_exp = 51,
|
|
|
|
.perform_agc_softsplit = 0,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct dibx000_bandwidth_config dib7070_bw_config_12_mhz = {
|
|
|
|
.internal = 60000,
|
|
|
|
.sampling = 15000,
|
|
|
|
.pll_prediv = 1,
|
|
|
|
.pll_ratio = 20,
|
|
|
|
.pll_range = 3,
|
|
|
|
.pll_reset = 1,
|
|
|
|
.pll_bypass = 0,
|
|
|
|
.enable_refdiv = 0,
|
|
|
|
.bypclk_div = 0,
|
|
|
|
.IO_CLK_en_core = 1,
|
|
|
|
.ADClkSrc = 1,
|
|
|
|
.modulo = 2,
|
|
|
|
/* refsel, sel, freq_15k */
|
|
|
|
.sad_cfg = (3 << 14) | (1 << 12) | (524 << 0),
|
|
|
|
.ifreq = (0 << 25) | 0,
|
|
|
|
.timf = 20452225,
|
|
|
|
.xtal_hz = 12000000,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct dib7000p_config cxusb_dualdig4_rev2_config = {
|
|
|
|
.output_mode = OUTMODE_MPEG2_PAR_GATED_CLK,
|
|
|
|
.output_mpeg2_in_188_bytes = 1,
|
|
|
|
|
|
|
|
.agc_config_count = 1,
|
|
|
|
.agc = &dib7070_agc_config,
|
|
|
|
.bw = &dib7070_bw_config_12_mhz,
|
|
|
|
.tuner_is_baseband = 1,
|
|
|
|
.spur_protect = 1,
|
|
|
|
|
|
|
|
.gpio_dir = 0xfcef,
|
|
|
|
.gpio_val = 0x0110,
|
|
|
|
|
|
|
|
.gpio_pwm_pos = DIB7000P_GPIO_DEFAULT_PWM_POS,
|
|
|
|
|
|
|
|
.hostbus_diversity = 1,
|
|
|
|
};
|
|
|
|
|
2014-05-29 19:20:15 +07:00
|
|
|
struct dib0700_adapter_state {
|
|
|
|
int (*set_param_save)(struct dvb_frontend *);
|
|
|
|
struct dib7000p_ops dib7000p_ops;
|
|
|
|
};
|
|
|
|
|
2008-08-09 22:23:15 +07:00
|
|
|
static int cxusb_dualdig4_rev2_frontend_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
2014-05-29 19:20:15 +07:00
|
|
|
struct dib0700_adapter_state *state = adap->priv;
|
|
|
|
|
2008-08-09 22:23:15 +07:00
|
|
|
if (usb_set_interface(adap->dev->udev, 0, 1) < 0)
|
|
|
|
err("set interface failed");
|
|
|
|
|
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_DIGITAL, NULL, 0, NULL, 0);
|
|
|
|
|
|
|
|
cxusb_bluebird_gpio_pulse(adap->dev, 0x02, 1);
|
|
|
|
|
2014-05-29 19:20:15 +07:00
|
|
|
if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops))
|
|
|
|
return -ENODEV;
|
|
|
|
|
|
|
|
if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18,
|
|
|
|
&cxusb_dualdig4_rev2_config) < 0) {
|
2010-05-13 05:30:02 +07:00
|
|
|
printk(KERN_WARNING "Unable to enumerate dib7000p\n");
|
2010-02-09 06:30:44 +07:00
|
|
|
return -ENODEV;
|
2010-05-13 05:30:02 +07:00
|
|
|
}
|
2008-08-09 22:23:15 +07:00
|
|
|
|
2014-05-29 19:20:15 +07:00
|
|
|
adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x80,
|
|
|
|
&cxusb_dualdig4_rev2_config);
|
2011-09-06 19:31:57 +07:00
|
|
|
if (adap->fe_adap[0].fe == NULL)
|
2008-08-09 22:23:15 +07:00
|
|
|
return -EIO;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int dib7070_tuner_reset(struct dvb_frontend *fe, int onoff)
|
|
|
|
{
|
2014-05-29 19:20:15 +07:00
|
|
|
struct dvb_usb_adapter *adap = fe->dvb->priv;
|
|
|
|
struct dib0700_adapter_state *state = adap->priv;
|
|
|
|
|
|
|
|
return state->dib7000p_ops.set_gpio(fe, 8, 0, !onoff);
|
2008-08-09 22:23:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
static int dib7070_tuner_sleep(struct dvb_frontend *fe, int onoff)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static struct dib0070_config dib7070p_dib0070_config = {
|
|
|
|
.i2c_address = DEFAULT_DIB0070_I2C_ADDRESS,
|
|
|
|
.reset = dib7070_tuner_reset,
|
|
|
|
.sleep = dib7070_tuner_sleep,
|
|
|
|
.clock_khz = 12000,
|
|
|
|
};
|
|
|
|
|
2011-12-24 22:24:33 +07:00
|
|
|
static int dib7070_set_param_override(struct dvb_frontend *fe)
|
2008-08-09 22:23:15 +07:00
|
|
|
{
|
2011-12-24 20:17:30 +07:00
|
|
|
struct dtv_frontend_properties *p = &fe->dtv_property_cache;
|
2008-08-09 22:23:15 +07:00
|
|
|
struct dvb_usb_adapter *adap = fe->dvb->priv;
|
|
|
|
struct dib0700_adapter_state *state = adap->priv;
|
|
|
|
|
|
|
|
u16 offset;
|
2011-12-24 20:17:30 +07:00
|
|
|
u8 band = BAND_OF_FREQUENCY(p->frequency/1000);
|
2008-08-09 22:23:15 +07:00
|
|
|
switch (band) {
|
2008-08-09 23:06:26 +07:00
|
|
|
case BAND_VHF: offset = 950; break;
|
|
|
|
default:
|
|
|
|
case BAND_UHF: offset = 550; break;
|
2008-08-09 22:23:15 +07:00
|
|
|
}
|
|
|
|
|
2014-05-29 19:20:15 +07:00
|
|
|
state->dib7000p_ops.set_wbd_ref(fe, offset + dib0070_wbd_offset(fe));
|
2008-08-09 22:23:15 +07:00
|
|
|
|
2011-12-24 22:24:33 +07:00
|
|
|
return state->set_param_save(fe);
|
2008-08-09 22:23:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
static int cxusb_dualdig4_rev2_tuner_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
struct dib0700_adapter_state *st = adap->priv;
|
2014-05-29 19:20:15 +07:00
|
|
|
struct i2c_adapter *tun_i2c;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* No need to call dvb7000p_attach here, as it was called
|
|
|
|
* already, as frontend_attach method is called first, and
|
|
|
|
* tuner_attach is only called on sucess.
|
|
|
|
*/
|
|
|
|
tun_i2c = st->dib7000p_ops.get_i2c_master(adap->fe_adap[0].fe,
|
2008-08-09 23:06:26 +07:00
|
|
|
DIBX000_I2C_INTERFACE_TUNER, 1);
|
2008-08-09 22:23:15 +07:00
|
|
|
|
2011-09-06 19:31:57 +07:00
|
|
|
if (dvb_attach(dib0070_attach, adap->fe_adap[0].fe, tun_i2c,
|
2008-08-09 22:23:15 +07:00
|
|
|
&dib7070p_dib0070_config) == NULL)
|
|
|
|
return -ENODEV;
|
|
|
|
|
2011-09-06 19:31:57 +07:00
|
|
|
st->set_param_save = adap->fe_adap[0].fe->ops.tuner_ops.set_params;
|
|
|
|
adap->fe_adap[0].fe->ops.tuner_ops.set_params = dib7070_set_param_override;
|
2008-08-09 22:23:15 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2007-11-20 11:53:31 +07:00
|
|
|
static int cxusb_nano2_frontend_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
if (usb_set_interface(adap->dev->udev, 0, 1) < 0)
|
|
|
|
err("set interface failed");
|
|
|
|
|
|
|
|
cxusb_ctrl_msg(adap->dev, CMD_DIGITAL, NULL, 0, NULL, 0);
|
|
|
|
|
|
|
|
/* reset the tuner and demodulator */
|
|
|
|
cxusb_bluebird_gpio_rw(adap->dev, 0x04, 0);
|
|
|
|
cxusb_bluebird_gpio_pulse(adap->dev, 0x01, 1);
|
|
|
|
cxusb_bluebird_gpio_pulse(adap->dev, 0x02, 1);
|
|
|
|
|
2011-09-18 00:22:59 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(zl10353_attach,
|
|
|
|
&cxusb_zl10353_xc3028_config,
|
|
|
|
&adap->dev->i2c_adap);
|
|
|
|
if ((adap->fe_adap[0].fe) != NULL)
|
2007-11-20 11:53:31 +07:00
|
|
|
return 0;
|
|
|
|
|
2011-09-18 00:22:59 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(mt352_attach,
|
|
|
|
&cxusb_mt352_xc3028_config,
|
|
|
|
&adap->dev->i2c_adap);
|
|
|
|
if ((adap->fe_adap[0].fe) != NULL)
|
2007-11-20 13:34:11 +07:00
|
|
|
return 0;
|
|
|
|
|
2007-11-20 11:53:31 +07:00
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
|
2009-08-05 23:07:10 +07:00
|
|
|
static struct lgs8gxx_config d680_lgs8gl5_cfg = {
|
|
|
|
.prod = LGS8GXX_PROD_LGS8GL5,
|
2008-08-09 23:36:51 +07:00
|
|
|
.demod_address = 0x19,
|
2009-08-05 23:07:10 +07:00
|
|
|
.serial_ts = 0,
|
|
|
|
.ts_clk_pol = 0,
|
|
|
|
.ts_clk_gated = 1,
|
|
|
|
.if_clk_freq = 30400, /* 30.4 MHz */
|
|
|
|
.if_freq = 5725, /* 5.725 MHz */
|
|
|
|
.if_neg_center = 0,
|
|
|
|
.ext_adc = 0,
|
|
|
|
.adc_signed = 0,
|
|
|
|
.if_neg_edge = 0,
|
2008-08-09 23:36:51 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
static int cxusb_d680_dmb_frontend_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
struct dvb_usb_device *d = adap->dev;
|
|
|
|
int n;
|
|
|
|
|
|
|
|
/* Select required USB configuration */
|
|
|
|
if (usb_set_interface(d->udev, 0, 0) < 0)
|
|
|
|
err("set interface failed");
|
|
|
|
|
|
|
|
/* Unblock all USB pipes */
|
|
|
|
usb_clear_halt(d->udev,
|
|
|
|
usb_sndbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint));
|
|
|
|
usb_clear_halt(d->udev,
|
|
|
|
usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint));
|
|
|
|
usb_clear_halt(d->udev,
|
2011-09-06 19:31:57 +07:00
|
|
|
usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint));
|
2008-08-09 23:36:51 +07:00
|
|
|
|
|
|
|
/* Drain USB pipes to avoid hang after reboot */
|
|
|
|
for (n = 0; n < 5; n++) {
|
|
|
|
cxusb_d680_dmb_drain_message(d);
|
|
|
|
cxusb_d680_dmb_drain_video(d);
|
|
|
|
msleep(200);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Reset the tuner */
|
|
|
|
if (cxusb_d680_dmb_gpio_tuner(d, 0x07, 0) < 0) {
|
|
|
|
err("clear tuner gpio failed");
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
msleep(100);
|
|
|
|
if (cxusb_d680_dmb_gpio_tuner(d, 0x07, 1) < 0) {
|
|
|
|
err("set tuner gpio failed");
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
msleep(100);
|
|
|
|
|
|
|
|
/* Attach frontend */
|
2011-09-06 19:31:57 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(lgs8gxx_attach, &d680_lgs8gl5_cfg, &d->i2c_adap);
|
|
|
|
if (adap->fe_adap[0].fe == NULL)
|
2008-08-09 23:36:51 +07:00
|
|
|
return -EIO;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2009-10-26 19:41:22 +07:00
|
|
|
static struct atbm8830_config mygica_d689_atbm8830_cfg = {
|
|
|
|
.prod = ATBM8830_PROD_8830,
|
|
|
|
.demod_address = 0x40,
|
|
|
|
.serial_ts = 0,
|
|
|
|
.ts_sampling_edge = 1,
|
|
|
|
.ts_clk_gated = 0,
|
|
|
|
.osc_clk_freq = 30400, /* in kHz */
|
|
|
|
.if_freq = 0, /* zero IF */
|
|
|
|
.zif_swap_iq = 1,
|
2009-11-28 18:36:31 +07:00
|
|
|
.agc_min = 0x2E,
|
|
|
|
.agc_max = 0x90,
|
|
|
|
.agc_hold_loop = 0,
|
2009-10-26 19:41:22 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
static int cxusb_mygica_d689_frontend_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
struct dvb_usb_device *d = adap->dev;
|
|
|
|
|
|
|
|
/* Select required USB configuration */
|
|
|
|
if (usb_set_interface(d->udev, 0, 0) < 0)
|
|
|
|
err("set interface failed");
|
|
|
|
|
|
|
|
/* Unblock all USB pipes */
|
|
|
|
usb_clear_halt(d->udev,
|
|
|
|
usb_sndbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint));
|
|
|
|
usb_clear_halt(d->udev,
|
|
|
|
usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint));
|
|
|
|
usb_clear_halt(d->udev,
|
2011-09-06 19:31:57 +07:00
|
|
|
usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint));
|
2009-10-26 19:41:22 +07:00
|
|
|
|
|
|
|
|
|
|
|
/* Reset the tuner */
|
|
|
|
if (cxusb_d680_dmb_gpio_tuner(d, 0x07, 0) < 0) {
|
|
|
|
err("clear tuner gpio failed");
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
msleep(100);
|
|
|
|
if (cxusb_d680_dmb_gpio_tuner(d, 0x07, 1) < 0) {
|
|
|
|
err("set tuner gpio failed");
|
|
|
|
return -EIO;
|
|
|
|
}
|
|
|
|
msleep(100);
|
|
|
|
|
|
|
|
/* Attach frontend */
|
2011-09-06 19:31:57 +07:00
|
|
|
adap->fe_adap[0].fe = dvb_attach(atbm8830_attach, &mygica_d689_atbm8830_cfg,
|
2009-10-26 19:41:22 +07:00
|
|
|
&d->i2c_adap);
|
2011-09-06 19:31:57 +07:00
|
|
|
if (adap->fe_adap[0].fe == NULL)
|
2009-10-26 19:41:22 +07:00
|
|
|
return -EIO;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-11-15 04:24:28 +07:00
|
|
|
static int cxusb_mygica_t230_frontend_attach(struct dvb_usb_adapter *adap)
|
|
|
|
{
|
|
|
|
struct dvb_usb_device *d = adap->dev;
|
|
|
|
struct cxusb_state *st = d->priv;
|
|
|
|
struct i2c_adapter *adapter;
|
|
|
|
struct i2c_client *client_demod;
|
|
|
|
struct i2c_client *client_tuner;
|
|
|
|
struct i2c_board_info info;
|
|
|
|
struct si2168_config si2168_config;
|
|
|
|
struct si2157_config si2157_config;
|
|
|
|
|
|
|
|
/* Select required USB configuration */
|
|
|
|
if (usb_set_interface(d->udev, 0, 0) < 0)
|
|
|
|
err("set interface failed");
|
|
|
|
|
|
|
|
/* Unblock all USB pipes */
|
|
|
|
usb_clear_halt(d->udev,
|
|
|
|
usb_sndbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint));
|
|
|
|
usb_clear_halt(d->udev,
|
|
|
|
usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint));
|
|
|
|
usb_clear_halt(d->udev,
|
|
|
|
usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint));
|
|
|
|
|
|
|
|
/* attach frontend */
|
|
|
|
si2168_config.i2c_adapter = &adapter;
|
|
|
|
si2168_config.fe = &adap->fe_adap[0].fe;
|
|
|
|
si2168_config.ts_mode = SI2168_TS_PARALLEL;
|
|
|
|
si2168_config.ts_clock_inv = 1;
|
|
|
|
memset(&info, 0, sizeof(struct i2c_board_info));
|
|
|
|
strlcpy(info.type, "si2168", I2C_NAME_SIZE);
|
|
|
|
info.addr = 0x64;
|
|
|
|
info.platform_data = &si2168_config;
|
|
|
|
request_module(info.type);
|
|
|
|
client_demod = i2c_new_device(&d->i2c_adap, &info);
|
|
|
|
if (client_demod == NULL || client_demod->dev.driver == NULL)
|
|
|
|
return -ENODEV;
|
|
|
|
|
|
|
|
if (!try_module_get(client_demod->dev.driver->owner)) {
|
|
|
|
i2c_unregister_device(client_demod);
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
st->i2c_client_demod = client_demod;
|
|
|
|
|
|
|
|
/* attach tuner */
|
|
|
|
memset(&si2157_config, 0, sizeof(si2157_config));
|
|
|
|
si2157_config.fe = adap->fe_adap[0].fe;
|
|
|
|
memset(&info, 0, sizeof(struct i2c_board_info));
|
|
|
|
strlcpy(info.type, "si2157", I2C_NAME_SIZE);
|
|
|
|
info.addr = 0x60;
|
|
|
|
info.platform_data = &si2157_config;
|
|
|
|
request_module(info.type);
|
|
|
|
client_tuner = i2c_new_device(adapter, &info);
|
|
|
|
if (client_tuner == NULL || client_tuner->dev.driver == NULL) {
|
|
|
|
module_put(client_demod->dev.driver->owner);
|
|
|
|
i2c_unregister_device(client_demod);
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
if (!try_module_get(client_tuner->dev.driver->owner)) {
|
|
|
|
i2c_unregister_device(client_tuner);
|
|
|
|
module_put(client_demod->dev.driver->owner);
|
|
|
|
i2c_unregister_device(client_demod);
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
st->i2c_client_tuner = client_tuner;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2007-11-20 13:34:11 +07:00
|
|
|
/*
|
|
|
|
* DViCO has shipped two devices with the same USB ID, but only one of them
|
|
|
|
* needs a firmware download. Check the device class details to see if they
|
|
|
|
* have non-default values to decide whether the device is actually cold or
|
|
|
|
* not, and forget a match if it turns out we selected the wrong device.
|
|
|
|
*/
|
|
|
|
static int bluebird_fx2_identify_state(struct usb_device *udev,
|
|
|
|
struct dvb_usb_device_properties *props,
|
|
|
|
struct dvb_usb_device_description **desc,
|
|
|
|
int *cold)
|
|
|
|
{
|
|
|
|
int wascold = *cold;
|
|
|
|
|
|
|
|
*cold = udev->descriptor.bDeviceClass == 0xff &&
|
|
|
|
udev->descriptor.bDeviceSubClass == 0xff &&
|
|
|
|
udev->descriptor.bDeviceProtocol == 0xff;
|
|
|
|
|
|
|
|
if (*cold && !wascold)
|
|
|
|
*desc = NULL;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-01-10 03:21:38 +07:00
|
|
|
/*
|
|
|
|
* DViCO bluebird firmware needs the "warm" product ID to be patched into the
|
|
|
|
* firmware file before download.
|
|
|
|
*/
|
|
|
|
|
2007-11-20 13:34:11 +07:00
|
|
|
static const int dvico_firmware_id_offsets[] = { 6638, 3204 };
|
2006-12-06 00:53:39 +07:00
|
|
|
static int bluebird_patch_dvico_firmware_download(struct usb_device *udev,
|
|
|
|
const struct firmware *fw)
|
2006-01-10 03:21:38 +07:00
|
|
|
{
|
2007-11-20 13:34:11 +07:00
|
|
|
int pos;
|
|
|
|
|
|
|
|
for (pos = 0; pos < ARRAY_SIZE(dvico_firmware_id_offsets); pos++) {
|
|
|
|
int idoff = dvico_firmware_id_offsets[pos];
|
2006-01-10 03:21:38 +07:00
|
|
|
|
2007-11-20 13:34:11 +07:00
|
|
|
if (fw->size < idoff + 4)
|
|
|
|
continue;
|
2006-01-10 03:21:38 +07:00
|
|
|
|
2007-11-20 13:34:11 +07:00
|
|
|
if (fw->data[idoff] == (USB_VID_DVICO & 0xff) &&
|
|
|
|
fw->data[idoff + 1] == USB_VID_DVICO >> 8) {
|
2008-05-24 06:12:42 +07:00
|
|
|
struct firmware new_fw;
|
|
|
|
u8 *new_fw_data = vmalloc(fw->size);
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
if (!new_fw_data)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
memcpy(new_fw_data, fw->data, fw->size);
|
|
|
|
new_fw.size = fw->size;
|
|
|
|
new_fw.data = new_fw_data;
|
|
|
|
|
|
|
|
new_fw_data[idoff + 2] =
|
2007-11-20 13:34:11 +07:00
|
|
|
le16_to_cpu(udev->descriptor.idProduct) + 1;
|
2008-05-24 06:12:42 +07:00
|
|
|
new_fw_data[idoff + 3] =
|
2007-11-20 13:34:11 +07:00
|
|
|
le16_to_cpu(udev->descriptor.idProduct) >> 8;
|
2006-01-10 03:21:38 +07:00
|
|
|
|
2008-05-24 06:12:42 +07:00
|
|
|
ret = usb_cypress_load_firmware(udev, &new_fw,
|
|
|
|
CYPRESS_FX2);
|
|
|
|
vfree(new_fw_data);
|
|
|
|
return ret;
|
2007-11-20 13:34:11 +07:00
|
|
|
}
|
2006-01-10 03:21:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
2005-07-08 07:58:10 +07:00
|
|
|
/* DVB USB Driver stuff */
|
2006-09-30 16:53:48 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_medion_properties;
|
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_lgh064f_properties;
|
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_dee1601_properties;
|
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_lgz201_properties;
|
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_dtt7579_properties;
|
2007-11-20 07:57:10 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_dualdig4_properties;
|
2008-08-09 22:23:15 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_dualdig4_rev2_properties;
|
2007-11-20 11:53:31 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_nano2_properties;
|
2007-11-20 13:34:11 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_nano2_needsfirmware_properties;
|
2008-06-28 15:01:30 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_aver_a868r_properties;
|
2008-08-09 23:36:51 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_d680_dmb_properties;
|
2009-10-26 19:41:22 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_mygica_d689_properties;
|
2014-11-15 04:24:28 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_mygica_t230_properties;
|
2005-07-08 07:58:10 +07:00
|
|
|
|
|
|
|
static int cxusb_probe(struct usb_interface *intf,
|
2006-12-06 00:53:39 +07:00
|
|
|
const struct usb_device_id *id)
|
2005-07-08 07:58:10 +07:00
|
|
|
{
|
2008-04-10 05:13:13 +07:00
|
|
|
if (0 == dvb_usb_device_init(intf, &cxusb_medion_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_bluebird_lgh064f_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_bluebird_dee1601_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_bluebird_lgz201_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_bluebird_dtt7579_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_bluebird_dualdig4_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_bluebird_nano2_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
|
|
|
0 == dvb_usb_device_init(intf,
|
|
|
|
&cxusb_bluebird_nano2_needsfirmware_properties,
|
2008-06-28 15:01:30 +07:00
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_aver_a868r_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
2008-08-09 22:23:15 +07:00
|
|
|
0 == dvb_usb_device_init(intf,
|
|
|
|
&cxusb_bluebird_dualdig4_rev2_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
2008-08-09 23:36:51 +07:00
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_d680_dmb_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
2009-10-26 19:41:22 +07:00
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_mygica_d689_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
2014-11-15 04:24:28 +07:00
|
|
|
0 == dvb_usb_device_init(intf, &cxusb_mygica_t230_properties,
|
|
|
|
THIS_MODULE, NULL, adapter_nr) ||
|
2008-06-28 15:01:30 +07:00
|
|
|
0)
|
2006-01-10 00:25:47 +07:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return -EINVAL;
|
2005-07-08 07:58:10 +07:00
|
|
|
}
|
|
|
|
|
2014-07-13 20:52:22 +07:00
|
|
|
static void cxusb_disconnect(struct usb_interface *intf)
|
|
|
|
{
|
|
|
|
struct dvb_usb_device *d = usb_get_intfdata(intf);
|
|
|
|
struct cxusb_state *st = d->priv;
|
|
|
|
struct i2c_client *client;
|
|
|
|
|
|
|
|
/* remove I2C client for tuner */
|
|
|
|
client = st->i2c_client_tuner;
|
|
|
|
if (client) {
|
|
|
|
module_put(client->dev.driver->owner);
|
|
|
|
i2c_unregister_device(client);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* remove I2C client for demodulator */
|
|
|
|
client = st->i2c_client_demod;
|
|
|
|
if (client) {
|
|
|
|
module_put(client->dev.driver->owner);
|
|
|
|
i2c_unregister_device(client);
|
|
|
|
}
|
|
|
|
|
|
|
|
dvb_usb_device_exit(intf);
|
|
|
|
}
|
|
|
|
|
2005-07-08 07:58:10 +07:00
|
|
|
static struct usb_device_id cxusb_table [] = {
|
2006-12-06 00:53:39 +07:00
|
|
|
{ USB_DEVICE(USB_VID_MEDION, USB_PID_MEDION_MD95700) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_LG064F_COLD) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_LG064F_WARM) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_DUAL_1_COLD) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_DUAL_1_WARM) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_LGZ201_COLD) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_LGZ201_WARM) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_TH7579_COLD) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_TH7579_WARM) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DIGITALNOW_BLUEBIRD_DUAL_1_COLD) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DIGITALNOW_BLUEBIRD_DUAL_1_WARM) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_DUAL_2_COLD) },
|
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_DUAL_2_WARM) },
|
2007-11-20 07:57:10 +07:00
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_DUAL_4) },
|
2007-11-20 11:53:31 +07:00
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_DVB_T_NANO_2) },
|
2007-11-20 13:34:11 +07:00
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_DVB_T_NANO_2_NFW_WARM) },
|
2008-06-28 15:01:30 +07:00
|
|
|
{ USB_DEVICE(USB_VID_AVERMEDIA, USB_PID_AVERMEDIA_VOLAR_A868R) },
|
2008-08-09 22:23:15 +07:00
|
|
|
{ USB_DEVICE(USB_VID_DVICO, USB_PID_DVICO_BLUEBIRD_DUAL_4_REV_2) },
|
2008-08-09 23:36:51 +07:00
|
|
|
{ USB_DEVICE(USB_VID_CONEXANT, USB_PID_CONEXANT_D680_DMB) },
|
2009-10-26 19:41:22 +07:00
|
|
|
{ USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_D689) },
|
2014-11-15 04:24:28 +07:00
|
|
|
{ USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_T230) },
|
2006-12-06 00:53:39 +07:00
|
|
|
{} /* Terminating entry */
|
2005-07-08 07:58:10 +07:00
|
|
|
};
|
|
|
|
MODULE_DEVICE_TABLE (usb, cxusb_table);
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_medion_properties = {
|
2005-07-08 07:58:10 +07:00
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = CYPRESS_FX2,
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2006-10-13 21:34:46 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_cx22702_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_fmd1216me_tuner_attach,
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2006-09-30 16:53:48 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.power_ctrl = cxusb_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
2005-07-08 07:58:10 +07:00
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "Medion MD95700 (MDUSBTV-HYBRID)",
|
|
|
|
{ NULL },
|
|
|
|
{ &cxusb_table[0], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_lgh064f_properties = {
|
2006-01-10 00:25:47 +07:00
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
2006-01-10 03:21:38 +07:00
|
|
|
.usb_ctrl = DEVICE_SPECIFIC,
|
|
|
|
.firmware = "dvb-usb-bluebird-01.fw",
|
|
|
|
.download_firmware = bluebird_patch_dvico_firmware_download,
|
2006-01-10 00:25:47 +07:00
|
|
|
/* use usb alt setting 0 for EP4 transfer (dvb-t),
|
|
|
|
use usb alt setting 7 for EP2 transfer (atsc) */
|
2006-01-10 00:25:47 +07:00
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2006-10-13 21:34:46 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_lgdt3303_frontend_attach,
|
2006-10-14 07:55:57 +07:00
|
|
|
.tuner_attach = cxusb_lgh064f_tuner_attach,
|
2006-10-13 21:34:46 +07:00
|
|
|
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2006-09-30 16:53:48 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_bluebird_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_dvico_portable_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_dvico_portable_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_rc_query,
|
|
|
|
},
|
2006-09-30 16:53:48 +07:00
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
2006-01-10 00:25:47 +07:00
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "DViCO FusionHDTV5 USB Gold",
|
|
|
|
{ &cxusb_table[1], NULL },
|
|
|
|
{ &cxusb_table[2], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_dee1601_properties = {
|
2006-01-10 03:21:28 +07:00
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
2006-01-10 03:21:38 +07:00
|
|
|
.usb_ctrl = DEVICE_SPECIFIC,
|
|
|
|
.firmware = "dvb-usb-bluebird-01.fw",
|
|
|
|
.download_firmware = bluebird_patch_dvico_firmware_download,
|
2006-01-10 03:21:28 +07:00
|
|
|
/* use usb alt setting 0 for EP4 transfer (dvb-t),
|
|
|
|
use usb alt setting 7 for EP2 transfer (atsc) */
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2006-10-13 21:34:46 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_dee1601_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_dee1601_tuner_attach,
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
2006-09-30 16:53:48 +07:00
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
2006-10-13 21:34:46 +07:00
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x04,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2006-09-30 16:53:48 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_bluebird_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 150,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_dvico_mce_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_dvico_mce_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_rc_query,
|
|
|
|
},
|
2006-09-30 16:53:48 +07:00
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
2006-01-10 03:21:28 +07:00
|
|
|
|
2006-09-28 12:16:01 +07:00
|
|
|
.num_device_descs = 3,
|
2006-01-10 03:21:28 +07:00
|
|
|
.devices = {
|
|
|
|
{ "DViCO FusionHDTV DVB-T Dual USB",
|
|
|
|
{ &cxusb_table[3], NULL },
|
|
|
|
{ &cxusb_table[4], NULL },
|
|
|
|
},
|
2006-01-12 08:21:00 +07:00
|
|
|
{ "DigitalNow DVB-T Dual USB",
|
|
|
|
{ &cxusb_table[9], NULL },
|
|
|
|
{ &cxusb_table[10], NULL },
|
|
|
|
},
|
2006-09-28 12:16:01 +07:00
|
|
|
{ "DViCO FusionHDTV DVB-T Dual Digital 2",
|
|
|
|
{ &cxusb_table[11], NULL },
|
|
|
|
{ &cxusb_table[12], NULL },
|
|
|
|
},
|
2006-01-10 03:21:28 +07:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_lgz201_properties = {
|
2006-01-12 04:40:33 +07:00
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = DEVICE_SPECIFIC,
|
|
|
|
.firmware = "dvb-usb-bluebird-01.fw",
|
|
|
|
.download_firmware = bluebird_patch_dvico_firmware_download,
|
|
|
|
/* use usb alt setting 0 for EP4 transfer (dvb-t),
|
|
|
|
use usb alt setting 7 for EP2 transfer (atsc) */
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
.num_adapters = 2,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2006-10-13 21:34:46 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_mt352_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_lgz201_tuner_attach,
|
2006-01-12 04:40:33 +07:00
|
|
|
|
2006-10-13 21:34:46 +07:00
|
|
|
/* parameter for the MPEG2-data transfer */
|
2006-09-30 16:53:48 +07:00
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
2006-10-13 21:34:46 +07:00
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x04,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2006-09-30 16:53:48 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.power_ctrl = cxusb_bluebird_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
2006-01-12 04:40:33 +07:00
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_dvico_portable_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_dvico_portable_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_rc_query,
|
|
|
|
},
|
2006-09-30 16:53:48 +07:00
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
2006-01-12 04:40:33 +07:00
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "DViCO FusionHDTV DVB-T USB (LGZ201)",
|
|
|
|
{ &cxusb_table[5], NULL },
|
|
|
|
{ &cxusb_table[6], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_dtt7579_properties = {
|
2006-01-12 04:40:33 +07:00
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = DEVICE_SPECIFIC,
|
|
|
|
.firmware = "dvb-usb-bluebird-01.fw",
|
|
|
|
.download_firmware = bluebird_patch_dvico_firmware_download,
|
|
|
|
/* use usb alt setting 0 for EP4 transfer (dvb-t),
|
|
|
|
use usb alt setting 7 for EP2 transfer (atsc) */
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
2006-09-30 16:53:48 +07:00
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2006-10-13 21:34:46 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_mt352_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_dtt7579_tuner_attach,
|
2006-01-12 04:40:33 +07:00
|
|
|
|
2006-10-13 21:34:46 +07:00
|
|
|
/* parameter for the MPEG2-data transfer */
|
2006-09-30 16:53:48 +07:00
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
2006-10-13 21:34:46 +07:00
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x04,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2006-09-30 16:53:48 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.power_ctrl = cxusb_bluebird_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_dvico_portable_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_dvico_portable_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_rc_query,
|
|
|
|
},
|
2006-09-30 16:53:48 +07:00
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
2006-01-12 04:40:33 +07:00
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "DViCO FusionHDTV DVB-T USB (TH7579)",
|
|
|
|
{ &cxusb_table[7], NULL },
|
|
|
|
{ &cxusb_table[8], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2007-11-20 07:57:10 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_dualdig4_properties = {
|
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = CYPRESS_FX2,
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2007-11-20 07:57:10 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_dualdig4_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_dvico_xc3028_tuner_attach,
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2007-11-20 07:57:10 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_dvico_mce_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_dvico_mce_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_bluebird2_rc_query,
|
|
|
|
},
|
2007-11-20 07:57:10 +07:00
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "DViCO FusionHDTV DVB-T Dual Digital 4",
|
|
|
|
{ NULL },
|
|
|
|
{ &cxusb_table[13], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2007-11-20 11:53:31 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_nano2_properties = {
|
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = CYPRESS_FX2,
|
2007-11-20 13:34:11 +07:00
|
|
|
.identify_state = bluebird_fx2_identify_state,
|
2007-11-20 11:53:31 +07:00
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2007-11-20 11:53:31 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_nano2_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_dvico_xc3028_tuner_attach,
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2007-11-20 11:53:31 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_nano2_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_dvico_portable_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_dvico_portable_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_bluebird2_rc_query,
|
|
|
|
},
|
2007-11-20 11:53:31 +07:00
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "DViCO FusionHDTV DVB-T NANO2",
|
|
|
|
{ NULL },
|
|
|
|
{ &cxusb_table[14], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2007-11-20 13:34:11 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_bluebird_nano2_needsfirmware_properties = {
|
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = DEVICE_SPECIFIC,
|
|
|
|
.firmware = "dvb-usb-bluebird-02.fw",
|
|
|
|
.download_firmware = bluebird_patch_dvico_firmware_download,
|
|
|
|
.identify_state = bluebird_fx2_identify_state,
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2007-11-20 13:34:11 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_nano2_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_dvico_xc3028_tuner_attach,
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2007-11-20 13:34:11 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_nano2_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_dvico_portable_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_dvico_portable_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_rc_query,
|
|
|
|
},
|
2007-11-20 13:34:11 +07:00
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "DViCO FusionHDTV DVB-T NANO2 w/o firmware",
|
|
|
|
{ &cxusb_table[14], NULL },
|
|
|
|
{ &cxusb_table[15], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2008-06-28 15:01:30 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_aver_a868r_properties = {
|
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = CYPRESS_FX2,
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2008-06-28 15:01:30 +07:00
|
|
|
.streaming_ctrl = cxusb_aver_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_aver_lgdt3303_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_mxl5003s_tuner_attach,
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x04,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2008-06-28 15:01:30 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.power_ctrl = cxusb_aver_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "AVerMedia AVerTVHD Volar (A868R)",
|
|
|
|
{ NULL },
|
|
|
|
{ &cxusb_table[16], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2008-08-09 23:06:26 +07:00
|
|
|
static
|
|
|
|
struct dvb_usb_device_properties cxusb_bluebird_dualdig4_rev2_properties = {
|
2008-08-09 22:23:15 +07:00
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = CYPRESS_FX2,
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.size_of_priv = sizeof(struct dib0700_adapter_state),
|
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2008-08-09 23:06:26 +07:00
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_dualdig4_rev2_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_dualdig4_rev2_tuner_attach,
|
2008-08-09 22:23:15 +07:00
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 7,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 4096,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2008-08-09 22:23:15 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_bluebird_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_dvico_mce_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_dvico_mce_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_rc_query,
|
|
|
|
},
|
2008-08-09 22:23:15 +07:00
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{ "DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2)",
|
|
|
|
{ NULL },
|
|
|
|
{ &cxusb_table[17], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2008-08-09 23:36:51 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_d680_dmb_properties = {
|
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = CYPRESS_FX2,
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2008-08-09 23:36:51 +07:00
|
|
|
.streaming_ctrl = cxusb_d680_dmb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_d680_dmb_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_d680_dmb_tuner_attach,
|
|
|
|
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2008-08-09 23:36:51 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_d680_dmb_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_d680_dmb_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_d680_dmb_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_d680_dmb_rc_query,
|
|
|
|
},
|
2008-08-09 23:36:51 +07:00
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{
|
|
|
|
"Conexant DMB-TH Stick",
|
|
|
|
{ NULL },
|
|
|
|
{ &cxusb_table[18], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2009-10-26 19:41:22 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_mygica_d689_properties = {
|
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = CYPRESS_FX2,
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
2011-09-06 19:31:57 +07:00
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
2009-10-26 19:41:22 +07:00
|
|
|
.streaming_ctrl = cxusb_d680_dmb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_mygica_d689_frontend_attach,
|
|
|
|
.tuner_attach = cxusb_mygica_d689_tuner_attach,
|
|
|
|
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-06 19:31:57 +07:00
|
|
|
}},
|
2009-10-26 19:41:22 +07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_d680_dmb_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 01:46:09 +07:00
|
|
|
.rc_map_table = rc_map_d680_dmb_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_d680_dmb_table),
|
2010-08-01 04:04:09 +07:00
|
|
|
.rc_query = cxusb_d680_dmb_rc_query,
|
|
|
|
},
|
2009-10-26 19:41:22 +07:00
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{
|
|
|
|
"Mygica D689 DMB-TH",
|
|
|
|
{ NULL },
|
|
|
|
{ &cxusb_table[19], NULL },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2014-11-15 04:24:28 +07:00
|
|
|
static struct dvb_usb_device_properties cxusb_mygica_t230_properties = {
|
|
|
|
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
|
|
|
|
|
|
|
|
.usb_ctrl = CYPRESS_FX2,
|
|
|
|
|
|
|
|
.size_of_priv = sizeof(struct cxusb_state),
|
|
|
|
|
|
|
|
.num_adapters = 1,
|
|
|
|
.adapter = {
|
|
|
|
{
|
|
|
|
.num_frontends = 1,
|
|
|
|
.fe = {{
|
|
|
|
.streaming_ctrl = cxusb_streaming_ctrl,
|
|
|
|
.frontend_attach = cxusb_mygica_t230_frontend_attach,
|
|
|
|
|
|
|
|
/* parameter for the MPEG2-data transfer */
|
|
|
|
.stream = {
|
|
|
|
.type = USB_BULK,
|
|
|
|
.count = 5,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.u = {
|
|
|
|
.bulk = {
|
|
|
|
.buffersize = 8192,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
} },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
.power_ctrl = cxusb_d680_dmb_power_ctrl,
|
|
|
|
|
|
|
|
.i2c_algo = &cxusb_i2c_algo,
|
|
|
|
|
|
|
|
.generic_bulk_ctrl_endpoint = 0x01,
|
|
|
|
|
|
|
|
.rc.legacy = {
|
|
|
|
.rc_interval = 100,
|
|
|
|
.rc_map_table = rc_map_d680_dmb_table,
|
|
|
|
.rc_map_size = ARRAY_SIZE(rc_map_d680_dmb_table),
|
|
|
|
.rc_query = cxusb_d680_dmb_rc_query,
|
|
|
|
},
|
|
|
|
|
|
|
|
.num_device_descs = 1,
|
|
|
|
.devices = {
|
|
|
|
{
|
|
|
|
"Mygica T230 DVB-T/T2/C",
|
|
|
|
{ NULL },
|
2015-01-03 00:55:17 +07:00
|
|
|
{ &cxusb_table[20], NULL },
|
2014-11-15 04:24:28 +07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2005-07-08 07:58:10 +07:00
|
|
|
static struct usb_driver cxusb_driver = {
|
2005-07-08 07:58:30 +07:00
|
|
|
.name = "dvb_usb_cxusb",
|
2005-07-08 07:58:10 +07:00
|
|
|
.probe = cxusb_probe,
|
2014-07-13 20:52:22 +07:00
|
|
|
.disconnect = cxusb_disconnect,
|
2005-07-08 07:58:10 +07:00
|
|
|
.id_table = cxusb_table,
|
|
|
|
};
|
|
|
|
|
2011-11-19 00:46:12 +07:00
|
|
|
module_usb_driver(cxusb_driver);
|
2005-07-08 07:58:10 +07:00
|
|
|
|
|
|
|
MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>");
|
2006-10-16 00:51:08 +07:00
|
|
|
MODULE_AUTHOR("Michael Krufky <mkrufky@linuxtv.org>");
|
2006-01-13 23:10:25 +07:00
|
|
|
MODULE_AUTHOR("Chris Pascoe <c.pascoe@itee.uq.edu.au>");
|
2005-07-08 07:58:10 +07:00
|
|
|
MODULE_DESCRIPTION("Driver for Conexant USB2.0 hybrid reference design");
|
|
|
|
MODULE_VERSION("1.0-alpha");
|
|
|
|
MODULE_LICENSE("GPL");
|