diff options
author | Andrew Hodgson <a.s.hodgson@gmail.com> | 2005-07-07 20:58:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:24:02 -0400 |
commit | 58769a5486bec8ed44b3b51029f8df8f13cddd5a (patch) | |
tree | 442ef9e0e2249612cae437a11833adf51157b120 /drivers/media/dvb | |
parent | 1df896aa239caf72483655290c40b21da536d85e (diff) |
[PATCH] dvb: usb: A800 rc and timeout fixes
o add some remote control codes
o not using HZ for control_msg-timeout
Signed-off-by: Andrew Hodgson <a.s.hodgson@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/a800.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/a800.c b/drivers/media/dvb/dvb-usb/a800.c index a3542935604f..672037c22819 100644 --- a/drivers/media/dvb/dvb-usb/a800.c +++ b/drivers/media/dvb/dvb-usb/a800.c | |||
@@ -61,6 +61,12 @@ static struct dvb_usb_rc_key a800_rc_keys[] = { | |||
61 | { 0x02, 0x00, KEY_LAST }, /* >>| / BLUE */ | 61 | { 0x02, 0x00, KEY_LAST }, /* >>| / BLUE */ |
62 | { 0x02, 0x04, KEY_EPG }, /* EPG */ | 62 | { 0x02, 0x04, KEY_EPG }, /* EPG */ |
63 | { 0x02, 0x15, KEY_MENU }, /* MENU */ | 63 | { 0x02, 0x15, KEY_MENU }, /* MENU */ |
64 | |||
65 | { 0x03, 0x03, KEY_CHANNELUP }, /* CH UP */ | ||
66 | { 0x03, 0x02, KEY_CHANNELDOWN }, /* CH DOWN */ | ||
67 | { 0x03, 0x01, KEY_FIRST }, /* |<< / GREEN */ | ||
68 | { 0x03, 0x00, KEY_LAST }, /* >>| / BLUE */ | ||
69 | |||
64 | }; | 70 | }; |
65 | 71 | ||
66 | int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | 72 | int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state) |
@@ -68,7 +74,7 @@ int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | |||
68 | u8 key[5]; | 74 | u8 key[5]; |
69 | if (usb_control_msg(d->udev,usb_rcvctrlpipe(d->udev,0), | 75 | if (usb_control_msg(d->udev,usb_rcvctrlpipe(d->udev,0), |
70 | 0x04, USB_TYPE_VENDOR | USB_DIR_IN, 0, 0, key, 5, | 76 | 0x04, USB_TYPE_VENDOR | USB_DIR_IN, 0, 0, key, 5, |
71 | 2*HZ) != 5) | 77 | 2000) != 5) |
72 | return -ENODEV; | 78 | return -ENODEV; |
73 | 79 | ||
74 | /* call the universal NEC remote processor, to find out the key's state and event */ | 80 | /* call the universal NEC remote processor, to find out the key's state and event */ |