public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] v1.82 DM04/QQBOX dvb-usb-lmedm04 diseqc timing changes
@ 2011-03-26 23:29 Malcolm Priestley
  2011-04-02 12:47 ` Malcolm Priestley
  0 siblings, 1 reply; 2+ messages in thread
From: Malcolm Priestley @ 2011-03-26 23:29 UTC (permalink / raw)
  To: linux-media

Frontend timing change for diseqc functions.

Timing on the STV0288 and STV0299 frontends cause initial disegc errors
on some applications.


Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
 drivers/media/dvb/dvb-usb/lmedm04.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/media/dvb/dvb-usb/lmedm04.c b/drivers/media/dvb/dvb-usb/lmedm04.c
index ec0f5a7..91f239c 100644
--- a/drivers/media/dvb/dvb-usb/lmedm04.c
+++ b/drivers/media/dvb/dvb-usb/lmedm04.c
@@ -179,8 +179,6 @@ static int lme2510_usb_talk(struct dvb_usb_device *d,
 
 	ret |= lme2510_bulk_write(d->udev, buff, wlen , 0x01);
 
-	msleep(10);
-
 	ret |= usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, 0x01));
 
 	ret |= lme2510_bulk_read(d->udev, buff, (rlen > 512) ?
@@ -364,6 +362,7 @@ static int lme2510_msg(struct dvb_usb_device *d,
 					msleep(80);
 				}
 			}
+			msleep(20);
 			break;
 		case TUNER_S7395:
 			if (wbuf[2] == 0xd0) {
@@ -376,7 +375,7 @@ static int lme2510_msg(struct dvb_usb_device *d,
 					}
 				}
 				if ((wbuf[3] != 0x6) & (wbuf[3] != 0x5))
-					msleep(5);
+					msleep(20);
 			}
 			break;
 		case TUNER_S0194:
@@ -389,6 +388,8 @@ static int lme2510_msg(struct dvb_usb_device *d,
 						st->i2c_talk_onoff = 0;
 					}
 				}
+				if ((wbuf[3] != 0x9) & (wbuf[3] != 0x0a))
+					msleep(20);
 			}
 			break;
 		default:
@@ -1222,5 +1223,5 @@ module_exit(lme2510_module_exit);
 
 MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>");
 MODULE_DESCRIPTION("LME2510(C) DVB-S USB2.0");
-MODULE_VERSION("1.81");
+MODULE_VERSION("1.82");
 MODULE_LICENSE("GPL");
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-02 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26 23:29 [PATCH] v1.82 DM04/QQBOX dvb-usb-lmedm04 diseqc timing changes Malcolm Priestley
2011-04-02 12:47 ` Malcolm Priestley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox