diff options
author | Antti Palosaari <crope@iki.fi> | 2007-01-21 13:56:10 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:53 -0500 |
commit | cbdc80ed8f59e204c031b52ea7e44f419029f75b (patch) | |
tree | 86e58128fc49ad39beeba4971bfbbbc077faae5a /drivers/media/dvb/dvb-usb/m920x.c | |
parent | 1f61f3bab303c02cfd822c952284a381089452a0 (diff) |
V4L/DVB (5137): Dvb: add new qt1010 tuner module
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/m920x.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/m920x.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/m920x.c b/drivers/media/dvb/dvb-usb/m920x.c index d47245e9fe7e..fd9d19b9cf2d 100644 --- a/drivers/media/dvb/dvb-usb/m920x.c +++ b/drivers/media/dvb/dvb-usb/m920x.c | |||
@@ -383,6 +383,17 @@ static int m9206_firmware_download(struct usb_device *udev, const struct firmwar | |||
383 | return ret; | 383 | return ret; |
384 | } | 384 | } |
385 | 385 | ||
386 | static struct qt1010_config megasky_qt1010_config = { | ||
387 | .i2c_address = 0xc4 | ||
388 | }; | ||
389 | |||
390 | static int megasky_tuner_attach(struct dvb_usb_adapter *adap) | ||
391 | { | ||
392 | return dvb_attach(qt1010_attach, | ||
393 | adap->fe, &adap->dev->i2c_adap, | ||
394 | &megasky_qt1010_config) == NULL ? -ENODEV : 0; | ||
395 | } | ||
396 | |||
386 | /* DVB USB Driver stuff */ | 397 | /* DVB USB Driver stuff */ |
387 | static struct dvb_usb_device_properties megasky_properties; | 398 | static struct dvb_usb_device_properties megasky_properties; |
388 | 399 | ||
@@ -442,7 +453,7 @@ static struct dvb_usb_device_properties megasky_properties = { | |||
442 | .pid_filter_ctrl = m9206_pid_filter_ctrl, | 453 | .pid_filter_ctrl = m9206_pid_filter_ctrl, |
443 | 454 | ||
444 | .frontend_attach = megasky_frontend_attach, | 455 | .frontend_attach = megasky_frontend_attach, |
445 | .tuner_attach = qt1010_tuner_attach, | 456 | .tuner_attach = megasky_tuner_attach, |
446 | 457 | ||
447 | .stream = { | 458 | .stream = { |
448 | .type = USB_BULK, | 459 | .type = USB_BULK, |