aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134
diff options
context:
space:
mode:
authorMikhail Fedotov <mo_fedotov.mail.ru>2006-10-06 19:23:47 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 05:50:49 -0500
commit3ac706d2f77fd7bbef037a6137d08a72d7dc8334 (patch)
tree2da1d6e6e0e4ba40c54074b0e2efb8d1660a7551 /drivers/media/video/saa7134
parent587d2fd7f296dfb5ccf348e48d6d751bcc6a423a (diff)
V4L/DVB (4728): Add support for AverMedia AverTV Studio 507
This is just an additional analog board configuration. Signed-off-by: Mikhail Fedotov <mo_fedotov.mail.ru> Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r--drivers/media/video/saa7134/saa7134-cards.c50
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c1
-rw-r--r--drivers/media/video/saa7134/saa7134.h1
3 files changed, 52 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c
index 100cfc53dc98..2a00cb40f112 100644
--- a/drivers/media/video/saa7134/saa7134-cards.c
+++ b/drivers/media/video/saa7134/saa7134-cards.c
@@ -3055,6 +3055,49 @@ struct saa7134_board saa7134_boards[] = {
3055 .gpio = 0x0200000, 3055 .gpio = 0x0200000,
3056 }, 3056 },
3057 }, 3057 },
3058 [SAA7134_BOARD_AVERMEDIA_STUDIO_507] = {
3059 /* Mikhail Fedotov <mo_fedotov@mail.ru> */
3060 .name = "Avermedia AVerTV Studio 507",
3061 .audio_clock = 0x00187de7,
3062 .tuner_type = TUNER_PHILIPS_FM1256_IH3,
3063 .radio_type = UNSET,
3064 .tuner_addr = ADDR_UNSET,
3065 .radio_addr = ADDR_UNSET,
3066 .tda9887_conf = TDA9887_PRESENT,
3067 .gpiomask = 0x03,
3068 .inputs = {{
3069 .name = name_tv,
3070 .vmux = 1,
3071 .amux = TV,
3072 .tv = 1,
3073 .gpio = 0x00,
3074 },{
3075 .name = name_comp1,
3076 .vmux = 0,
3077 .amux = LINE2,
3078 .gpio = 0x00,
3079 },{
3080 .name = name_comp2,
3081 .vmux = 3,
3082 .amux = LINE2,
3083 .gpio = 0x00,
3084 },{
3085 .name = name_svideo,
3086 .vmux = 8,
3087 .amux = LINE2,
3088 .gpio = 0x00,
3089 }},
3090 .radio = {
3091 .name = name_radio,
3092 .amux = LINE2,
3093 .gpio = 0x01,
3094 },
3095 .mute = {
3096 .name = name_mute,
3097 .amux = LINE1,
3098 .gpio = 0x00,
3099 },
3100 },
3058}; 3101};
3059 3102
3060const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); 3103const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
@@ -3670,6 +3713,12 @@ struct pci_device_id saa7134_pci_tbl[] = {
3670 .subdevice = 0x002f, 3713 .subdevice = 0x002f,
3671 .driver_data = SAA7134_BOARD_PINNACLE_PCTV_310i, 3714 .driver_data = SAA7134_BOARD_PINNACLE_PCTV_310i,
3672 },{ 3715 },{
3716 .vendor = PCI_VENDOR_ID_PHILIPS,
3717 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3718 .subvendor = 0x1461, /* Avermedia Technologies Inc */
3719 .subdevice = 0x9715,
3720 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_507,
3721 },{
3673 /* --- boards without eeprom + subsystem ID --- */ 3722 /* --- boards without eeprom + subsystem ID --- */
3674 .vendor = PCI_VENDOR_ID_PHILIPS, 3723 .vendor = PCI_VENDOR_ID_PHILIPS,
3675 .device = PCI_DEVICE_ID_PHILIPS_SAA7134, 3724 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
@@ -3756,6 +3805,7 @@ int saa7134_board_init1(struct saa7134_dev *dev)
3756 case SAA7134_BOARD_AVERMEDIA_305: 3805 case SAA7134_BOARD_AVERMEDIA_305:
3757 case SAA7134_BOARD_AVERMEDIA_STUDIO_307: 3806 case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
3758 case SAA7134_BOARD_AVERMEDIA_307: 3807 case SAA7134_BOARD_AVERMEDIA_307:
3808 case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
3759 case SAA7134_BOARD_AVERMEDIA_GO_007_FM: 3809 case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
3760 case SAA7134_BOARD_AVERMEDIA_777: 3810 case SAA7134_BOARD_AVERMEDIA_777:
3761/* case SAA7134_BOARD_SABRENT_SBTTVFM: */ /* not finished yet */ 3811/* case SAA7134_BOARD_SABRENT_SBTTVFM: */ /* not finished yet */
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index dee83552e681..0548bd35d0fc 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -184,6 +184,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
184 case SAA7134_BOARD_AVERMEDIA_307: 184 case SAA7134_BOARD_AVERMEDIA_307:
185 case SAA7134_BOARD_AVERMEDIA_STUDIO_305: 185 case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
186 case SAA7134_BOARD_AVERMEDIA_STUDIO_307: 186 case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
187 case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
187 case SAA7134_BOARD_AVERMEDIA_GO_007_FM: 188 case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
188 ir_codes = ir_codes_avermedia; 189 ir_codes = ir_codes_avermedia;
189 mask_keycode = 0x0007C8; 190 mask_keycode = 0x0007C8;
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h
index 2de92ceb4f68..799a7149ff66 100644
--- a/drivers/media/video/saa7134/saa7134.h
+++ b/drivers/media/video/saa7134/saa7134.h
@@ -228,6 +228,7 @@ struct saa7134_format {
228#define SAA7134_BOARD_AVERMEDIA_A16AR 99 228#define SAA7134_BOARD_AVERMEDIA_A16AR 99
229#define SAA7134_BOARD_ASUS_EUROPA2_HYBRID 100 229#define SAA7134_BOARD_ASUS_EUROPA2_HYBRID 100
230#define SAA7134_BOARD_PINNACLE_PCTV_310i 101 230#define SAA7134_BOARD_PINNACLE_PCTV_310i 101
231#define SAA7134_BOARD_AVERMEDIA_STUDIO_507 102
231 232
232#define SAA7134_MAXBOARDS 8 233#define SAA7134_MAXBOARDS 8
233#define SAA7134_INPUT_MAX 8 234#define SAA7134_INPUT_MAX 8