aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorRamiro Morales <ramiro@rmorales.net>2010-12-26 16:13:30 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:17:17 -0500
commitb7a0f2e793a52b306e682a0e2e9a0b6f0f0a730e (patch)
tree137d0e3af908043048e1c08274762236ce637137 /drivers/media/video
parent44c6e2a7c2ec76dd495a0f330f9beac572a2fdd7 (diff)
[media] saa7134: Add support for Compro VideoMate Vista M1F
Signed-off-by: Pavel Osnova <pvosnova@gmail.com> Signed-off-by: Ramiro Morales <ramiro@rmorales.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/saa7134/saa7134-cards.c38
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c5
-rw-r--r--drivers/media/video/saa7134/saa7134.h1
3 files changed, 44 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c
index ff23e6ebdde4..e7aa588c6c5a 100644
--- a/drivers/media/video/saa7134/saa7134-cards.c
+++ b/drivers/media/video/saa7134/saa7134-cards.c
@@ -5538,6 +5538,37 @@ struct saa7134_board saa7134_boards[] = {
5538 .amux = LINE2, 5538 .amux = LINE2,
5539 } }, 5539 } },
5540 }, 5540 },
5541 [SAA7134_BOARD_VIDEOMATE_M1F] = {
5542 /* Pavel Osnova <pvosnova@gmail.com> */
5543 .name = "Compro VideoMate Vista M1F",
5544 .audio_clock = 0x00187de7,
5545 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
5546 .radio_type = TUNER_TEA5767,
5547 .tuner_addr = ADDR_UNSET,
5548 .radio_addr = 0x60,
5549 .inputs = { {
5550 .name = name_tv,
5551 .vmux = 1,
5552 .amux = TV,
5553 .tv = 1,
5554 }, {
5555 .name = name_comp1,
5556 .vmux = 3,
5557 .amux = LINE2,
5558 }, {
5559 .name = name_svideo,
5560 .vmux = 8,
5561 .amux = LINE2,
5562 } },
5563 .radio = {
5564 .name = name_radio,
5565 .amux = LINE1,
5566 },
5567 .mute = {
5568 .name = name_mute,
5569 .amux = TV,
5570 },
5571 },
5541 5572
5542}; 5573};
5543 5574
@@ -6731,6 +6762,12 @@ struct pci_device_id saa7134_pci_tbl[] = {
6731 .subdevice = 0x7090, 6762 .subdevice = 0x7090,
6732 .driver_data = SAA7134_BOARD_BEHOLD_A7, 6763 .driver_data = SAA7134_BOARD_BEHOLD_A7,
6733 }, { 6764 }, {
6765 .vendor = PCI_VENDOR_ID_PHILIPS,
6766 .device = PCI_DEVICE_ID_PHILIPS_SAA7135,
6767 .subvendor = 0x185b,
6768 .subdevice = 0xc900,
6769 .driver_data = SAA7134_BOARD_VIDEOMATE_M1F,
6770 }, {
6734 /* --- boards without eeprom + subsystem ID --- */ 6771 /* --- boards without eeprom + subsystem ID --- */
6735 .vendor = PCI_VENDOR_ID_PHILIPS, 6772 .vendor = PCI_VENDOR_ID_PHILIPS,
6736 .device = PCI_DEVICE_ID_PHILIPS_SAA7134, 6773 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
@@ -7046,6 +7083,7 @@ int saa7134_board_init1(struct saa7134_dev *dev)
7046 case SAA7134_BOARD_VIDEOMATE_TV_PVR: 7083 case SAA7134_BOARD_VIDEOMATE_TV_PVR:
7047 case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS: 7084 case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
7048 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII: 7085 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
7086 case SAA7134_BOARD_VIDEOMATE_M1F:
7049 case SAA7134_BOARD_VIDEOMATE_DVBT_300: 7087 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
7050 case SAA7134_BOARD_VIDEOMATE_DVBT_200: 7088 case SAA7134_BOARD_VIDEOMATE_DVBT_200:
7051 case SAA7134_BOARD_VIDEOMATE_DVBT_200A: 7089 case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index 98678d941847..dc646e65edb7 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -721,6 +721,11 @@ int saa7134_input_init1(struct saa7134_dev *dev)
721 mask_keyup = 0x020000; 721 mask_keyup = 0x020000;
722 polling = 50; /* ms */ 722 polling = 50; /* ms */
723 break; 723 break;
724 case SAA7134_BOARD_VIDEOMATE_M1F:
725 ir_codes = RC_MAP_VIDEOMATE_M1F;
726 mask_keycode = 0x0ff00;
727 mask_keyup = 0x040000;
728 break;
724 } 729 }
725 if (NULL == ir_codes) { 730 if (NULL == ir_codes) {
726 printk("%s: Oops: IR config error [card=%d]\n", 731 printk("%s: Oops: IR config error [card=%d]\n",
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h
index babfbe7543eb..5b0a347b0b8f 100644
--- a/drivers/media/video/saa7134/saa7134.h
+++ b/drivers/media/video/saa7134/saa7134.h
@@ -326,6 +326,7 @@ struct saa7134_card_ir {
326#define SAA7134_BOARD_AVERMEDIA_M733A 180 326#define SAA7134_BOARD_AVERMEDIA_M733A 180
327#define SAA7134_BOARD_TECHNOTREND_BUDGET_T3000 181 327#define SAA7134_BOARD_TECHNOTREND_BUDGET_T3000 181
328#define SAA7134_BOARD_KWORLD_PCI_SBTVD_FULLSEG 182 328#define SAA7134_BOARD_KWORLD_PCI_SBTVD_FULLSEG 182
329#define SAA7134_BOARD_VIDEOMATE_M1F 183
329 330
330#define SAA7134_MAXBOARDS 32 331#define SAA7134_MAXBOARDS 32
331#define SAA7134_INPUT_MAX 8 332#define SAA7134_INPUT_MAX 8