Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f1bd426 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] friio-fe: remove get_frontend() callback



This driver doesn't support getting frontend information and
it only works in automatic mode.

So, let's remove get_frontend() and update the cache at
set_frontend().

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 83a74ff8
Loading
Loading
Loading
Loading
+10 −17
Original line number Original line Diff line number Diff line
@@ -283,20 +283,6 @@ static int jdvbt90502_set_property(struct dvb_frontend *fe,
	return r;
	return r;
}
}


static int jdvbt90502_get_frontend(struct dvb_frontend *fe)
{
	struct dtv_frontend_properties *p = &fe->dtv_property_cache;
	p->inversion = INVERSION_AUTO;
	p->bandwidth_hz = 6000000;
	p->code_rate_HP = FEC_AUTO;
	p->code_rate_LP = FEC_AUTO;
	p->modulation = QAM_64;
	p->transmission_mode = TRANSMISSION_MODE_AUTO;
	p->guard_interval = GUARD_INTERVAL_AUTO;
	p->hierarchy = HIERARCHY_AUTO;
	return 0;
}

static int jdvbt90502_set_frontend(struct dvb_frontend *fe)
static int jdvbt90502_set_frontend(struct dvb_frontend *fe)
{
{
	struct dtv_frontend_properties *p = &fe->dtv_property_cache;
	struct dtv_frontend_properties *p = &fe->dtv_property_cache;
@@ -312,8 +298,16 @@ static int jdvbt90502_set_frontend(struct dvb_frontend *fe)


	deb_fe("%s: Freq:%d\n", __func__, p->frequency);
	deb_fe("%s: Freq:%d\n", __func__, p->frequency);


	/* for recovery from DTV_CLEAN */
	/* This driver only works on auto mode */
	fe->dtv_property_cache.delivery_system = SYS_ISDBT;
	p->inversion = INVERSION_AUTO;
	p->bandwidth_hz = 6000000;
	p->code_rate_HP = FEC_AUTO;
	p->code_rate_LP = FEC_AUTO;
	p->modulation = QAM_64;
	p->transmission_mode = TRANSMISSION_MODE_AUTO;
	p->guard_interval = GUARD_INTERVAL_AUTO;
	p->hierarchy = HIERARCHY_AUTO;
	p->delivery_system = SYS_ISDBT;


	ret = jdvbt90502_pll_set_freq(state, p->frequency);
	ret = jdvbt90502_pll_set_freq(state, p->frequency);
	if (ret) {
	if (ret) {
@@ -466,7 +460,6 @@ static struct dvb_frontend_ops jdvbt90502_ops = {
	.set_property = jdvbt90502_set_property,
	.set_property = jdvbt90502_set_property,


	.set_frontend = jdvbt90502_set_frontend,
	.set_frontend = jdvbt90502_set_frontend,
	.get_frontend = jdvbt90502_get_frontend,


	.read_status = jdvbt90502_read_status,
	.read_status = jdvbt90502_read_status,
	.read_signal_strength = jdvbt90502_read_signal_strength,
	.read_signal_strength = jdvbt90502_read_signal_strength,