[media] DVB: dvb_frontend: Fix compatibility criteria for satellite receivers
identify a satellite receiver by its 'delivery_system' instead of 'modulation', which may overlap between different delivery systems. Signed-off-by: Andreas Oberritter <obi@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
83dc314bea
commit
14f55794b2
@ -1132,16 +1132,13 @@ static void dtv_property_adv_params_sync(struct dvb_frontend *fe)
|
|||||||
p->frequency = c->frequency;
|
p->frequency = c->frequency;
|
||||||
p->inversion = c->inversion;
|
p->inversion = c->inversion;
|
||||||
|
|
||||||
switch(c->modulation) {
|
if (c->delivery_system == SYS_DSS ||
|
||||||
case PSK_8:
|
c->delivery_system == SYS_DVBS ||
|
||||||
case APSK_16:
|
c->delivery_system == SYS_DVBS2 ||
|
||||||
case APSK_32:
|
c->delivery_system == SYS_ISDBS ||
|
||||||
case QPSK:
|
c->delivery_system == SYS_TURBO) {
|
||||||
p->u.qpsk.symbol_rate = c->symbol_rate;
|
p->u.qpsk.symbol_rate = c->symbol_rate;
|
||||||
p->u.qpsk.fec_inner = c->fec_inner;
|
p->u.qpsk.fec_inner = c->fec_inner;
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fake out a generic DVB-T request so we pass validation in the ioctl */
|
/* Fake out a generic DVB-T request so we pass validation in the ioctl */
|
||||||
|
Loading…
Reference in New Issue
Block a user