30 static int as102_fe_set_frontend(
struct dvb_frontend *fe)
46 as102_fe_copy_tune_parameters(&tune_args, p);
51 dprintk(
debug,
"as10x_cmd_set_tune failed. (err = %d)\n", ret);
56 return (ret < 0) ? -
EINVAL : 0;
59 static int as102_fe_get_frontend(
struct dvb_frontend *fe)
79 as10x_fe_copy_tps_parameters(p, &tps);
84 return (ret < 0) ? -
EINVAL : 0;
87 static int as102_fe_get_tune_settings(
struct dvb_frontend *fe,
123 dprintk(
debug,
"as10x_cmd_get_tune_status failed (err = %d)\n",
146 dprintk(
debug,
"tuner status: 0x%02x, strength %d, per: %d, ber: %d\n",
155 "(probably not tuned)\n");
158 "demod status: fc: 0x%08x, bad fc: 0x%08x, "
159 "bytes corrected: 0x%08x , MER: 0x%04x\n",
214 static int as102_fe_read_signal_strength(
struct dvb_frontend *fe,
231 static int as102_fe_read_ucblocks(
struct dvb_frontend *fe,
u32 *ucblocks)
250 static int as102_fe_ts_bus_ctrl(
struct dvb_frontend *fe,
int acquire)
282 .name =
"Unknown AS102 device",
283 .frequency_min = 174000000,
284 .frequency_max = 862000000,
285 .frequency_stepsize = 166667,
298 .set_frontend = as102_fe_set_frontend,
299 .get_frontend = as102_fe_get_frontend,
300 .get_tune_settings = as102_fe_get_tune_settings,
302 .read_status = as102_fe_read_status,
303 .read_snr = as102_fe_read_snr,
304 .read_ber = as102_fe_read_ber,
305 .read_signal_strength = as102_fe_read_signal_strength,
306 .read_ucblocks = as102_fe_read_ucblocks,
307 .ts_bus_ctrl = as102_fe_ts_bus_ctrl,
327 if (as102_dev ==
NULL)
336 sizeof(dvb_fe->
ops.info.name));
472 static void as102_fe_copy_tune_parameters(
struct as10x_tune_args *tune_args,
559 dprintk(
debug,
"tuner parameters: freq: %d bw: 0x%02x gi: 0x%02x\n",
585 "selected: %s code_rate_%s: 0x%02x\n",