diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-26 13:46:46 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 06:54:52 -0500 |
commit | 955c41c09c9c1535b9c7bfb99f63e9a98ba29362 (patch) | |
tree | 387d05c80ed118b48c79e56f7226c19a26f21e53 /drivers/media/dvb/dvb-usb/friio-fe.c | |
parent | adcc8f0e196e05ff9cee69044251509ff891a21a (diff) |
[media] friio-fe: convert set_fontend to use DVBv5 parameters
Instead of using dvb_frontend_parameters struct, that were
designed for a subset of the supported standards, use the DVBv5
cache information.
Also, fill the supported delivery systems at dvb_frontend_ops
struct.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/friio-fe.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/friio-fe.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/dvb/dvb-usb/friio-fe.c b/drivers/media/dvb/dvb-usb/friio-fe.c index 7973aaf86453..375815d24fc5 100644 --- a/drivers/media/dvb/dvb-usb/friio-fe.c +++ b/drivers/media/dvb/dvb-usb/friio-fe.c | |||
@@ -283,22 +283,23 @@ static int jdvbt90502_set_property(struct dvb_frontend *fe, | |||
283 | } | 283 | } |
284 | 284 | ||
285 | static int jdvbt90502_get_frontend(struct dvb_frontend *fe, | 285 | static int jdvbt90502_get_frontend(struct dvb_frontend *fe, |
286 | struct dvb_frontend_parameters *p) | 286 | struct dtv_frontend_properties *p) |
287 | { | 287 | { |
288 | p->inversion = INVERSION_AUTO; | 288 | p->inversion = INVERSION_AUTO; |
289 | p->u.ofdm.bandwidth = BANDWIDTH_6_MHZ; | 289 | p->bandwidth_hz = 6000000; |
290 | p->u.ofdm.code_rate_HP = FEC_AUTO; | 290 | p->code_rate_HP = FEC_AUTO; |
291 | p->u.ofdm.code_rate_LP = FEC_AUTO; | 291 | p->code_rate_LP = FEC_AUTO; |
292 | p->u.ofdm.constellation = QAM_64; | 292 | p->modulation = QAM_64; |
293 | p->u.ofdm.transmission_mode = TRANSMISSION_MODE_AUTO; | 293 | p->transmission_mode = TRANSMISSION_MODE_AUTO; |
294 | p->u.ofdm.guard_interval = GUARD_INTERVAL_AUTO; | 294 | p->guard_interval = GUARD_INTERVAL_AUTO; |
295 | p->u.ofdm.hierarchy_information = HIERARCHY_AUTO; | 295 | p->hierarchy = HIERARCHY_AUTO; |
296 | return 0; | 296 | return 0; |
297 | } | 297 | } |
298 | 298 | ||
299 | static int jdvbt90502_set_frontend(struct dvb_frontend *fe, | 299 | static int jdvbt90502_set_frontend(struct dvb_frontend *fe) |
300 | struct dvb_frontend_parameters *p) | ||
301 | { | 300 | { |
301 | struct dtv_frontend_properties *p = &fe->dtv_property_cache; | ||
302 | |||
302 | /** | 303 | /** |
303 | * NOTE: ignore all the parameters except frequency. | 304 | * NOTE: ignore all the parameters except frequency. |
304 | * others should be fixed to the proper value for ISDB-T, | 305 | * others should be fixed to the proper value for ISDB-T, |
@@ -438,14 +439,13 @@ error: | |||
438 | } | 439 | } |
439 | 440 | ||
440 | static struct dvb_frontend_ops jdvbt90502_ops = { | 441 | static struct dvb_frontend_ops jdvbt90502_ops = { |
441 | 442 | .delsys = { SYS_ISDBT }, | |
442 | .info = { | 443 | .info = { |
443 | .name = "Comtech JDVBT90502 ISDB-T", | 444 | .name = "Comtech JDVBT90502 ISDB-T", |
444 | .type = FE_OFDM, | 445 | .type = FE_OFDM, |
445 | .frequency_min = 473000000, /* UHF 13ch, center */ | 446 | .frequency_min = 473000000, /* UHF 13ch, center */ |
446 | .frequency_max = 767142857, /* UHF 62ch, center */ | 447 | .frequency_max = 767142857, /* UHF 62ch, center */ |
447 | .frequency_stepsize = JDVBT90502_PLL_CLK / | 448 | .frequency_stepsize = JDVBT90502_PLL_CLK / JDVBT90502_PLL_DIVIDER, |
448 | JDVBT90502_PLL_DIVIDER, | ||
449 | .frequency_tolerance = 0, | 449 | .frequency_tolerance = 0, |
450 | 450 | ||
451 | /* NOTE: this driver ignores all parameters but frequency. */ | 451 | /* NOTE: this driver ignores all parameters but frequency. */ |
@@ -466,8 +466,8 @@ static struct dvb_frontend_ops jdvbt90502_ops = { | |||
466 | 466 | ||
467 | .set_property = jdvbt90502_set_property, | 467 | .set_property = jdvbt90502_set_property, |
468 | 468 | ||
469 | .set_frontend_legacy = jdvbt90502_set_frontend, | 469 | .set_frontend = jdvbt90502_set_frontend, |
470 | .get_frontend_legacy = jdvbt90502_get_frontend, | 470 | .get_frontend = jdvbt90502_get_frontend, |
471 | 471 | ||
472 | .read_status = jdvbt90502_read_status, | 472 | .read_status = jdvbt90502_read_status, |
473 | .read_signal_strength = jdvbt90502_read_signal_strength, | 473 | .read_signal_strength = jdvbt90502_read_signal_strength, |