diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-12 15:04:47 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-12 15:04:47 +0000 |
commit | 7c2d7dea2638ea0ef62a6fc319459f3462c46589 (patch) | |
tree | b2b709fd5e6429b0651f3298d553a2ed24c97a38 /linux/drivers/media/dvb/frontends | |
parent | a9b1735512787516f8d717946f4465aeccc0a46a (diff) | |
download | mediapointer-dvb-s2-7c2d7dea2638ea0ef62a6fc319459f3462c46589.tar.gz mediapointer-dvb-s2-7c2d7dea2638ea0ef62a6fc319459f3462c46589.tar.bz2 |
mt312: Fix diseqc
From: Matthias Schwarzott <zzam@gentoo.org>
Correct the frequency of the emitted diseqc signal to 22kHz.
Adds sleep(100) to wait for message to be transmitted.
For now the only user of mt312 is b2c2-flexcop, and it
does overwrite all diseqc related functions with own code.
Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r-- | linux/drivers/media/dvb/frontends/mt312.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt312.c b/linux/drivers/media/dvb/frontends/mt312.c index b03a959ef..32b419477 100644 --- a/linux/drivers/media/dvb/frontends/mt312.c +++ b/linux/drivers/media/dvb/frontends/mt312.c @@ -270,7 +270,7 @@ static int mt312_initfe(struct dvb_frontend *fe) MT312_SYS_CLK) * 2, 1000000); /* DISEQC_RATIO */ - buf[1] = mt312_div(MT312_PLL_CLK, 15000 * 4); + buf[1] = mt312_div(MT312_PLL_CLK, 22000 * 4); ret = mt312_write(state, SYS_CLK, buf, sizeof(buf)); if (ret < 0) @@ -323,6 +323,9 @@ static int mt312_send_master_cmd(struct dvb_frontend *fe, if (ret < 0) return ret; + /* is there a better way to wait for message to be transmitted */ + msleep(100); + /* set DISEQC_MODE[2:0] to zero if a return message is expected */ if (c->msg[0] & 0x02) { ret = mt312_writereg(state, DISEQC_MODE, (diseqc_mode & 0x40)); |