aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/frontends/mt312.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/mt312.c b/drivers/media/dvb/frontends/mt312.c
index b03a959ef2e8..32b419477887 100644
--- a/drivers/media/dvb/frontends/mt312.c
+++ b/drivers/media/dvb/frontends/mt312.c
@@ -270,7 +270,7 @@ static int mt312_initfe(struct dvb_frontend *fe)
270 MT312_SYS_CLK) * 2, 1000000); 270 MT312_SYS_CLK) * 2, 1000000);
271 271
272 /* DISEQC_RATIO */ 272 /* DISEQC_RATIO */
273 buf[1] = mt312_div(MT312_PLL_CLK, 15000 * 4); 273 buf[1] = mt312_div(MT312_PLL_CLK, 22000 * 4);
274 274
275 ret = mt312_write(state, SYS_CLK, buf, sizeof(buf)); 275 ret = mt312_write(state, SYS_CLK, buf, sizeof(buf));
276 if (ret < 0) 276 if (ret < 0)
@@ -323,6 +323,9 @@ static int mt312_send_master_cmd(struct dvb_frontend *fe,
323 if (ret < 0) 323 if (ret < 0)
324 return ret; 324 return ret;
325 325
326 /* is there a better way to wait for message to be transmitted */
327 msleep(100);
328
326 /* set DISEQC_MODE[2:0] to zero if a return message is expected */ 329 /* set DISEQC_MODE[2:0] to zero if a return message is expected */
327 if (c->msg[0] & 0x02) { 330 if (c->msg[0] & 0x02) {
328 ret = mt312_writereg(state, DISEQC_MODE, (diseqc_mode & 0x40)); 331 ret = mt312_writereg(state, DISEQC_MODE, (diseqc_mode & 0x40));