aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/firewire/firedtv-fe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/firewire/firedtv-fe.c')
-rw-r--r--drivers/media/dvb/firewire/firedtv-fe.c35
1 files changed, 8 insertions, 27 deletions
diff --git a/drivers/media/dvb/firewire/firedtv-fe.c b/drivers/media/dvb/firewire/firedtv-fe.c
index 8748a61be73d..6fe9793b98b3 100644
--- a/drivers/media/dvb/firewire/firedtv-fe.c
+++ b/drivers/media/dvb/firewire/firedtv-fe.c
@@ -141,28 +141,12 @@ static int fdtv_read_uncorrected_blocks(struct dvb_frontend *fe, u32 *ucblocks)
141 return -EOPNOTSUPP; 141 return -EOPNOTSUPP;
142} 142}
143 143
144static int fdtv_set_frontend(struct dvb_frontend *fe, 144static int fdtv_set_frontend(struct dvb_frontend *fe)
145 struct dvb_frontend_parameters *params)
146{ 145{
146 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
147 struct firedtv *fdtv = fe->sec_priv; 147 struct firedtv *fdtv = fe->sec_priv;
148 148
149 return avc_tuner_dsd(fdtv, params); 149 return avc_tuner_dsd(fdtv, p);
150}
151
152static int fdtv_get_frontend(struct dvb_frontend *fe,
153 struct dvb_frontend_parameters *params)
154{
155 return -EOPNOTSUPP;
156}
157
158static int fdtv_get_property(struct dvb_frontend *fe, struct dtv_property *tvp)
159{
160 return 0;
161}
162
163static int fdtv_set_property(struct dvb_frontend *fe, struct dtv_property *tvp)
164{
165 return 0;
166} 150}
167 151
168void fdtv_frontend_init(struct firedtv *fdtv, const char *name) 152void fdtv_frontend_init(struct firedtv *fdtv, const char *name)
@@ -174,10 +158,6 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name)
174 ops->sleep = fdtv_sleep; 158 ops->sleep = fdtv_sleep;
175 159
176 ops->set_frontend = fdtv_set_frontend; 160 ops->set_frontend = fdtv_set_frontend;
177 ops->get_frontend = fdtv_get_frontend;
178
179 ops->get_property = fdtv_get_property;
180 ops->set_property = fdtv_set_property;
181 161
182 ops->read_status = fdtv_read_status; 162 ops->read_status = fdtv_read_status;
183 ops->read_ber = fdtv_read_ber; 163 ops->read_ber = fdtv_read_ber;
@@ -192,7 +172,7 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name)
192 172
193 switch (fdtv->type) { 173 switch (fdtv->type) {
194 case FIREDTV_DVB_S: 174 case FIREDTV_DVB_S:
195 fi->type = FE_QPSK; 175 ops->delsys[0] = SYS_DVBS;
196 176
197 fi->frequency_min = 950000; 177 fi->frequency_min = 950000;
198 fi->frequency_max = 2150000; 178 fi->frequency_max = 2150000;
@@ -211,7 +191,8 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name)
211 break; 191 break;
212 192
213 case FIREDTV_DVB_S2: 193 case FIREDTV_DVB_S2:
214 fi->type = FE_QPSK; 194 ops->delsys[0] = SYS_DVBS;
195 ops->delsys[1] = SYS_DVBS2;
215 196
216 fi->frequency_min = 950000; 197 fi->frequency_min = 950000;
217 fi->frequency_max = 2150000; 198 fi->frequency_max = 2150000;
@@ -231,7 +212,7 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name)
231 break; 212 break;
232 213
233 case FIREDTV_DVB_C: 214 case FIREDTV_DVB_C:
234 fi->type = FE_QAM; 215 ops->delsys[0] = SYS_DVBC_ANNEX_A;
235 216
236 fi->frequency_min = 47000000; 217 fi->frequency_min = 47000000;
237 fi->frequency_max = 866000000; 218 fi->frequency_max = 866000000;
@@ -249,7 +230,7 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name)
249 break; 230 break;
250 231
251 case FIREDTV_DVB_T: 232 case FIREDTV_DVB_T:
252 fi->type = FE_OFDM; 233 ops->delsys[0] = SYS_DVBT;
253 234
254 fi->frequency_min = 49000000; 235 fi->frequency_min = 49000000;
255 fi->frequency_max = 861000000; 236 fi->frequency_max = 861000000;