diff options
-rw-r--r-- | Documentation/dvb/README.dvb-usb | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/vp7045.c | 39 |
2 files changed, 35 insertions, 8 deletions
diff --git a/Documentation/dvb/README.dvb-usb b/Documentation/dvb/README.dvb-usb index 5811d48e4d71..4dfe812ca33b 100644 --- a/Documentation/dvb/README.dvb-usb +++ b/Documentation/dvb/README.dvb-usb | |||
@@ -226,7 +226,9 @@ Patches, comments and suggestions are very very welcome. | |||
226 | Jennifer Chen, Jeff and Jack from Twinhan for kindly supporting by | 226 | Jennifer Chen, Jeff and Jack from Twinhan for kindly supporting by |
227 | writing the vp7045-driver. | 227 | writing the vp7045-driver. |
228 | 228 | ||
229 | Some guys on the linux-dvb mailing list for encouraging me | 229 | Michael Paxton for submitting remote control keymaps. |
230 | |||
231 | Some guys on the linux-dvb mailing list for encouraging me. | ||
230 | 232 | ||
231 | Peter Schildmann >peter.schildmann-nospam-at-web.de< for his | 233 | Peter Schildmann >peter.schildmann-nospam-at-web.de< for his |
232 | user-level firmware loader, which saves a lot of time | 234 | user-level firmware loader, which saves a lot of time |
diff --git a/drivers/media/dvb/dvb-usb/vp7045.c b/drivers/media/dvb/dvb-usb/vp7045.c index 02ecc9a8e3b6..bb99cbc098fc 100644 --- a/drivers/media/dvb/dvb-usb/vp7045.c +++ b/drivers/media/dvb/dvb-usb/vp7045.c | |||
@@ -94,13 +94,38 @@ static int vp7045_power_ctrl(struct dvb_usb_device *d, int onoff) | |||
94 | /* The keymapping struct. Somehow this should be loaded to the driver, but | 94 | /* The keymapping struct. Somehow this should be loaded to the driver, but |
95 | * currently it is hardcoded. */ | 95 | * currently it is hardcoded. */ |
96 | static struct dvb_usb_rc_key vp7045_rc_keys[] = { | 96 | static struct dvb_usb_rc_key vp7045_rc_keys[] = { |
97 | /* insert the keys like this. to make the raw keys visible, enable | 97 | { 0x00, 0x16, KEY_POWER }, |
98 | * debug=0x04 when loading dvb-usb-vp7045. */ | 98 | { 0x00, 0x10, KEY_MUTE }, |
99 | 99 | { 0x00, 0x03, KEY_1 }, | |
100 | /* these keys are probably wrong. I don't have a working IR-receiver on my | 100 | { 0x00, 0x01, KEY_2 }, |
101 | * vp7045, so I can't test it. Patches are welcome. */ | 101 | { 0x00, 0x06, KEY_3 }, |
102 | { 0x00, 0x01, KEY_1 }, | 102 | { 0x00, 0x09, KEY_4 }, |
103 | { 0x00, 0x02, KEY_2 }, | 103 | { 0x00, 0x1d, KEY_5 }, |
104 | { 0x00, 0x1f, KEY_6 }, | ||
105 | { 0x00, 0x0d, KEY_7 }, | ||
106 | { 0x00, 0x19, KEY_8 }, | ||
107 | { 0x00, 0x1b, KEY_9 }, | ||
108 | { 0x00, 0x15, KEY_0 }, | ||
109 | { 0x00, 0x05, KEY_CHANNELUP }, | ||
110 | { 0x00, 0x02, KEY_CHANNELDOWN }, | ||
111 | { 0x00, 0x1e, KEY_VOLUMEUP }, | ||
112 | { 0x00, 0x0a, KEY_VOLUMEDOWN }, | ||
113 | { 0x00, 0x11, KEY_RECORD }, | ||
114 | { 0x00, 0x17, KEY_FAVORITES }, /* Heart symbol - Channel list. */ | ||
115 | { 0x00, 0x14, KEY_PLAY }, | ||
116 | { 0x00, 0x1a, KEY_STOP }, | ||
117 | { 0x00, 0x40, KEY_REWIND }, | ||
118 | { 0x00, 0x12, KEY_FASTFORWARD }, | ||
119 | { 0x00, 0x0e, KEY_PREVIOUS }, /* Recall - Previous channel. */ | ||
120 | { 0x00, 0x4c, KEY_PAUSE }, | ||
121 | { 0x00, 0x4d, KEY_SCREEN }, /* Full screen mode. */ | ||
122 | { 0x00, 0x54, KEY_AUDIO }, /* MTS - Switch to secondary audio. */ | ||
123 | { 0x00, 0xa1, KEY_CANCEL }, /* Cancel */ | ||
124 | { 0x00, 0x1c, KEY_EPG }, /* EPG */ | ||
125 | { 0x00, 0x40, KEY_TAB }, /* Tab */ | ||
126 | { 0x00, 0x48, KEY_INFO }, /* Preview */ | ||
127 | { 0x00, 0x04, KEY_LIST }, /* RecordList */ | ||
128 | { 0x00, 0x0f, KEY_TEXT } /* Teletext */ | ||
104 | }; | 129 | }; |
105 | 130 | ||
106 | static int vp7045_rc_query(struct dvb_usb_device *d, u32 *key_buf, int *state) | 131 | static int vp7045_rc_query(struct dvb_usb_device *d, u32 *key_buf, int *state) |