Skip to content

Commit aa0bb3b

Browse files
palosaariJiri Slaby
authored andcommitted
media: tda10071: force modulation to QPSK on DVB-S
commit db4175a upstream. Only supported modulation for DVB-S is QPSK. Modulation parameter contains invalid value for DVB-S on some cases, which leads driver refusing tuning attempt. Due to that, hard code modulation to QPSK in case of DVB-S. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
1 parent 21e636e commit aa0bb3b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎drivers/media/dvb-frontends/tda10071.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ static int tda10071_set_frontend(struct dvb_frontend *fe)
667667
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
668668
int ret, i;
669669
u8 mode, rolloff, pilot, inversion, div;
670+
fe_modulation_t modulation;
670671

671672
dev_dbg(&priv->i2c->dev, "%s: delivery_system=%d modulation=%d " \
672673
"frequency=%d symbol_rate=%d inversion=%d pilot=%d " \
@@ -701,10 +702,13 @@ static int tda10071_set_frontend(struct dvb_frontend *fe)
701702

702703
switch (c->delivery_system) {
703704
case SYS_DVBS:
705+
modulation = QPSK;
704706
rolloff = 0;
705707
pilot = 2;
706708
break;
707709
case SYS_DVBS2:
710+
modulation = c->modulation;
711+
708712
switch (c->rolloff) {
709713
case ROLLOFF_20:
710714
rolloff = 2;
@@ -749,7 +753,7 @@ static int tda10071_set_frontend(struct dvb_frontend *fe)
749753

750754
for (i = 0, mode = 0xff; i < ARRAY_SIZE(TDA10071_MODCOD); i++) {
751755
if (c->delivery_system == TDA10071_MODCOD[i].delivery_system &&
752-
c->modulation == TDA10071_MODCOD[i].modulation &&
756+
modulation == TDA10071_MODCOD[i].modulation &&
753757
c->fec_inner == TDA10071_MODCOD[i].fec) {
754758
mode = TDA10071_MODCOD[i].val;
755759
dev_dbg(&priv->i2c->dev, "%s: mode found=%02x\n",

0 commit comments

Comments
 (0)