26 #define LOF_HI 10600000
27 #define LOF_LO 9750000
41 static int ttusbdecfe_dvbs_read_status(
struct dvb_frontend *fe,
50 static int ttusbdecfe_dvbt_read_status(
struct dvb_frontend *fe,
54 u8 b[] = { 0x00, 0x00, 0x00, 0x00,
55 0x00, 0x00, 0x00, 0x00 };
61 ret=state->
config->send_command(fe, 0x73,
sizeof(b), b, &len, result);
82 pr_info(
"%s: returned unknown value: %d\n",
90 static int ttusbdecfe_dvbt_set_frontend(
struct dvb_frontend *fe)
94 u8 b[] = { 0x00, 0x00, 0x00, 0x03,
95 0x00, 0x00, 0x00, 0x00,
96 0x00, 0x00, 0x00, 0x01,
97 0x00, 0x00, 0x00, 0xff,
98 0x00, 0x00, 0x00, 0xff };
107 static int ttusbdecfe_dvbt_get_tune_settings(
struct dvb_frontend* fe,
117 static int ttusbdecfe_dvbs_set_frontend(
struct dvb_frontend *fe)
122 u8 b[] = { 0x00, 0x00, 0x00, 0x01,
123 0x00, 0x00, 0x00, 0x00,
124 0x00, 0x00, 0x00, 0x01,
125 0x00, 0x00, 0x00, 0x00,
126 0x00, 0x00, 0x00, 0x00,
127 0x00, 0x00, 0x00, 0x00,
128 0x00, 0x00, 0x00, 0x00,
129 0x00, 0x00, 0x00, 0x00,
130 0x00, 0x00, 0x00, 0x00,
131 0x00, 0x00, 0x00, 0x00 };
137 freq =
htonl(
p->frequency +
140 sym_rate =
htonl(
p->symbol_rate);
145 memcpy(&b[28], &lnb_voltage,
sizeof(
u32));
155 u8 b[] = { 0x00, 0xff, 0x00, 0x00,
156 0x00, 0x00, 0x00, 0x00,
161 state->
config->send_command(fe, 0x72,
162 sizeof(b) - (6 -
cmd->msg_len), b,
248 .name =
"TechnoTrend/Hauppauge DEC2000-t Frontend",
249 .frequency_min = 51000000,
250 .frequency_max = 858000000,
251 .frequency_stepsize = 62500,
259 .release = ttusbdecfe_release,
261 .set_frontend = ttusbdecfe_dvbt_set_frontend,
263 .get_tune_settings = ttusbdecfe_dvbt_get_tune_settings,
265 .read_status = ttusbdecfe_dvbt_read_status,
271 .name =
"TechnoTrend/Hauppauge DEC3000-s Frontend",
272 .frequency_min = 950000,
273 .frequency_max = 2150000,
274 .frequency_stepsize = 125,
275 .symbol_rate_min = 1000000,
276 .symbol_rate_max = 45000000,
282 .release = ttusbdecfe_release,
284 .set_frontend = ttusbdecfe_dvbs_set_frontend,
286 .read_status = ttusbdecfe_dvbs_read_status,
288 .diseqc_send_master_cmd = ttusbdecfe_dvbs_diseqc_send_master_cmd,
289 .set_voltage = ttusbdecfe_dvbs_set_voltage,
290 .set_tone = ttusbdecfe_dvbs_set_tone,