diff options
author | Andy Walls <awalls@radix.net> | 2009-07-22 20:15:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:18:11 -0400 |
commit | d31b67d81b1b724d0610e9f0cfeac494d62ffca4 (patch) | |
tree | 92af66ac3bdf493141947834c976d01ec84a304e /drivers/media/video/ivtv | |
parent | e3e1920b28d47cb18b477fc9884b889f9622fc97 (diff) |
V4L/DVB (12335): ivtv: Fix errors in AVerTV M113 card definitions and add a new M113 card
Tested-by: Ravi A. <asvravi@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-cards.c | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/drivers/media/video/ivtv/ivtv-cards.c b/drivers/media/video/ivtv/ivtv-cards.c index 40c29032f292..4873b6ca5801 100644 --- a/drivers/media/video/ivtv/ivtv-cards.c +++ b/drivers/media/video/ivtv/ivtv-cards.c | |||
@@ -977,26 +977,27 @@ static const struct ivtv_card ivtv_card_avertv_mce116 = { | |||
977 | 977 | ||
978 | /* ------------------------------------------------------------------------- */ | 978 | /* ------------------------------------------------------------------------- */ |
979 | 979 | ||
980 | /* AVerMedia PVR-150 Plus (M113) card */ | 980 | /* AVerMedia PVR-150 Plus / AVerTV M113 cards with a Daewoo/Partsnic Tuner */ |
981 | 981 | ||
982 | static const struct ivtv_card_pci_info ivtv_pci_aver_pvr150[] = { | 982 | static const struct ivtv_card_pci_info ivtv_pci_aver_pvr150[] = { |
983 | { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc035 }, | 983 | { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc034 }, /* NTSC */ |
984 | { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc035 }, /* NTSC FM */ | ||
984 | { 0, 0, 0 } | 985 | { 0, 0, 0 } |
985 | }; | 986 | }; |
986 | 987 | ||
987 | static const struct ivtv_card ivtv_card_aver_pvr150 = { | 988 | static const struct ivtv_card ivtv_card_aver_pvr150 = { |
988 | .type = IVTV_CARD_AVER_PVR150PLUS, | 989 | .type = IVTV_CARD_AVER_PVR150PLUS, |
989 | .name = "AVerMedia PVR-150 Plus", | 990 | .name = "AVerMedia PVR-150 Plus / AVerTV M113 Partsnic (Daewoo) Tuner", |
990 | .v4l2_capabilities = IVTV_CAP_ENCODER, | 991 | .v4l2_capabilities = IVTV_CAP_ENCODER, |
991 | .hw_video = IVTV_HW_CX25840, | 992 | .hw_video = IVTV_HW_CX25840, |
992 | .hw_audio = IVTV_HW_CX25840, | 993 | .hw_audio = IVTV_HW_CX25840, |
993 | .hw_audio_ctrl = IVTV_HW_CX25840, | 994 | .hw_audio_ctrl = IVTV_HW_CX25840, |
994 | .hw_muxer = IVTV_HW_GPIO, | 995 | .hw_muxer = IVTV_HW_GPIO, |
995 | .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER, | 996 | .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER | |
997 | IVTV_HW_WM8739 | IVTV_HW_GPIO, | ||
996 | .video_inputs = { | 998 | .video_inputs = { |
997 | { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, | 999 | { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, |
998 | { IVTV_CARD_INPUT_SVIDEO1, 1, | 1000 | { IVTV_CARD_INPUT_SVIDEO1, 1, CX25840_SVIDEO3 }, |
999 | CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 }, | ||
1000 | { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, | 1001 | { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, |
1001 | }, | 1002 | }, |
1002 | .audio_inputs = { | 1003 | .audio_inputs = { |
@@ -1004,13 +1005,18 @@ static const struct ivtv_card ivtv_card_aver_pvr150 = { | |||
1004 | { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, | 1005 | { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, |
1005 | }, | 1006 | }, |
1006 | .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 }, | 1007 | .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 }, |
1007 | .gpio_init = { .direction = 0x0800, .initial_value = 0 }, | 1008 | /* The 74HC4052 Dual 4:1 multiplexer is controlled by 2 GPIO lines */ |
1008 | .gpio_audio_input = { .mask = 0x0800, .tuner = 0, .linein = 0, .radio = 0x0800 }, | 1009 | .gpio_init = { .direction = 0xc000, .initial_value = 0 }, |
1010 | .gpio_audio_input = { .mask = 0xc000, | ||
1011 | .tuner = 0x0000, | ||
1012 | .linein = 0x4000, | ||
1013 | .radio = 0x8000 }, | ||
1009 | .tuners = { | 1014 | .tuners = { |
1010 | /* This card has a Partsnic PTI-5NF05 tuner */ | 1015 | /* Subsystem ID's 0xc03[45] have a Partsnic PTI-5NF05 tuner */ |
1011 | { .std = V4L2_STD_MN, .tuner = TUNER_TCL_2002N }, | 1016 | { .std = V4L2_STD_MN, .tuner = TUNER_PARTSNIC_PTI_5NF05 }, |
1012 | }, | 1017 | }, |
1013 | .pci_list = ivtv_pci_aver_pvr150, | 1018 | .pci_list = ivtv_pci_aver_pvr150, |
1019 | /* Subsystem ID 0xc035 has a TEA5767(?) FM tuner, 0xc034 does not */ | ||
1014 | .i2c = &ivtv_i2c_radio, | 1020 | .i2c = &ivtv_i2c_radio, |
1015 | }; | 1021 | }; |
1016 | 1022 | ||
@@ -1025,7 +1031,7 @@ static const struct ivtv_card_pci_info ivtv_pci_aver_ultra1500mce[] = { | |||
1025 | 1031 | ||
1026 | static const struct ivtv_card ivtv_card_aver_ultra1500mce = { | 1032 | static const struct ivtv_card ivtv_card_aver_ultra1500mce = { |
1027 | .type = IVTV_CARD_AVER_ULTRA1500MCE, | 1033 | .type = IVTV_CARD_AVER_ULTRA1500MCE, |
1028 | .name = "AVerMedia UltraTV 1500 MCE / AVerTV M113", | 1034 | .name = "AVerMedia UltraTV 1500 MCE / AVerTV M113 Philips Tuner", |
1029 | .v4l2_capabilities = IVTV_CAP_ENCODER, | 1035 | .v4l2_capabilities = IVTV_CAP_ENCODER, |
1030 | .hw_video = IVTV_HW_CX25840, | 1036 | .hw_video = IVTV_HW_CX25840, |
1031 | .hw_audio = IVTV_HW_CX25840, | 1037 | .hw_audio = IVTV_HW_CX25840, |
@@ -1035,8 +1041,7 @@ static const struct ivtv_card ivtv_card_aver_ultra1500mce = { | |||
1035 | IVTV_HW_WM8739 | IVTV_HW_GPIO, | 1041 | IVTV_HW_WM8739 | IVTV_HW_GPIO, |
1036 | .video_inputs = { | 1042 | .video_inputs = { |
1037 | { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, | 1043 | { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, |
1038 | { IVTV_CARD_INPUT_SVIDEO1, 1, | 1044 | { IVTV_CARD_INPUT_SVIDEO1, 1, CX25840_SVIDEO3 }, |
1039 | CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 }, | ||
1040 | { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, | 1045 | { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, |
1041 | }, | 1046 | }, |
1042 | .audio_inputs = { | 1047 | .audio_inputs = { |
@@ -1044,7 +1049,7 @@ static const struct ivtv_card ivtv_card_aver_ultra1500mce = { | |||
1044 | { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, | 1049 | { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, |
1045 | }, | 1050 | }, |
1046 | .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 }, | 1051 | .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 }, |
1047 | /* The 74HC4502 Dual 4:1 multiplexer is controlled by 2 GPIO lines */ | 1052 | /* The 74HC4052 Dual 4:1 multiplexer is controlled by 2 GPIO lines */ |
1048 | .gpio_init = { .direction = 0xc000, .initial_value = 0 }, | 1053 | .gpio_init = { .direction = 0xc000, .initial_value = 0 }, |
1049 | .gpio_audio_input = { .mask = 0xc000, | 1054 | .gpio_audio_input = { .mask = 0xc000, |
1050 | .tuner = 0x0000, | 1055 | .tuner = 0x0000, |