aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <andy@smile.org.ua>2009-04-08 13:01:19 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:42 -0400
commitdf0dbbe24053b7c669f63341d3d3f090560c3217 (patch)
tree009fadbd56569d61e6da43a01b6ba7e1b5dc4f6d /drivers
parentabce21f40f1c7a52c9a126c6c00db1bd76e96b1d (diff)
V4L/DVB (11442): saa7134: BZ#7524: Add AVerTV Studio 507UA support
[mchehab@redhat.com: Fix merge conflicts and CodingStyle issues] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/saa7134/saa7134-cards.c44
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c1
-rw-r--r--drivers/media/video/saa7134/saa7134.h1
3 files changed, 46 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c
index fdb19449d269..eab4782861fe 100644
--- a/drivers/media/video/saa7134/saa7134-cards.c
+++ b/drivers/media/video/saa7134/saa7134-cards.c
@@ -4753,6 +4753,44 @@ struct saa7134_board saa7134_boards[] = {
4753 .gpio = 0x01, 4753 .gpio = 0x01,
4754 }, 4754 },
4755 }, 4755 },
4756 [SAA7134_BOARD_AVERMEDIA_STUDIO_507UA] = {
4757 /* Andy Shevchenko <andy@smile.org.ua> */
4758 .name = "Avermedia AVerTV Studio 507UA",
4759 .audio_clock = 0x00187de7,
4760 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* Should be MK5 */
4761 .radio_type = UNSET,
4762 .tuner_addr = ADDR_UNSET,
4763 .radio_addr = ADDR_UNSET,
4764 .tda9887_conf = TDA9887_PRESENT,
4765 .gpiomask = 0x03,
4766 .inputs = { {
4767 .name = name_tv,
4768 .vmux = 1,
4769 .amux = TV,
4770 .tv = 1,
4771 .gpio = 0x00,
4772 }, {
4773 .name = name_comp1,
4774 .vmux = 3,
4775 .amux = LINE1,
4776 .gpio = 0x00,
4777 }, {
4778 .name = name_svideo,
4779 .vmux = 8,
4780 .amux = LINE1,
4781 .gpio = 0x00,
4782 } },
4783 .radio = {
4784 .name = name_radio,
4785 .amux = LINE2,
4786 .gpio = 0x01,
4787 },
4788 .mute = {
4789 .name = name_mute,
4790 .amux = LINE1,
4791 .gpio = 0x00,
4792 },
4793 },
4756}; 4794};
4757 4795
4758const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); 4796const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
@@ -5441,6 +5479,12 @@ struct pci_device_id saa7134_pci_tbl[] = {
5441 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_507, 5479 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_507,
5442 },{ 5480 },{
5443 .vendor = PCI_VENDOR_ID_PHILIPS, 5481 .vendor = PCI_VENDOR_ID_PHILIPS,
5482 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
5483 .subvendor = 0x1461, /* Avermedia Technologies Inc */
5484 .subdevice = 0xa11b,
5485 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_507UA,
5486 }, {
5487 .vendor = PCI_VENDOR_ID_PHILIPS,
5444 .device = PCI_DEVICE_ID_PHILIPS_SAA7133, 5488 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
5445 .subvendor = 0x1043, 5489 .subvendor = 0x1043,
5446 .subdevice = 0x4876, 5490 .subdevice = 0x4876,
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index 8a106d36e723..25217ae6606c 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -447,6 +447,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
447 case SAA7134_BOARD_AVERMEDIA_STUDIO_305: 447 case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
448 case SAA7134_BOARD_AVERMEDIA_STUDIO_307: 448 case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
449 case SAA7134_BOARD_AVERMEDIA_STUDIO_507: 449 case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
450 case SAA7134_BOARD_AVERMEDIA_STUDIO_507UA:
450 case SAA7134_BOARD_AVERMEDIA_GO_007_FM: 451 case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
451 case SAA7134_BOARD_AVERMEDIA_M102: 452 case SAA7134_BOARD_AVERMEDIA_M102:
452 case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS: 453 case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS:
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h
index 0cbaf90d4874..8d251db3a71a 100644
--- a/drivers/media/video/saa7134/saa7134.h
+++ b/drivers/media/video/saa7134/saa7134.h
@@ -280,6 +280,7 @@ struct saa7134_format {
280#define SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS 154 280#define SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS 154
281#define SAA7134_BOARD_HAUPPAUGE_HVR1120 155 281#define SAA7134_BOARD_HAUPPAUGE_HVR1120 155
282#define SAA7134_BOARD_HAUPPAUGE_HVR1110R3 156 282#define SAA7134_BOARD_HAUPPAUGE_HVR1110R3 156
283#define SAA7134_BOARD_AVERMEDIA_STUDIO_507UA 157
283 284
284#define SAA7134_MAXBOARDS 32 285#define SAA7134_MAXBOARDS 32
285#define SAA7134_INPUT_MAX 8 286#define SAA7134_INPUT_MAX 8