summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2004-11-20 16:33:37 +0000
committerAndrew de Quincy <devnull@localhost>2004-11-20 16:33:37 +0000
commit2872ec5a377b4a0d8a1ca57d25313d865904b590 (patch)
treeec0335901083dbf5ff00bd60b7c639c252a37570 /linux/drivers/media/dvb/frontends
parente56acc30be779ef4d3bb4acd70ea5a3d7fb86996 (diff)
downloadmediapointer-dvb-s2-2872ec5a377b4a0d8a1ca57d25313d865904b590.tar.gz
mediapointer-dvb-s2-2872ec5a377b4a0d8a1ca57d25313d865904b590.tar.bz2
Fixed firmware upload problems.
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/tda1004x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda1004x.c b/linux/drivers/media/dvb/frontends/tda1004x.c
index ce7dbcf8f..2bf71b167 100644
--- a/linux/drivers/media/dvb/frontends/tda1004x.c
+++ b/linux/drivers/media/dvb/frontends/tda1004x.c
@@ -393,6 +393,11 @@ static int tda10046_fwupload(struct dvb_frontend* fe)
int ret;
const struct firmware *fw;
+ /* reset + wake up chip */
+ tda1004x_write_mask(state, TDA1004X_CONFC4, 1, 0);
+ tda1004x_write_mask(state, TDA10046H_CONF_TRISTATE1, 1, 0);
+ msleep(100);
+
/* don't re-upload unless necessary */
if (tda1004x_check_upload_ok(state, 0x20) == 0) return 0;
@@ -404,11 +409,6 @@ static int tda10046_fwupload(struct dvb_frontend* fe)
return ret;
}
- /* reset chip */
- tda1004x_write_mask(state, TDA1004X_CONFC4, 1, 0);
- tda1004x_write_mask(state, TDA10046H_CONF_TRISTATE1, 1, 0);
- msleep(10);
-
/* set parameters */
tda1004x_write_byteI(state, TDA10046H_CONFPLL2, 10);
tda1004x_write_byteI(state, TDA10046H_CONFPLL3, 0);