22 #include <linux/module.h>
24 #include <linux/string.h>
25 #include <linux/slab.h>
53 static int dvb_dummy_fe_read_signal_strength(
struct dvb_frontend* fe,
u16* strength)
65 static int dvb_dummy_fe_read_ucblocks(
struct dvb_frontend* fe,
u32* ucblocks)
74 static int dvb_dummy_fe_get_frontend(
struct dvb_frontend *fe)
79 static int dvb_dummy_fe_set_frontend(
struct dvb_frontend *fe)
81 if (fe->
ops.tuner_ops.set_params) {
82 fe->
ops.tuner_ops.set_params(fe);
83 if (fe->
ops.i2c_gate_ctrl)
84 fe->
ops.i2c_gate_ctrl(fe, 0);
110 static void dvb_dummy_fe_release(
struct dvb_frontend* fe)
170 .name =
"Dummy DVB-T",
172 .frequency_max = 863250000,
173 .frequency_stepsize = 62500,
183 .release = dvb_dummy_fe_release,
185 .init = dvb_dummy_fe_init,
186 .sleep = dvb_dummy_fe_sleep,
188 .set_frontend = dvb_dummy_fe_set_frontend,
189 .get_frontend = dvb_dummy_fe_get_frontend,
191 .read_status = dvb_dummy_fe_read_status,
192 .read_ber = dvb_dummy_fe_read_ber,
193 .read_signal_strength = dvb_dummy_fe_read_signal_strength,
194 .read_snr = dvb_dummy_fe_read_snr,
195 .read_ucblocks = dvb_dummy_fe_read_ucblocks,
201 .name =
"Dummy DVB-C",
202 .frequency_stepsize = 62500,
203 .frequency_min = 51000000,
204 .frequency_max = 858000000,
205 .symbol_rate_min = (57840000/2)/64,
206 .symbol_rate_max = (57840000/2)/4,
212 .release = dvb_dummy_fe_release,
214 .init = dvb_dummy_fe_init,
215 .sleep = dvb_dummy_fe_sleep,
217 .set_frontend = dvb_dummy_fe_set_frontend,
218 .get_frontend = dvb_dummy_fe_get_frontend,
220 .read_status = dvb_dummy_fe_read_status,
221 .read_ber = dvb_dummy_fe_read_ber,
222 .read_signal_strength = dvb_dummy_fe_read_signal_strength,
223 .read_snr = dvb_dummy_fe_read_snr,
224 .read_ucblocks = dvb_dummy_fe_read_ucblocks,
230 .name =
"Dummy DVB-S",
231 .frequency_min = 950000,
232 .frequency_max = 2150000,
233 .frequency_stepsize = 250,
234 .frequency_tolerance = 29500,
235 .symbol_rate_min = 1000000,
236 .symbol_rate_max = 45000000,
243 .release = dvb_dummy_fe_release,
245 .init = dvb_dummy_fe_init,
246 .sleep = dvb_dummy_fe_sleep,
248 .set_frontend = dvb_dummy_fe_set_frontend,
249 .get_frontend = dvb_dummy_fe_get_frontend,
251 .read_status = dvb_dummy_fe_read_status,
252 .read_ber = dvb_dummy_fe_read_ber,
253 .read_signal_strength = dvb_dummy_fe_read_signal_strength,
254 .read_snr = dvb_dummy_fe_read_snr,
255 .read_ucblocks = dvb_dummy_fe_read_ucblocks,
257 .set_voltage = dvb_dummy_fe_set_voltage,
258 .set_tone = dvb_dummy_fe_set_tone,