summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2008-12-01 10:51:14 +0100
committerPatrick Boettcher <pb@linuxtv.org>2008-12-01 10:51:14 +0100
commitfd3e91675d5c7b8c8a82af7f8e3c5d706e458791 (patch)
tree54aa302d75c22a59ec532c46591a5a2027ca29ae /linux/drivers/media/dvb/dvb-usb
parentfd418b6a655b77600b58eca51b4e373e03bf6e26 (diff)
downloadmediapointer-dvb-s2-fd3e91675d5c7b8c8a82af7f8e3c5d706e458791.tar.gz
mediapointer-dvb-s2-fd3e91675d5c7b8c8a82af7f8e3c5d706e458791.tar.bz2
dib0700: Stop repeating after user stops pushing button
From: Devin Heitmueller <devin.heitmueller@gmail.com> A user noticed that there would continue to be 4-6 keypresses even after the user stopped holding down the button. This was because we were not reading the bulk pipe faster than the firmware was injecting information, which would result in a backlog. Make the query interval faster, and increase the number of cycles before we start repeating to compensate. Thanks to Knud Poulsen <knud.poulsen@nokia.com> for pointing this out. Priority: high Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dib0700_devices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
index f28d3ae59..391732788 100644
--- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
+++ b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
@@ -446,13 +446,13 @@ static int stk7700ph_tuner_attach(struct dvb_usb_adapter *adap)
== NULL ? -ENODEV : 0;
}
-#define DEFAULT_RC_INTERVAL 150
+#define DEFAULT_RC_INTERVAL 50
static u8 rc_request[] = { REQUEST_POLL_RC, 0 };
/* Number of keypresses to ignore before start repeating */
-#define RC_REPEAT_DELAY 2
-#define RC_REPEAT_DELAY_V1_20 5
+#define RC_REPEAT_DELAY 6
+#define RC_REPEAT_DELAY_V1_20 10