forked from Minki/linux
6bdcc6e6db
The code of the dvb-pll driver and the lgh06xf driver is nearly identical. The main difference is that the lgh06xf driver would set the AGC TOP value on every tune call. The dvb-pll driver now has the ability to set the AGC TOP when the front-end device is opened, which is a better way to go about it. By using this ability of dvb-pll, the lgh06xf driver is made unnecessary. There is one other difference. dvb-pll will probe for the presence of an I2C pll chip by doing a one byte read, the lgh06xf driver did not do this. In some devices the PLL is not reachable over I2C at the timer the tuner is attached. Some more initialization, such as firmware loading, must take place first. None of the devices using a LG-H06xF should have this problem. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
/*
|
|
* Bt8xx based DVB adapter driver
|
|
*
|
|
* Copyright (C) 2002,2003 Florian Schirmer <jolt@tuxbox.org>
|
|
* Copyright (C) 2002 Peter Hettkamp <peter.hettkamp@htp-tel.de>
|
|
* Copyright (C) 1999-2001 Ralph Metzler & Marcus Metzler for convergence integrated media GmbH
|
|
* Copyright (C) 1998,1999 Christian Theiss <mistert@rz.fh-augsburg.de>
|
|
*
|
|
* 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; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef DVB_BT8XX_H
|
|
#define DVB_BT8XX_H
|
|
|
|
#include <linux/i2c.h>
|
|
#include <linux/mutex.h>
|
|
#include "dvbdev.h"
|
|
#include "dvb_net.h"
|
|
#include "bttv.h"
|
|
#include "mt352.h"
|
|
#include "sp887x.h"
|
|
#include "dst_common.h"
|
|
#include "nxt6000.h"
|
|
#include "cx24110.h"
|
|
#include "or51211.h"
|
|
#include "lgdt330x.h"
|
|
#include "zl10353.h"
|
|
#include "dvb-pll.h"
|
|
|
|
struct dvb_bt8xx_card {
|
|
struct mutex lock;
|
|
int nfeeds;
|
|
char card_name[32];
|
|
struct dvb_adapter dvb_adapter;
|
|
struct bt878 *bt;
|
|
unsigned int bttv_nr;
|
|
struct dvb_demux demux;
|
|
struct dmxdev dmxdev;
|
|
struct dmx_frontend fe_hw;
|
|
struct dmx_frontend fe_mem;
|
|
u32 gpio_mode;
|
|
u32 op_sync_orin;
|
|
u32 irq_err_ignore;
|
|
struct i2c_adapter *i2c_adapter;
|
|
struct dvb_net dvbnet;
|
|
|
|
struct dvb_frontend* fe;
|
|
};
|
|
|
|
#endif /* DVB_BT8XX_H */
|