Skip to content

Commit

Permalink
[media] DVB: dvb_frontend: Fix compatibility criteria for satellite r…
Browse files Browse the repository at this point in the history
…eceivers

  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>
  • Loading branch information
Andreas Oberritter authored and Mauro Carvalho Chehab committed Sep 3, 2011
1 parent 83dc314 commit 14f5579
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,16 +1132,13 @@ static void dtv_property_adv_params_sync(struct dvb_frontend *fe)
p->frequency = c->frequency;
p->inversion = c->inversion;

switch(c->modulation) {
case PSK_8:
case APSK_16:
case APSK_32:
case QPSK:
if (c->delivery_system == SYS_DSS ||
c->delivery_system == SYS_DVBS ||
c->delivery_system == SYS_DVBS2 ||
c->delivery_system == SYS_ISDBS ||
c->delivery_system == SYS_TURBO) {
p->u.qpsk.symbol_rate = c->symbol_rate;
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 */
Expand Down

0 comments on commit 14f5579

Please sign in to comment.