aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-06-26 16:03:00 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:37:10 -0400
commitbf1ece6a4f30f05b227f2ec59fa0d45b5db186d2 (patch)
tree38dce049e8ed7b465cf210252212b188dcb9a07e /drivers/media
parent27cf8fd14e44d17b22f3591ef65d6920fb9e0409 (diff)
V4L/DVB (9059): saa7134: Add support for Encore version 5.3 board
Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) for sponsoring this development. Signed-off-by: Gilberto <gilberto@sistemafenix.com.br> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/common/ir-keymaps.c43
-rw-r--r--drivers/media/video/saa7134/saa7134-cards.c43
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c6
-rw-r--r--drivers/media/video/saa7134/saa7134.h1
4 files changed, 93 insertions, 0 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c
index aedfabd57388..891f3b30be06 100644
--- a/drivers/media/common/ir-keymaps.c
+++ b/drivers/media/common/ir-keymaps.c
@@ -2288,3 +2288,46 @@ IR_KEYTAB_TYPE ir_codes_avermedia_a16d[IR_KEYTAB_SIZE] = {
2288 [0x2a] = KEY_MENU, 2288 [0x2a] = KEY_MENU,
2289}; 2289};
2290EXPORT_SYMBOL_GPL(ir_codes_avermedia_a16d); 2290EXPORT_SYMBOL_GPL(ir_codes_avermedia_a16d);
2291
2292/* Encore ENLTV-FM v5.3
2293 Mauro Carvalho Chehab <mchehab@infradead.org>
2294 */
2295IR_KEYTAB_TYPE ir_codes_encore_enltv_fm53[IR_KEYTAB_SIZE] = {
2296 [0x10] = KEY_POWER2,
2297 [0x06] = KEY_MUTE,
2298
2299 [0x09] = KEY_1,
2300 [0x1d] = KEY_2,
2301 [0x1f] = KEY_3,
2302 [0x19] = KEY_4,
2303 [0x1b] = KEY_5,
2304 [0x11] = KEY_6,
2305 [0x17] = KEY_7,
2306 [0x12] = KEY_8,
2307 [0x16] = KEY_9,
2308 [0x48] = KEY_0,
2309
2310 [0x04] = KEY_LIST, /* -/-- */
2311 [0x40] = KEY_LAST, /* recall */
2312
2313 [0x02] = KEY_MODE, /* TV/AV */
2314 [0x05] = KEY_SHUFFLE, /* SNAPSHOT */
2315
2316 [0x4c] = KEY_CHANNELUP, /* UP */
2317 [0x00] = KEY_CHANNELDOWN, /* DOWN */
2318 [0x0d] = KEY_VOLUMEUP, /* RIGHT */
2319 [0x15] = KEY_VOLUMEDOWN, /* LEFT */
2320 [0x49] = KEY_ENTER, /* OK */
2321
2322 [0x54] = KEY_RECORD,
2323 [0x4d] = KEY_PLAY, /* pause */
2324
2325 [0x1e] = KEY_UP, /* video setting */
2326 [0x0e] = KEY_RIGHT, /* <- */
2327 [0x1a] = KEY_LEFT, /* -> */
2328
2329 [0x0a] = KEY_DOWN, /* video default */
2330 [0x0c] = KEY_ZOOM, /* hide pannel */
2331 [0x47] = KEY_SLEEP, /* shutdown */
2332};
2333EXPORT_SYMBOL_GPL(ir_codes_encore_enltv_fm53);
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c
index 4f32486a10d6..3ad5b941dfb9 100644
--- a/drivers/media/video/saa7134/saa7134-cards.c
+++ b/drivers/media/video/saa7134/saa7134-cards.c
@@ -3392,6 +3392,42 @@ struct saa7134_board saa7134_boards[] = {
3392 .amux = 0, 3392 .amux = 0,
3393 }, 3393 },
3394 }, 3394 },
3395 [SAA7134_BOARD_ENCORE_ENLTV_FM53] = {
3396 .name = "Encore ENLTV-FM v5.3",
3397 .audio_clock = 0x00200000,
3398 .tuner_type = TUNER_TNF_5335MF,
3399 .radio_type = UNSET,
3400 .tuner_addr = ADDR_UNSET,
3401 .radio_addr = ADDR_UNSET,
3402 .gpiomask = 0x7000,
3403 .inputs = { {
3404 .name = name_tv,
3405 .vmux = 1,
3406 .amux = 1,
3407 .tv = 1,
3408 .gpio = 0x50000,
3409 }, {
3410 .name = name_comp1,
3411 .vmux = 3,
3412 .amux = 2,
3413 .gpio = 0x2000,
3414 }, {
3415 .name = name_svideo,
3416 .vmux = 8,
3417 .amux = 2,
3418 .gpio = 0x2000,
3419 } },
3420 .radio = {
3421 .name = name_radio,
3422 .vmux = 1,
3423 .amux = 1,
3424 },
3425 .mute = {
3426 .name = name_mute,
3427 .gpio = 0xf000,
3428 .amux = 0,
3429 },
3430 },
3395 [SAA7134_BOARD_CINERGY_HT_PCI] = { 3431 [SAA7134_BOARD_CINERGY_HT_PCI] = {
3396 .name = "Terratec Cinergy HT PCI", 3432 .name = "Terratec Cinergy HT PCI",
3397 .audio_clock = 0x00187de7, 3433 .audio_clock = 0x00187de7,
@@ -5191,6 +5227,12 @@ struct pci_device_id saa7134_pci_tbl[] = {
5191 .driver_data = SAA7134_BOARD_ENCORE_ENLTV_FM, 5227 .driver_data = SAA7134_BOARD_ENCORE_ENLTV_FM,
5192 },{ 5228 },{
5193 .vendor = PCI_VENDOR_ID_PHILIPS, 5229 .vendor = PCI_VENDOR_ID_PHILIPS,
5230 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
5231 .subvendor = 0x1a7f,
5232 .subdevice = 0x2008,
5233 .driver_data = SAA7134_BOARD_ENCORE_ENLTV_FM53,
5234 }, {
5235 .vendor = PCI_VENDOR_ID_PHILIPS,
5194 .device = PCI_DEVICE_ID_PHILIPS_SAA7133, 5236 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
5195 .subvendor = 0x153b, 5237 .subvendor = 0x153b,
5196 .subdevice = 0x1175, 5238 .subdevice = 0x1175,
@@ -5684,6 +5726,7 @@ int saa7134_board_init1(struct saa7134_dev *dev)
5684 case SAA7134_BOARD_AVERMEDIA_A16AR: 5726 case SAA7134_BOARD_AVERMEDIA_A16AR:
5685 case SAA7134_BOARD_ENCORE_ENLTV: 5727 case SAA7134_BOARD_ENCORE_ENLTV:
5686 case SAA7134_BOARD_ENCORE_ENLTV_FM: 5728 case SAA7134_BOARD_ENCORE_ENLTV_FM:
5729 case SAA7134_BOARD_ENCORE_ENLTV_FM53:
5687 case SAA7134_BOARD_10MOONSTVMASTER3: 5730 case SAA7134_BOARD_10MOONSTVMASTER3:
5688 case SAA7134_BOARD_BEHOLD_401: 5731 case SAA7134_BOARD_BEHOLD_401:
5689 case SAA7134_BOARD_BEHOLD_403: 5732 case SAA7134_BOARD_BEHOLD_403:
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index ac6beb2df83d..f1767309b1e8 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -509,6 +509,12 @@ int saa7134_input_init1(struct saa7134_dev *dev)
509 mask_keyup = 0x040000; 509 mask_keyup = 0x040000;
510 polling = 50; // ms 510 polling = 50; // ms
511 break; 511 break;
512 case SAA7134_BOARD_ENCORE_ENLTV_FM53:
513 ir_codes = ir_codes_encore_enltv_fm53;
514 mask_keydown = 0x0040000;
515 mask_keycode = 0x00007f;
516 nec_gpio = 1;
517 break;
512 case SAA7134_BOARD_10MOONSTVMASTER3: 518 case SAA7134_BOARD_10MOONSTVMASTER3:
513 ir_codes = ir_codes_encore_enltv; 519 ir_codes = ir_codes_encore_enltv;
514 mask_keycode = 0x5f80000; 520 mask_keycode = 0x5f80000;
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h
index 4005335c4f55..982003d49dda 100644
--- a/drivers/media/video/saa7134/saa7134.h
+++ b/drivers/media/video/saa7134/saa7134.h
@@ -270,6 +270,7 @@ struct saa7134_format {
270#define SAA7134_BOARD_AVERMEDIA_M103 145 270#define SAA7134_BOARD_AVERMEDIA_M103 145
271#define SAA7134_BOARD_ASUSTeK_P7131_ANALOG 146 271#define SAA7134_BOARD_ASUSTeK_P7131_ANALOG 146
272#define SAA7134_BOARD_ASUSTeK_TIGER_3IN1 147 272#define SAA7134_BOARD_ASUSTeK_TIGER_3IN1 147
273#define SAA7134_BOARD_ENCORE_ENLTV_FM53 148
273 274
274#define SAA7134_MAXBOARDS 8 275#define SAA7134_MAXBOARDS 8
275#define SAA7134_INPUT_MAX 8 276#define SAA7134_INPUT_MAX 8