public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Malcolm Priestley <tvboxspy@gmail.com>
To: linux-media@vger.kernel.org
Subject: [PATCH] v1.82 DM04/QQBOX dvb-usb-lmedm04 diseqc timing changes
Date: Sat, 26 Mar 2011 23:29:28 +0000	[thread overview]
Message-ID: <1301182168.7060.5.camel@localhost> (raw)

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


             reply	other threads:[~2011-03-26 23:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-26 23:29 Malcolm Priestley [this message]
2011-04-02 12:47 ` [PATCH] v1.82 DM04/QQBOX dvb-usb-lmedm04 diseqc timing changes Malcolm Priestley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1301182168.7060.5.camel@localhost \
    --to=tvboxspy@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox