diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-26 16:03:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:37:10 -0400 |
commit | bf1ece6a4f30f05b227f2ec59fa0d45b5db186d2 (patch) | |
tree | 38dce049e8ed7b465cf210252212b188dcb9a07e /drivers/media/video/saa7134 | |
parent | 27cf8fd14e44d17b22f3591ef65d6920fb9e0409 (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/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-cards.c | 43 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 6 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134.h | 1 |
3 files changed, 50 insertions, 0 deletions
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 |