From 2872ec5a377b4a0d8a1ca57d25313d865904b590 Mon Sep 17 00:00:00 2001 From: Andrew de Quincy Date: Sat, 20 Nov 2004 16:33:37 +0000 Subject: Fixed firmware upload problems. --- linux/drivers/media/dvb/frontends/tda1004x.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'linux/drivers/media/dvb/frontends/tda1004x.c') 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); -- cgit v1.2.3