dm1105.c (d8c532c40721f7507896d202b8cae3b3642d2b0d) dm1105.c (73f0af44a9137cc2ab18e181f68f59d2ad3fe3f7)
1/*
2 * dm1105.c - driver for DVB cards based on SDMC DM1105 PCI chip
3 *
4 * Copyright (C) 2008 Igor M. Liplianin <liplianin@me.by>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 31 unchanged lines hidden (view full) ---

40#include "dvb-pll.h"
41
42#include "stv0299.h"
43#include "stv0288.h"
44#include "stb6000.h"
45#include "si21xx.h"
46#include "cx24116.h"
47#include "z0194a.h"
1/*
2 * dm1105.c - driver for DVB cards based on SDMC DM1105 PCI chip
3 *
4 * Copyright (C) 2008 Igor M. Liplianin <liplianin@me.by>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 31 unchanged lines hidden (view full) ---

40#include "dvb-pll.h"
41
42#include "stv0299.h"
43#include "stv0288.h"
44#include "stb6000.h"
45#include "si21xx.h"
46#include "cx24116.h"
47#include "z0194a.h"
48#include "ts2020.h"
48#include "ds3000.h"
49
50#define MODULE_NAME "dm1105"
51
52#define UNSET (-1U)
53
54#define DM1105_BOARD_NOAUTO UNSET
55#define DM1105_BOARD_UNKNOWN 0

--- 788 unchanged lines hidden (view full) ---

844static struct cx24116_config serit_sp2633_config = {
845 .demod_address = 0x55,
846};
847
848static struct ds3000_config dvbworld_ds3000_config = {
849 .demod_address = 0x68,
850};
851
49#include "ds3000.h"
50
51#define MODULE_NAME "dm1105"
52
53#define UNSET (-1U)
54
55#define DM1105_BOARD_NOAUTO UNSET
56#define DM1105_BOARD_UNKNOWN 0

--- 788 unchanged lines hidden (view full) ---

845static struct cx24116_config serit_sp2633_config = {
846 .demod_address = 0x55,
847};
848
849static struct ds3000_config dvbworld_ds3000_config = {
850 .demod_address = 0x68,
851};
852
853static struct ts2020_config dvbworld_ts2020_config = {
854 .tuner_address = 0x60,
855};
856
852static int __devinit frontend_init(struct dm1105_dev *dev)
853{
854 int ret;
855
856 switch (dev->boardnr) {
857 case DM1105_BOARD_UNBRANDED_I2C_ON_GPIO:
858 dm1105_gpio_enable(dev, GPIO15, 1);
859 dm1105_gpio_clear(dev, GPIO15);

--- 33 unchanged lines hidden (view full) ---

893 if (dev->fe) {
894 dev->fe->ops.set_voltage = dm1105_set_voltage;
895 break;
896 }
897
898 dev->fe = dvb_attach(
899 ds3000_attach, &dvbworld_ds3000_config,
900 &dev->i2c_adap);
857static int __devinit frontend_init(struct dm1105_dev *dev)
858{
859 int ret;
860
861 switch (dev->boardnr) {
862 case DM1105_BOARD_UNBRANDED_I2C_ON_GPIO:
863 dm1105_gpio_enable(dev, GPIO15, 1);
864 dm1105_gpio_clear(dev, GPIO15);

--- 33 unchanged lines hidden (view full) ---

898 if (dev->fe) {
899 dev->fe->ops.set_voltage = dm1105_set_voltage;
900 break;
901 }
902
903 dev->fe = dvb_attach(
904 ds3000_attach, &dvbworld_ds3000_config,
905 &dev->i2c_adap);
901 if (dev->fe)
906 if (dev->fe) {
907 dvb_attach(ts2020_attach, dev->fe,
908 &dvbworld_ts2020_config, &dev->i2c_adap);
902 dev->fe->ops.set_voltage = dm1105_set_voltage;
909 dev->fe->ops.set_voltage = dm1105_set_voltage;
910 }
903
904 break;
905 case DM1105_BOARD_DVBWORLD_2002:
906 case DM1105_BOARD_AXESS_DM05:
907 default:
908 dev->fe = dvb_attach(
909 stv0299_attach, &sharp_z0194a_config,
910 &dev->i2c_adap);

--- 340 unchanged lines hidden ---
911
912 break;
913 case DM1105_BOARD_DVBWORLD_2002:
914 case DM1105_BOARD_AXESS_DM05:
915 default:
916 dev->fe = dvb_attach(
917 stv0299_attach, &sharp_z0194a_config,
918 &dev->i2c_adap);

--- 340 unchanged lines hidden ---