diff options
author | Jarod Wilson <jarod@redhat.com> | 2011-03-04 15:31:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 18:24:19 -0400 |
commit | dc8e2aa3b5a6c13baa77709bcaa2e7e483d9d006 (patch) | |
tree | 16cf217ad8b93ebbb16f9095e917ab5e7be19c16 /drivers/media/video/hdpvr | |
parent | 6e5b960176980852187b6f0bafa3db78130be42f (diff) |
[media] hdpvr: use same polling interval as other OS
The hdpvr's IR part, in short, sucks. As observed with a usb traffic
sniffer, the Windows software for it uses a polling interval of 405ms.
Its still not behaving as well as I'd like even with this change, but
this inches us closer and closer to that point...
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/hdpvr')
-rw-r--r-- | drivers/media/video/hdpvr/hdpvr-i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/hdpvr/hdpvr-i2c.c b/drivers/media/video/hdpvr/hdpvr-i2c.c index de69bae9bac..2a1ac287591 100644 --- a/drivers/media/video/hdpvr/hdpvr-i2c.c +++ b/drivers/media/video/hdpvr/hdpvr-i2c.c | |||
@@ -56,6 +56,7 @@ struct i2c_client *hdpvr_register_ir_rx_i2c(struct hdpvr_device *dev) | |||
56 | init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; | 56 | init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; |
57 | init_data->type = RC_TYPE_RC5; | 57 | init_data->type = RC_TYPE_RC5; |
58 | init_data->name = "HD-PVR"; | 58 | init_data->name = "HD-PVR"; |
59 | init_data->polling_interval = 405; /* ms, duplicated from Windows */ | ||
59 | hdpvr_ir_rx_i2c_board_info.platform_data = init_data; | 60 | hdpvr_ir_rx_i2c_board_info.platform_data = init_data; |
60 | 61 | ||
61 | return i2c_new_device(&dev->i2c_adapter, &hdpvr_ir_rx_i2c_board_info); | 62 | return i2c_new_device(&dev->i2c_adapter, &hdpvr_ir_rx_i2c_board_info); |
@@ -191,7 +192,7 @@ static struct i2c_adapter hdpvr_i2c_adapter_template = { | |||
191 | 192 | ||
192 | static int hdpvr_activate_ir(struct hdpvr_device *dev) | 193 | static int hdpvr_activate_ir(struct hdpvr_device *dev) |
193 | { | 194 | { |
194 | char buffer[8]; | 195 | char buffer[2]; |
195 | 196 | ||
196 | mutex_lock(&dev->i2c_mutex); | 197 | mutex_lock(&dev->i2c_mutex); |
197 | 198 | ||