Commit 6e07d5c5 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] gp8psk-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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 955c41c0
...@@ -113,28 +113,12 @@ static int gp8psk_fe_get_tune_settings(struct dvb_frontend* fe, struct dvb_front ...@@ -113,28 +113,12 @@ static int gp8psk_fe_get_tune_settings(struct dvb_frontend* fe, struct dvb_front
return 0; return 0;
} }
static int gp8psk_fe_set_property(struct dvb_frontend *fe, static int gp8psk_fe_set_frontend(struct dvb_frontend *fe)
struct dtv_property *tvp)
{
deb_fe("%s(..)\n", __func__);
return 0;
}
static int gp8psk_fe_get_property(struct dvb_frontend *fe,
struct dtv_property *tvp)
{
deb_fe("%s(..)\n", __func__);
return 0;
}
static int gp8psk_fe_set_frontend(struct dvb_frontend* fe,
struct dvb_frontend_parameters *fep)
{ {
struct gp8psk_fe_state *state = fe->demodulator_priv; struct gp8psk_fe_state *state = fe->demodulator_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
u8 cmd[10]; u8 cmd[10];
u32 freq = fep->frequency * 1000; u32 freq = c->frequency * 1000;
int gp_product_id = le16_to_cpu(state->d->udev->descriptor.idProduct); int gp_product_id = le16_to_cpu(state->d->udev->descriptor.idProduct);
deb_fe("%s()\n", __func__); deb_fe("%s()\n", __func__);
...@@ -342,6 +326,7 @@ struct dvb_frontend * gp8psk_fe_attach(struct dvb_usb_device *d) ...@@ -342,6 +326,7 @@ struct dvb_frontend * gp8psk_fe_attach(struct dvb_usb_device *d)
static struct dvb_frontend_ops gp8psk_fe_ops = { static struct dvb_frontend_ops gp8psk_fe_ops = {
.delsys = { SYS_DVBS },
.info = { .info = {
.name = "Genpix DVB-S", .name = "Genpix DVB-S",
.type = FE_QPSK, .type = FE_QPSK,
...@@ -366,9 +351,7 @@ static struct dvb_frontend_ops gp8psk_fe_ops = { ...@@ -366,9 +351,7 @@ static struct dvb_frontend_ops gp8psk_fe_ops = {
.init = NULL, .init = NULL,
.sleep = NULL, .sleep = NULL,
.set_property = gp8psk_fe_set_property, .set_frontend = gp8psk_fe_set_frontend,
.get_property = gp8psk_fe_get_property,
.set_frontend_legacy = gp8psk_fe_set_frontend,
.get_tune_settings = gp8psk_fe_get_tune_settings, .get_tune_settings = gp8psk_fe_get_tune_settings,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment