4 Copyright (C) 2005, 2006 Manu Abraham (abraham.manu@gmail.com)
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
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <linux/signal.h>
23 #include <linux/sched.h>
24 #include <linux/interrupt.h>
28 #include "dvb_demux.h"
29 #include "dvb_frontend.h"
33 #include "mantis_common.h"
34 #include "mantis_vp3030.h"
36 struct zl10353_config mantis_vp3030_config = {
37 .demod_address = 0x0f,
40 #define MANTIS_MODEL_NAME "VP-3030"
41 #define MANTIS_DEV_TYPE "DVB-T"
43 int panasonic_en57h12d5_set_params(struct dvb_frontend *fe,
44 struct dvb_frontend_parameters *params)
48 struct mantis_pci *mantis = fe->dvb->priv;
50 struct i2c_msg tuner_msg = {
57 if ((params->frequency < 950000) || (params->frequency > 2150000))
59 rc = i2c_transfer(&mantis->adapter, &tuner_msg, 1);
61 printk("%s: I2C Transfer returned [%d]\n", __func__, rc);
64 msleep_interruptible(1);
65 printk("%s: Send params to tuner ok!!!\n", __func__);
70 static int vp3030_frontend_init(struct mantis_pci *mantis, struct dvb_frontend *fe)
72 struct i2c_adapter *adapter = &mantis->adapter;
74 dprintk(MANTIS_ERROR, 1, "Probing for 10353 (DVB-T)");
75 fe = zl10353_attach(&mantis_vp3030_config, adapter);
81 dprintk(MANTIS_ERROR, 1, "Done!");
86 struct mantis_hwconfig vp3030_config = {
87 .model_name = MANTIS_MODEL_NAME,
88 .dev_type = MANTIS_DEV_TYPE,
89 .ts_size = MANTIS_TS_188,
91 .baud_rate = MANTIS_BAUD_9600,
92 .parity = MANTIS_PARITY_NONE,
95 .frontend_init = vp3030_frontend_init,