diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-24 10:08:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:01:01 -0500 |
commit | 12466577853b0d057f4416f4c7020e544f3a4209 (patch) | |
tree | 855136ae91024a8cca89454c67bd9a0c7125d0c6 /drivers | |
parent | 07533b6a8097c6fdb17fb154725757b64238a8d9 (diff) |
V4L/DVB (6422): Add the pending entries for xc2028/3028 based boards
Also replaces all occurrences of TUNER_XCEIVE_XC3028 to TUNER_XC2028.
Some work is still may be required to make sure that non-tm6000 drivers will
be capable of using tuner-xc2028.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 71 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-cards.c | 6 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tuner-types.c | 6 |
4 files changed, 78 insertions, 7 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 418ea8b7f85a..2d72de0e7564 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -156,6 +156,74 @@ struct em28xx_board em28xx_boards[] = { | |||
156 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART), | 156 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART), |
157 | }}, | 157 | }}, |
158 | }, | 158 | }, |
159 | [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900] = { | ||
160 | .name = "Hauppauge WinTV HVR 900", | ||
161 | .vchannels = 3, | ||
162 | .norm = VIDEO_MODE_PAL, | ||
163 | .tda9887_conf = TDA9887_PRESENT, | ||
164 | .tuner_type = TUNER_XC2028, | ||
165 | .has_tuner = 1, | ||
166 | .decoder = EM28XX_TVP5150, | ||
167 | .input = {{ | ||
168 | .type = EM28XX_VMUX_COMPOSITE1, | ||
169 | .vmux = TVP5150_COMPOSITE1, | ||
170 | .amux = 1, | ||
171 | },{ | ||
172 | .type = EM28XX_VMUX_TELEVISION, | ||
173 | .vmux = TVP5150_COMPOSITE0, | ||
174 | .amux = 0, | ||
175 | },{ | ||
176 | .type = EM28XX_VMUX_SVIDEO, | ||
177 | .vmux = TVP5150_SVIDEO, | ||
178 | .amux = 1, | ||
179 | }}, | ||
180 | }, | ||
181 | [EM2880_BOARD_TERRATEC_HYBRID_XS] = { | ||
182 | .name = "Terratec Hybrid XS", | ||
183 | .vchannels = 3, | ||
184 | .norm = VIDEO_MODE_PAL, | ||
185 | .tda9887_conf = TDA9887_PRESENT, | ||
186 | .has_tuner = 1, | ||
187 | .tuner_type = TUNER_XC2028, | ||
188 | .decoder = EM28XX_TVP5150, | ||
189 | .input = {{ | ||
190 | .type = EM28XX_VMUX_TELEVISION, | ||
191 | .vmux = TVP5150_COMPOSITE0, | ||
192 | .amux = 0, | ||
193 | },{ | ||
194 | .type = EM28XX_VMUX_COMPOSITE1, | ||
195 | .vmux = TVP5150_COMPOSITE1, | ||
196 | .amux = 1, | ||
197 | },{ | ||
198 | .type = EM28XX_VMUX_SVIDEO, | ||
199 | .vmux = TVP5150_SVIDEO, | ||
200 | .amux = 1, | ||
201 | }}, | ||
202 | }, | ||
203 | /* maybe there's a reason behind it why Terratec sells the Hybrid XS as Prodigy XS with a | ||
204 | * different PID, let's keep it separated for now maybe we'll need it lateron */ | ||
205 | [EM2880_BOARD_TERRATEC_PRODIGY_XS] = { | ||
206 | .name = "Terratec Prodigy XS", | ||
207 | .vchannels = 3, | ||
208 | .norm = VIDEO_MODE_PAL, | ||
209 | .tda9887_conf = TDA9887_PRESENT, | ||
210 | .has_tuner = 1, | ||
211 | .tuner_type = TUNER_XC2028, | ||
212 | .decoder = EM28XX_TVP5150, | ||
213 | .input = {{ | ||
214 | .type = EM28XX_VMUX_TELEVISION, | ||
215 | .vmux = TVP5150_COMPOSITE0, | ||
216 | .amux = 0, | ||
217 | },{ | ||
218 | .type = EM28XX_VMUX_COMPOSITE1, | ||
219 | .vmux = TVP5150_COMPOSITE1, | ||
220 | .amux = 1, | ||
221 | },{ | ||
222 | .type = EM28XX_VMUX_SVIDEO, | ||
223 | .vmux = TVP5150_SVIDEO, | ||
224 | .amux = 1, | ||
225 | }}, | ||
226 | }, | ||
159 | [EM2820_BOARD_MSI_VOX_USB_2] = { | 227 | [EM2820_BOARD_MSI_VOX_USB_2] = { |
160 | .name = "MSI VOX USB 2.0", | 228 | .name = "MSI VOX USB 2.0", |
161 | .vchannels = 3, | 229 | .vchannels = 3, |
@@ -274,6 +342,9 @@ struct usb_device_id em28xx_id_table [] = { | |||
274 | { USB_DEVICE(0x2304, 0x0208), .driver_info = EM2820_BOARD_PINNACLE_USB_2 }, | 342 | { USB_DEVICE(0x2304, 0x0208), .driver_info = EM2820_BOARD_PINNACLE_USB_2 }, |
275 | { USB_DEVICE(0x2040, 0x4200), .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, | 343 | { USB_DEVICE(0x2040, 0x4200), .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, |
276 | { USB_DEVICE(0x2304, 0x0207), .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, | 344 | { USB_DEVICE(0x2304, 0x0207), .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, |
345 | { USB_DEVICE(0x2040, 0x6500), .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900 }, | ||
346 | { USB_DEVICE(0x0ccd, 0x0042), .driver_info = EM2880_BOARD_TERRATEC_HYBRID_XS }, | ||
347 | { USB_DEVICE(0x0ccd, 0x0047), .driver_info = EM2880_BOARD_TERRATEC_PRODIGY_XS }, | ||
277 | { }, | 348 | { }, |
278 | }; | 349 | }; |
279 | 350 | ||
diff --git a/drivers/media/video/ivtv/ivtv-cards.c b/drivers/media/video/ivtv/ivtv-cards.c index b6a8be622d3c..aaa114b5c268 100644 --- a/drivers/media/video/ivtv/ivtv-cards.c +++ b/drivers/media/video/ivtv/ivtv-cards.c | |||
@@ -848,7 +848,7 @@ static const struct ivtv_card ivtv_card_pg600v2 = { | |||
848 | { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, | 848 | { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, |
849 | }, | 849 | }, |
850 | .tuners = { | 850 | .tuners = { |
851 | { .std = V4L2_STD_ALL, .tuner = TUNER_XCEIVE_XC3028 }, | 851 | { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 }, |
852 | }, | 852 | }, |
853 | .pci_list = ivtv_pci_pg600v2, | 853 | .pci_list = ivtv_pci_pg600v2, |
854 | }; | 854 | }; |
@@ -879,7 +879,7 @@ static const struct ivtv_card ivtv_card_club3d = { | |||
879 | { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, | 879 | { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, |
880 | }, | 880 | }, |
881 | .tuners = { | 881 | .tuners = { |
882 | { .std = V4L2_STD_ALL, .tuner = TUNER_XCEIVE_XC3028 }, | 882 | { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 }, |
883 | }, | 883 | }, |
884 | .pci_list = ivtv_pci_club3d, | 884 | .pci_list = ivtv_pci_club3d, |
885 | }; | 885 | }; |
@@ -910,7 +910,7 @@ static const struct ivtv_card ivtv_card_avertv_mce116 = { | |||
910 | }, | 910 | }, |
911 | .gpio_init = { .direction = 0xe000, .initial_value = 0x4000 }, /* enable line-in */ | 911 | .gpio_init = { .direction = 0xe000, .initial_value = 0x4000 }, /* enable line-in */ |
912 | .tuners = { | 912 | .tuners = { |
913 | { .std = V4L2_STD_ALL, .tuner = TUNER_XCEIVE_XC3028 }, | 913 | { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 }, |
914 | }, | 914 | }, |
915 | .pci_list = ivtv_pci_avertv_mce116, | 915 | .pci_list = ivtv_pci_avertv_mce116, |
916 | }; | 916 | }; |
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 6d2dd8764f81..ec40453e46e4 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -829,7 +829,7 @@ static void ivtv_load_and_init_modules(struct ivtv *itv) | |||
829 | /* load modules */ | 829 | /* load modules */ |
830 | #ifndef CONFIG_VIDEO_TUNER | 830 | #ifndef CONFIG_VIDEO_TUNER |
831 | if (hw & IVTV_HW_TUNER) { | 831 | if (hw & IVTV_HW_TUNER) { |
832 | if (itv->options.tuner == TUNER_XCEIVE_XC3028) { | 832 | if (itv->options.tuner == TUNER_XC2028) { |
833 | IVTV_INFO("Xceive tuner not yet supported, only composite and S-Video inputs will be available\n"); | 833 | IVTV_INFO("Xceive tuner not yet supported, only composite and S-Video inputs will be available\n"); |
834 | itv->tunerid = 1; | 834 | itv->tunerid = 1; |
835 | } | 835 | } |
diff --git a/drivers/media/video/tuner-types.c b/drivers/media/video/tuner-types.c index c6a7934bd5a6..ac363f019227 100644 --- a/drivers/media/video/tuner-types.c +++ b/drivers/media/video/tuner-types.c | |||
@@ -1452,9 +1452,9 @@ struct tunertype tuners[] = { | |||
1452 | .params = tuner_samsung_tcpn_2121p30a_params, | 1452 | .params = tuner_samsung_tcpn_2121p30a_params, |
1453 | .count = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params), | 1453 | .count = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params), |
1454 | }, | 1454 | }, |
1455 | [TUNER_XCEIVE_XC3028] = { /* Xceive 3028 */ | 1455 | [TUNER_XC2028] = { /* Xceive 2028 */ |
1456 | .name = "Xceive xc3028", | 1456 | .name = "Xceive xc2028/xc3028 tuner", |
1457 | /* see xc3028.c for details */ | 1457 | /* see tuner-xc2028.c for details */ |
1458 | }, | 1458 | }, |
1459 | [TUNER_THOMSON_FE6600] = { /* Thomson PAL / DVB-T */ | 1459 | [TUNER_THOMSON_FE6600] = { /* Thomson PAL / DVB-T */ |
1460 | .name = "Thomson FE6600", | 1460 | .name = "Thomson FE6600", |