mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
[media] si21xx: 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>
This commit is contained in:
parent
9f69afbe31
commit
14e3dcca4a
1 changed files with 3 additions and 18 deletions
|
@ -690,20 +690,7 @@ static int si21xx_setacquire(struct dvb_frontend *fe, int symbrate,
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int si21xx_set_property(struct dvb_frontend *fe, struct dtv_property *p)
|
static int si21xx_set_frontend(struct dvb_frontend *fe)
|
||||||
{
|
|
||||||
dprintk("%s(..)\n", __func__);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int si21xx_get_property(struct dvb_frontend *fe, struct dtv_property *p)
|
|
||||||
{
|
|
||||||
dprintk("%s(..)\n", __func__);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int si21xx_set_frontend(struct dvb_frontend *fe,
|
|
||||||
struct dvb_frontend_parameters *dfp)
|
|
||||||
{
|
{
|
||||||
struct si21xx_state *state = fe->demodulator_priv;
|
struct si21xx_state *state = fe->demodulator_priv;
|
||||||
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
||||||
|
@ -877,7 +864,7 @@ static void si21xx_release(struct dvb_frontend *fe)
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dvb_frontend_ops si21xx_ops = {
|
static struct dvb_frontend_ops si21xx_ops = {
|
||||||
|
.delsys = { SYS_DVBS },
|
||||||
.info = {
|
.info = {
|
||||||
.name = "SL SI21XX DVB-S",
|
.name = "SL SI21XX DVB-S",
|
||||||
.type = FE_QPSK,
|
.type = FE_QPSK,
|
||||||
|
@ -908,9 +895,7 @@ static struct dvb_frontend_ops si21xx_ops = {
|
||||||
.set_tone = si21xx_set_tone,
|
.set_tone = si21xx_set_tone,
|
||||||
.set_voltage = si21xx_set_voltage,
|
.set_voltage = si21xx_set_voltage,
|
||||||
|
|
||||||
.set_property = si21xx_set_property,
|
.set_frontend = si21xx_set_frontend,
|
||||||
.get_property = si21xx_get_property,
|
|
||||||
.set_frontend_legacy = si21xx_set_frontend,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dvb_frontend *si21xx_attach(const struct si21xx_config *config,
|
struct dvb_frontend *si21xx_attach(const struct si21xx_config *config,
|
||||||
|
|
Loading…
Add table
Reference in a new issue