diff options
author | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2005-07-12 16:59:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-12 19:01:06 -0400 |
commit | 330a115ae46e7d7b5fe2d4e506ba8ae2e0027143 (patch) | |
tree | 0dbeceba9967097a3a38a5df97c37112b897b906 /drivers/media/video/saa7134/saa7134-input.c | |
parent | 85369df350b138f26eac779da33de0960635ca4d (diff) |
[PATCH] v4l: SAA7134 Update
- Corrected all cards marked as 7135 cards to 7133.
- Add new card support for Compro VideoMate TV Gold+II.
- Add new card support for Kworld Xpert TV PVR7134
- Add new card support for Typhoon DVB-T Cardbus.
- Changes to comply with CodingStyle: // comments converted to /* */
- Remove irq2_mask field from saa7134_dev structure.
- Collect all the bits needed in saa7134_hwinit2() instead.
- Distinguish the different variants of the Medion MD7134 modules via eeprom
- moved Philips FMD1216 radio specific setup to saa7134-core.c
- Fix kernel compile error with CONFIG_MODULES=n
- Cleanup tuner private calls.
- Some Indent fixes.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Hannibal <hannibal@megapolis.pl>
Signed-off-by: Elshin Roman <roxmail@list.ru>
Signed-off-by: Hermann Pitton <hermann.pitton@onlinehome.de>
Signed-off-by: Juergen Orschiedt <jorschiedt@web.de>
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-input.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index aba2b9de60de..213740122fe6 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: saa7134-input.c,v 1.19 2005/06/07 18:02:26 nsh Exp $ | 2 | * $Id: saa7134-input.c,v 1.21 2005/06/22 23:37:34 nsh Exp $ |
3 | * | 3 | * |
4 | * handle saa7134 IR remotes via linux kernel input layer. | 4 | * handle saa7134 IR remotes via linux kernel input layer. |
5 | * | 5 | * |
@@ -68,10 +68,8 @@ static IR_KEYTAB_TYPE flyvideo_codes[IR_KEYTAB_SIZE] = { | |||
68 | [ 6 ] = KEY_AGAIN, // Recal | 68 | [ 6 ] = KEY_AGAIN, // Recal |
69 | [ 16 ] = KEY_KPENTER, // Enter | 69 | [ 16 ] = KEY_KPENTER, // Enter |
70 | 70 | ||
71 | #if 1 /* FIXME */ | ||
72 | [ 26 ] = KEY_F22, // Stereo | 71 | [ 26 ] = KEY_F22, // Stereo |
73 | [ 24 ] = KEY_EDIT, // AV Source | 72 | [ 24 ] = KEY_EDIT, // AV Source |
74 | #endif | ||
75 | }; | 73 | }; |
76 | 74 | ||
77 | static IR_KEYTAB_TYPE cinergy_codes[IR_KEYTAB_SIZE] = { | 75 | static IR_KEYTAB_TYPE cinergy_codes[IR_KEYTAB_SIZE] = { |
@@ -172,45 +170,45 @@ static IR_KEYTAB_TYPE eztv_codes[IR_KEYTAB_SIZE] = { | |||
172 | }; | 170 | }; |
173 | 171 | ||
174 | static IR_KEYTAB_TYPE avacssmart_codes[IR_KEYTAB_SIZE] = { | 172 | static IR_KEYTAB_TYPE avacssmart_codes[IR_KEYTAB_SIZE] = { |
175 | [ 30 ] = KEY_POWER, // power | 173 | [ 30 ] = KEY_POWER, // power |
176 | [ 28 ] = KEY_SEARCH, // scan | 174 | [ 28 ] = KEY_SEARCH, // scan |
177 | [ 7 ] = KEY_SELECT, // source | 175 | [ 7 ] = KEY_SELECT, // source |
178 | 176 | ||
179 | [ 22 ] = KEY_VOLUMEUP, | 177 | [ 22 ] = KEY_VOLUMEUP, |
180 | [ 20 ] = KEY_VOLUMEDOWN, | 178 | [ 20 ] = KEY_VOLUMEDOWN, |
181 | [ 31 ] = KEY_CHANNELUP, | 179 | [ 31 ] = KEY_CHANNELUP, |
182 | [ 23 ] = KEY_CHANNELDOWN, | 180 | [ 23 ] = KEY_CHANNELDOWN, |
183 | [ 24 ] = KEY_MUTE, | 181 | [ 24 ] = KEY_MUTE, |
184 | 182 | ||
185 | [ 2 ] = KEY_KP0, | 183 | [ 2 ] = KEY_KP0, |
186 | [ 1 ] = KEY_KP1, | 184 | [ 1 ] = KEY_KP1, |
187 | [ 11 ] = KEY_KP2, | 185 | [ 11 ] = KEY_KP2, |
188 | [ 27 ] = KEY_KP3, | 186 | [ 27 ] = KEY_KP3, |
189 | [ 5 ] = KEY_KP4, | 187 | [ 5 ] = KEY_KP4, |
190 | [ 9 ] = KEY_KP5, | 188 | [ 9 ] = KEY_KP5, |
191 | [ 21 ] = KEY_KP6, | 189 | [ 21 ] = KEY_KP6, |
192 | [ 6 ] = KEY_KP7, | 190 | [ 6 ] = KEY_KP7, |
193 | [ 10 ] = KEY_KP8, | 191 | [ 10 ] = KEY_KP8, |
194 | [ 18 ] = KEY_KP9, | 192 | [ 18 ] = KEY_KP9, |
195 | [ 16 ] = KEY_KPDOT, | 193 | [ 16 ] = KEY_KPDOT, |
196 | 194 | ||
197 | [ 3 ] = KEY_TUNER, // tv/fm | 195 | [ 3 ] = KEY_TUNER, // tv/fm |
198 | [ 4 ] = KEY_REWIND, // fm tuning left or function left | 196 | [ 4 ] = KEY_REWIND, // fm tuning left or function left |
199 | [ 12 ] = KEY_FORWARD, // fm tuning right or function right | 197 | [ 12 ] = KEY_FORWARD, // fm tuning right or function right |
200 | 198 | ||
201 | [ 0 ] = KEY_RECORD, | 199 | [ 0 ] = KEY_RECORD, |
202 | [ 8 ] = KEY_STOP, | 200 | [ 8 ] = KEY_STOP, |
203 | [ 17 ] = KEY_PLAY, | 201 | [ 17 ] = KEY_PLAY, |
204 | 202 | ||
205 | [ 25 ] = KEY_ZOOM, | 203 | [ 25 ] = KEY_ZOOM, |
206 | [ 14 ] = KEY_MENU, // function | 204 | [ 14 ] = KEY_MENU, // function |
207 | [ 19 ] = KEY_AGAIN, // recall | 205 | [ 19 ] = KEY_AGAIN, // recall |
208 | [ 29 ] = KEY_RESTART, // reset | 206 | [ 29 ] = KEY_RESTART, // reset |
207 | [ 26 ] = KEY_SHUFFLE, // snapshot/shuffle | ||
209 | 208 | ||
210 | // FIXME | 209 | // FIXME |
211 | [ 13 ] = KEY_F21, // mts | 210 | [ 13 ] = KEY_F21, // mts |
212 | [ 15 ] = KEY_F22, // min | 211 | [ 15 ] = KEY_F22, // min |
213 | [ 26 ] = KEY_F23, // freeze | ||
214 | }; | 212 | }; |
215 | 213 | ||
216 | /* Alex Hermann <gaaf@gmx.net> */ | 214 | /* Alex Hermann <gaaf@gmx.net> */ |
@@ -489,13 +487,14 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
489 | break; | 487 | break; |
490 | case SAA7134_BOARD_ECS_TVP3XP: | 488 | case SAA7134_BOARD_ECS_TVP3XP: |
491 | case SAA7134_BOARD_ECS_TVP3XP_4CB5: | 489 | case SAA7134_BOARD_ECS_TVP3XP_4CB5: |
492 | ir_codes = eztv_codes; | 490 | ir_codes = eztv_codes; |
493 | mask_keycode = 0x00017c; | 491 | mask_keycode = 0x00017c; |
494 | mask_keyup = 0x000002; | 492 | mask_keyup = 0x000002; |
495 | polling = 50; // ms | 493 | polling = 50; // ms |
496 | break; | 494 | break; |
495 | case SAA7134_BOARD_KWORLD_XPERT: | ||
497 | case SAA7134_BOARD_AVACSSMARTTV: | 496 | case SAA7134_BOARD_AVACSSMARTTV: |
498 | ir_codes = avacssmart_codes; | 497 | ir_codes = avacssmart_codes; |
499 | mask_keycode = 0x00001F; | 498 | mask_keycode = 0x00001F; |
500 | mask_keyup = 0x000020; | 499 | mask_keyup = 0x000020; |
501 | polling = 50; // ms | 500 | polling = 50; // ms |
@@ -524,6 +523,7 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
524 | polling = 50; // ms | 523 | polling = 50; // ms |
525 | break; | 524 | break; |
526 | case SAA7134_BOARD_VIDEOMATE_TV_PVR: | 525 | case SAA7134_BOARD_VIDEOMATE_TV_PVR: |
526 | case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII: | ||
527 | ir_codes = videomate_tv_pvr_codes; | 527 | ir_codes = videomate_tv_pvr_codes; |
528 | mask_keycode = 0x00003F; | 528 | mask_keycode = 0x00003F; |
529 | mask_keyup = 0x400000; | 529 | mask_keyup = 0x400000; |