Lines Matching +full:sense +full:- +full:freq
1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2003-2004 Alex Woods <linux-dvb@giblets.org>
39 struct ttusbdecfe_state* state = fe->demodulator_priv; in ttusbdecfe_dvbt_read_status()
47 ret=state->config->send_command(fe, 0x73, sizeof(b), b, &len, result); in ttusbdecfe_dvbt_read_status()
53 return -EIO; in ttusbdecfe_dvbt_read_status()
70 return -EIO; in ttusbdecfe_dvbt_read_status()
78 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in ttusbdecfe_dvbt_set_frontend()
79 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_dvbt_set_frontend()
86 __be32 freq = htonl(p->frequency / 1000); in ttusbdecfe_dvbt_set_frontend() local
87 memcpy(&b[4], &freq, sizeof (u32)); in ttusbdecfe_dvbt_set_frontend()
88 state->config->send_command(fe, 0x71, sizeof(b), b, NULL, NULL); in ttusbdecfe_dvbt_set_frontend()
96 fesettings->min_delay_ms = 1500; in ttusbdecfe_dvbt_get_tune_settings()
97 /* Drift compensation makes no sense for DVB-T */ in ttusbdecfe_dvbt_get_tune_settings()
98 fesettings->step_size = 0; in ttusbdecfe_dvbt_get_tune_settings()
99 fesettings->max_drift = 0; in ttusbdecfe_dvbt_get_tune_settings()
105 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in ttusbdecfe_dvbs_set_frontend()
106 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_dvbs_set_frontend()
118 __be32 freq; in ttusbdecfe_dvbs_set_frontend() local
123 freq = htonl(p->frequency + in ttusbdecfe_dvbs_set_frontend()
124 (state->hi_band ? LOF_HI : LOF_LO)); in ttusbdecfe_dvbs_set_frontend()
125 memcpy(&b[4], &freq, sizeof(u32)); in ttusbdecfe_dvbs_set_frontend()
126 sym_rate = htonl(p->symbol_rate); in ttusbdecfe_dvbs_set_frontend()
128 band = htonl(state->hi_band ? LOF_HI : LOF_LO); in ttusbdecfe_dvbs_set_frontend()
130 lnb_voltage = htonl(state->voltage); in ttusbdecfe_dvbs_set_frontend()
133 state->config->send_command(fe, 0x71, sizeof(b), b, NULL, NULL); in ttusbdecfe_dvbs_set_frontend()
140 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_dvbs_diseqc_send_master_cmd()
145 if (cmd->msg_len > sizeof(b) - 4) in ttusbdecfe_dvbs_diseqc_send_master_cmd()
146 return -EINVAL; in ttusbdecfe_dvbs_diseqc_send_master_cmd()
148 memcpy(&b[4], cmd->msg, cmd->msg_len); in ttusbdecfe_dvbs_diseqc_send_master_cmd()
150 state->config->send_command(fe, 0x72, in ttusbdecfe_dvbs_diseqc_send_master_cmd()
151 sizeof(b) - (6 - cmd->msg_len), b, in ttusbdecfe_dvbs_diseqc_send_master_cmd()
161 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_dvbs_set_tone()
163 state->hi_band = (SEC_TONE_ON == tone); in ttusbdecfe_dvbs_set_tone()
172 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_dvbs_set_voltage()
176 state->voltage = 13; in ttusbdecfe_dvbs_set_voltage()
179 state->voltage = 18; in ttusbdecfe_dvbs_set_voltage()
182 return -EINVAL; in ttusbdecfe_dvbs_set_voltage()
190 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv; in ttusbdecfe_release()
206 state->config = config; in ttusbdecfe_dvbt_attach()
209 memcpy(&state->frontend.ops, &ttusbdecfe_dvbt_ops, sizeof(struct dvb_frontend_ops)); in ttusbdecfe_dvbt_attach()
210 state->frontend.demodulator_priv = state; in ttusbdecfe_dvbt_attach()
211 return &state->frontend; in ttusbdecfe_dvbt_attach()
226 state->config = config; in ttusbdecfe_dvbs_attach()
227 state->voltage = 0; in ttusbdecfe_dvbs_attach()
228 state->hi_band = 0; in ttusbdecfe_dvbs_attach()
231 memcpy(&state->frontend.ops, &ttusbdecfe_dvbs_ops, sizeof(struct dvb_frontend_ops)); in ttusbdecfe_dvbs_attach()
232 state->frontend.demodulator_priv = state; in ttusbdecfe_dvbs_attach()
233 return &state->frontend; in ttusbdecfe_dvbs_attach()
239 .name = "TechnoTrend/Hauppauge DEC2000-t Frontend",
262 .name = "TechnoTrend/Hauppauge DEC3000-s Frontend",
284 MODULE_DESCRIPTION("TTUSB DEC DVB-T/S Demodulator driver");