diff options
| author | Michael Krufky <mkrufky@linuxtv.org> | 2007-01-21 13:56:10 -0500 |
|---|---|---|
| committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-01-21 13:56:10 -0500 |
| commit | 8eeef355ce44f48579df26ffb53f713e45f9169a (patch) | |
| tree | e5d38f9a8ffeebc4a0eaebddb06dc7931f96c45e /linux/drivers/media/dvb/dvb-usb | |
| parent | 2198c7842c8114359ee495795d1fc624d8514321 (diff) | |
| download | mediapointer-dvb-s2-8eeef355ce44f48579df26ffb53f713e45f9169a.tar.gz mediapointer-dvb-s2-8eeef355ce44f48579df26ffb53f713e45f9169a.tar.bz2 | |
dvb: add new qt1010 tuner module
From: Antti Palosaari <crope@iki.fi>
QT1010:
- old qt1010-code totally rewritten and put in own kernel module
- same enhancements as my earlier QT1010 125kHz patch
- tuner initialization
- register 1f calculation
- register 20 calculation
- register 25 calculation
m920x: (MSI Megasky)
- use new QT1010 module instead of old code
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
| -rw-r--r-- | linux/drivers/media/dvb/dvb-usb/m920x.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/m920x.c b/linux/drivers/media/dvb/dvb-usb/m920x.c index 911570387..108450ef0 100644 --- a/linux/drivers/media/dvb/dvb-usb/m920x.c +++ b/linux/drivers/media/dvb/dvb-usb/m920x.c @@ -390,6 +390,17 @@ static int m9206_firmware_download(struct usb_device *udev, const struct firmwar return ret; } +static struct qt1010_config megasky_qt1010_config = { + .i2c_address = 0xc4 +}; + +static int megasky_tuner_attach(struct dvb_usb_adapter *adap) +{ + return dvb_attach(qt1010_attach, + adap->fe, &adap->dev->i2c_adap, + &megasky_qt1010_config) == NULL ? -ENODEV : 0; +} + /* DVB USB Driver stuff */ static struct dvb_usb_device_properties megasky_properties; @@ -449,7 +460,7 @@ static struct dvb_usb_device_properties megasky_properties = { .pid_filter_ctrl = m9206_pid_filter_ctrl, .frontend_attach = megasky_frontend_attach, - .tuner_attach = qt1010_tuner_attach, + .tuner_attach = megasky_tuner_attach, .stream = { .type = USB_BULK, |
