diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-25 07:43:29 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:41 -0500 |
commit | ec5de990d912c0d5cca98e030bf6447c1529f56d (patch) | |
tree | 1671fb6c52635ddfe5c04ce930d708e3b2eb5c4b /drivers/media/video/em28xx | |
parent | 505b6d0b774fa4475fedbd3cebf95199c17a0086 (diff) |
V4L/DVB (9753): em28xx: cleanup: saa7115 module auto-detects saa711x type
Since saa7115 has saa711x chip auto-detection, there's no need on differenciating
it at cards table. Just use the generic name for all boards that use a philips
saa711x decoder.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 50 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 3 |
2 files changed, 26 insertions, 27 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 11308ebd18a0..8b82c5528a16 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -65,7 +65,7 @@ struct em28xx_board em28xx_boards[] = { | |||
65 | .name = "Unknown EM2800 video grabber", | 65 | .name = "Unknown EM2800 video grabber", |
66 | .is_em2800 = 1, | 66 | .is_em2800 = 1, |
67 | .tda9887_conf = TDA9887_PRESENT, | 67 | .tda9887_conf = TDA9887_PRESENT, |
68 | .decoder = EM28XX_SAA7113, | 68 | .decoder = EM28XX_SAA711X, |
69 | .input = { { | 69 | .input = { { |
70 | .type = EM28XX_VMUX_COMPOSITE1, | 70 | .type = EM28XX_VMUX_COMPOSITE1, |
71 | .vmux = SAA7115_COMPOSITE0, | 71 | .vmux = SAA7115_COMPOSITE0, |
@@ -95,7 +95,7 @@ struct em28xx_board em28xx_boards[] = { | |||
95 | .name = "Kworld PVR TV 2800 RF", | 95 | .name = "Kworld PVR TV 2800 RF", |
96 | .tuner_type = TUNER_TEMIC_PAL, | 96 | .tuner_type = TUNER_TEMIC_PAL, |
97 | .tda9887_conf = TDA9887_PRESENT, | 97 | .tda9887_conf = TDA9887_PRESENT, |
98 | .decoder = EM28XX_SAA7113, | 98 | .decoder = EM28XX_SAA711X, |
99 | .input = { { | 99 | .input = { { |
100 | .type = EM28XX_VMUX_COMPOSITE1, | 100 | .type = EM28XX_VMUX_COMPOSITE1, |
101 | .vmux = SAA7115_COMPOSITE0, | 101 | .vmux = SAA7115_COMPOSITE0, |
@@ -110,7 +110,7 @@ struct em28xx_board em28xx_boards[] = { | |||
110 | .name = "Terratec Cinergy 250 USB", | 110 | .name = "Terratec Cinergy 250 USB", |
111 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, | 111 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
112 | .tda9887_conf = TDA9887_PRESENT, | 112 | .tda9887_conf = TDA9887_PRESENT, |
113 | .decoder = EM28XX_SAA7113, | 113 | .decoder = EM28XX_SAA711X, |
114 | .input = { { | 114 | .input = { { |
115 | .type = EM28XX_VMUX_TELEVISION, | 115 | .type = EM28XX_VMUX_TELEVISION, |
116 | .vmux = SAA7115_COMPOSITE2, | 116 | .vmux = SAA7115_COMPOSITE2, |
@@ -129,7 +129,7 @@ struct em28xx_board em28xx_boards[] = { | |||
129 | .name = "Pinnacle PCTV USB 2", | 129 | .name = "Pinnacle PCTV USB 2", |
130 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, | 130 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
131 | .tda9887_conf = TDA9887_PRESENT, | 131 | .tda9887_conf = TDA9887_PRESENT, |
132 | .decoder = EM28XX_SAA7113, | 132 | .decoder = EM28XX_SAA711X, |
133 | .input = { { | 133 | .input = { { |
134 | .type = EM28XX_VMUX_TELEVISION, | 134 | .type = EM28XX_VMUX_TELEVISION, |
135 | .vmux = SAA7115_COMPOSITE2, | 135 | .vmux = SAA7115_COMPOSITE2, |
@@ -168,7 +168,7 @@ struct em28xx_board em28xx_boards[] = { | |||
168 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 168 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
169 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, | 169 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
170 | .tda9887_conf = TDA9887_PRESENT, | 170 | .tda9887_conf = TDA9887_PRESENT, |
171 | .decoder = EM28XX_SAA7113, | 171 | .decoder = EM28XX_SAA711X, |
172 | .input = { { | 172 | .input = { { |
173 | .type = EM28XX_VMUX_TELEVISION, | 173 | .type = EM28XX_VMUX_TELEVISION, |
174 | .vmux = SAA7115_COMPOSITE2, | 174 | .vmux = SAA7115_COMPOSITE2, |
@@ -188,7 +188,7 @@ struct em28xx_board em28xx_boards[] = { | |||
188 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 188 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
189 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, | 189 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
190 | .tda9887_conf = TDA9887_PRESENT, | 190 | .tda9887_conf = TDA9887_PRESENT, |
191 | .decoder = EM28XX_SAA7113, | 191 | .decoder = EM28XX_SAA711X, |
192 | .input = { { | 192 | .input = { { |
193 | .type = EM28XX_VMUX_TELEVISION, | 193 | .type = EM28XX_VMUX_TELEVISION, |
194 | .vmux = SAA7115_COMPOSITE2, | 194 | .vmux = SAA7115_COMPOSITE2, |
@@ -208,7 +208,7 @@ struct em28xx_board em28xx_boards[] = { | |||
208 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 208 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
209 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | 209 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
210 | .tda9887_conf = TDA9887_PRESENT, | 210 | .tda9887_conf = TDA9887_PRESENT, |
211 | .decoder = EM28XX_SAA7113, | 211 | .decoder = EM28XX_SAA711X, |
212 | .input = { { | 212 | .input = { { |
213 | .type = EM28XX_VMUX_TELEVISION, | 213 | .type = EM28XX_VMUX_TELEVISION, |
214 | .vmux = SAA7115_COMPOSITE2, | 214 | .vmux = SAA7115_COMPOSITE2, |
@@ -228,7 +228,7 @@ struct em28xx_board em28xx_boards[] = { | |||
228 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 228 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
229 | .tuner_type = TUNER_TNF_5335MF, | 229 | .tuner_type = TUNER_TNF_5335MF, |
230 | .tda9887_conf = TDA9887_PRESENT, | 230 | .tda9887_conf = TDA9887_PRESENT, |
231 | .decoder = EM28XX_SAA7113, | 231 | .decoder = EM28XX_SAA711X, |
232 | .input = { { | 232 | .input = { { |
233 | .type = EM28XX_VMUX_TELEVISION, | 233 | .type = EM28XX_VMUX_TELEVISION, |
234 | .vmux = SAA7115_COMPOSITE1, | 234 | .vmux = SAA7115_COMPOSITE1, |
@@ -248,7 +248,7 @@ struct em28xx_board em28xx_boards[] = { | |||
248 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 248 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
249 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | 249 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
250 | .tda9887_conf = TDA9887_PRESENT, | 250 | .tda9887_conf = TDA9887_PRESENT, |
251 | .decoder = EM28XX_SAA7114, | 251 | .decoder = EM28XX_SAA711X, |
252 | .input = { { | 252 | .input = { { |
253 | .type = EM28XX_VMUX_TELEVISION, | 253 | .type = EM28XX_VMUX_TELEVISION, |
254 | .vmux = 2, | 254 | .vmux = 2, |
@@ -266,7 +266,7 @@ struct em28xx_board em28xx_boards[] = { | |||
266 | [EM2820_BOARD_PINNACLE_DVC_100] = { | 266 | [EM2820_BOARD_PINNACLE_DVC_100] = { |
267 | .name = "Pinnacle Dazzle DVC 100", | 267 | .name = "Pinnacle Dazzle DVC 100", |
268 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 268 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
269 | .decoder = EM28XX_SAA7113, | 269 | .decoder = EM28XX_SAA711X, |
270 | .input = { { | 270 | .input = { { |
271 | .type = EM28XX_VMUX_COMPOSITE1, | 271 | .type = EM28XX_VMUX_COMPOSITE1, |
272 | .vmux = SAA7115_COMPOSITE0, | 272 | .vmux = SAA7115_COMPOSITE0, |
@@ -291,7 +291,7 @@ struct em28xx_board em28xx_boards[] = { | |||
291 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 291 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
292 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, /* unknown? */ | 292 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, /* unknown? */ |
293 | .tda9887_conf = TDA9887_PRESENT, /* unknown? */ | 293 | .tda9887_conf = TDA9887_PRESENT, /* unknown? */ |
294 | .decoder = EM28XX_SAA7113, | 294 | .decoder = EM28XX_SAA711X, |
295 | .input = { { | 295 | .input = { { |
296 | .type = EM28XX_VMUX_TELEVISION, | 296 | .type = EM28XX_VMUX_TELEVISION, |
297 | .vmux = SAA7115_COMPOSITE2, | 297 | .vmux = SAA7115_COMPOSITE2, |
@@ -313,7 +313,7 @@ struct em28xx_board em28xx_boards[] = { | |||
313 | .tda9887_conf = TDA9887_PRESENT | | 313 | .tda9887_conf = TDA9887_PRESENT | |
314 | TDA9887_PORT1_ACTIVE | | 314 | TDA9887_PORT1_ACTIVE | |
315 | TDA9887_PORT2_ACTIVE, | 315 | TDA9887_PORT2_ACTIVE, |
316 | .decoder = EM28XX_SAA7113, | 316 | .decoder = EM28XX_SAA711X, |
317 | .input = { { | 317 | .input = { { |
318 | .type = EM28XX_VMUX_TELEVISION, | 318 | .type = EM28XX_VMUX_TELEVISION, |
319 | .vmux = SAA7115_COMPOSITE2, | 319 | .vmux = SAA7115_COMPOSITE2, |
@@ -331,7 +331,7 @@ struct em28xx_board em28xx_boards[] = { | |||
331 | [EM2821_BOARD_USBGEAR_VD204] = { | 331 | [EM2821_BOARD_USBGEAR_VD204] = { |
332 | .name = "Usbgear VD204v9", | 332 | .name = "Usbgear VD204v9", |
333 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 333 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
334 | .decoder = EM28XX_SAA7113, | 334 | .decoder = EM28XX_SAA711X, |
335 | .input = { { | 335 | .input = { { |
336 | .type = EM28XX_VMUX_COMPOSITE1, | 336 | .type = EM28XX_VMUX_COMPOSITE1, |
337 | .vmux = SAA7115_COMPOSITE0, | 337 | .vmux = SAA7115_COMPOSITE0, |
@@ -355,7 +355,7 @@ struct em28xx_board em28xx_boards[] = { | |||
355 | [EM2860_BOARD_TYPHOON_DVD_MAKER] = { | 355 | [EM2860_BOARD_TYPHOON_DVD_MAKER] = { |
356 | .name = "Typhoon DVD Maker", | 356 | .name = "Typhoon DVD Maker", |
357 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 357 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
358 | .decoder = EM28XX_SAA7113, | 358 | .decoder = EM28XX_SAA711X, |
359 | .input = { { | 359 | .input = { { |
360 | .type = EM28XX_VMUX_COMPOSITE1, | 360 | .type = EM28XX_VMUX_COMPOSITE1, |
361 | .vmux = SAA7115_COMPOSITE0, | 361 | .vmux = SAA7115_COMPOSITE0, |
@@ -371,7 +371,7 @@ struct em28xx_board em28xx_boards[] = { | |||
371 | .valid = EM28XX_BOARD_NOT_VALIDATED, | 371 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
372 | .tuner_type = TUNER_TNF_5335MF, | 372 | .tuner_type = TUNER_TNF_5335MF, |
373 | .tda9887_conf = TDA9887_PRESENT, | 373 | .tda9887_conf = TDA9887_PRESENT, |
374 | .decoder = EM28XX_SAA7113, | 374 | .decoder = EM28XX_SAA711X, |
375 | .input = { { | 375 | .input = { { |
376 | .type = EM28XX_VMUX_TELEVISION, | 376 | .type = EM28XX_VMUX_TELEVISION, |
377 | .vmux = SAA7115_COMPOSITE2, | 377 | .vmux = SAA7115_COMPOSITE2, |
@@ -665,7 +665,7 @@ struct em28xx_board em28xx_boards[] = { | |||
665 | TDA9887_PORT1_ACTIVE | | 665 | TDA9887_PORT1_ACTIVE | |
666 | TDA9887_PORT2_ACTIVE, | 666 | TDA9887_PORT2_ACTIVE, |
667 | .max_range_640_480 = 1, | 667 | .max_range_640_480 = 1, |
668 | .decoder = EM28XX_SAA7114, | 668 | .decoder = EM28XX_SAA711X, |
669 | .input = { { | 669 | .input = { { |
670 | .type = EM28XX_VMUX_TELEVISION, | 670 | .type = EM28XX_VMUX_TELEVISION, |
671 | .vmux = SAA7115_COMPOSITE4, | 671 | .vmux = SAA7115_COMPOSITE4, |
@@ -685,7 +685,7 @@ struct em28xx_board em28xx_boards[] = { | |||
685 | .is_em2800 = 1, | 685 | .is_em2800 = 1, |
686 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, | 686 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
687 | .tda9887_conf = TDA9887_PRESENT, | 687 | .tda9887_conf = TDA9887_PRESENT, |
688 | .decoder = EM28XX_SAA7113, | 688 | .decoder = EM28XX_SAA711X, |
689 | .input = { { | 689 | .input = { { |
690 | .type = EM28XX_VMUX_TELEVISION, | 690 | .type = EM28XX_VMUX_TELEVISION, |
691 | .vmux = SAA7115_COMPOSITE2, | 691 | .vmux = SAA7115_COMPOSITE2, |
@@ -703,7 +703,7 @@ struct em28xx_board em28xx_boards[] = { | |||
703 | [EM2800_BOARD_GRABBEEX_USB2800] = { | 703 | [EM2800_BOARD_GRABBEEX_USB2800] = { |
704 | .name = "eMPIA Technology, Inc. GrabBeeX+ Video Encoder", | 704 | .name = "eMPIA Technology, Inc. GrabBeeX+ Video Encoder", |
705 | .is_em2800 = 1, | 705 | .is_em2800 = 1, |
706 | .decoder = EM28XX_SAA7113, | 706 | .decoder = EM28XX_SAA711X, |
707 | .input = { { | 707 | .input = { { |
708 | .type = EM28XX_VMUX_COMPOSITE1, | 708 | .type = EM28XX_VMUX_COMPOSITE1, |
709 | .vmux = SAA7115_COMPOSITE0, | 709 | .vmux = SAA7115_COMPOSITE0, |
@@ -719,7 +719,7 @@ struct em28xx_board em28xx_boards[] = { | |||
719 | .is_em2800 = 1, | 719 | .is_em2800 = 1, |
720 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, | 720 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
721 | .tda9887_conf = TDA9887_PRESENT, | 721 | .tda9887_conf = TDA9887_PRESENT, |
722 | .decoder = EM28XX_SAA7113, | 722 | .decoder = EM28XX_SAA711X, |
723 | .input = { { | 723 | .input = { { |
724 | .type = EM28XX_VMUX_TELEVISION, | 724 | .type = EM28XX_VMUX_TELEVISION, |
725 | .vmux = SAA7115_COMPOSITE2, | 725 | .vmux = SAA7115_COMPOSITE2, |
@@ -739,7 +739,7 @@ struct em28xx_board em28xx_boards[] = { | |||
739 | .is_em2800 = 1, | 739 | .is_em2800 = 1, |
740 | .tuner_type = TUNER_PHILIPS_FCV1236D, | 740 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
741 | .tda9887_conf = TDA9887_PRESENT, | 741 | .tda9887_conf = TDA9887_PRESENT, |
742 | .decoder = EM28XX_SAA7113, | 742 | .decoder = EM28XX_SAA711X, |
743 | .input = { { | 743 | .input = { { |
744 | .type = EM28XX_VMUX_TELEVISION, | 744 | .type = EM28XX_VMUX_TELEVISION, |
745 | .vmux = SAA7115_COMPOSITE2, | 745 | .vmux = SAA7115_COMPOSITE2, |
@@ -757,7 +757,7 @@ struct em28xx_board em28xx_boards[] = { | |||
757 | [EM2820_BOARD_PINNACLE_DVC_90] = { | 757 | [EM2820_BOARD_PINNACLE_DVC_90] = { |
758 | .name = "Pinnacle Dazzle DVC 90/DVC 100", | 758 | .name = "Pinnacle Dazzle DVC 90/DVC 100", |
759 | .tuner_type = TUNER_ABSENT, | 759 | .tuner_type = TUNER_ABSENT, |
760 | .decoder = EM28XX_SAA7113, | 760 | .decoder = EM28XX_SAA711X, |
761 | .input = { { | 761 | .input = { { |
762 | .type = EM28XX_VMUX_COMPOSITE1, | 762 | .type = EM28XX_VMUX_COMPOSITE1, |
763 | .vmux = SAA7115_COMPOSITE0, | 763 | .vmux = SAA7115_COMPOSITE0, |
@@ -773,7 +773,7 @@ struct em28xx_board em28xx_boards[] = { | |||
773 | .is_em2800 = 1, | 773 | .is_em2800 = 1, |
774 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, | 774 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
775 | .tda9887_conf = TDA9887_PRESENT, | 775 | .tda9887_conf = TDA9887_PRESENT, |
776 | .decoder = EM28XX_SAA7113, | 776 | .decoder = EM28XX_SAA711X, |
777 | .input = { { | 777 | .input = { { |
778 | .type = EM28XX_VMUX_TELEVISION, | 778 | .type = EM28XX_VMUX_TELEVISION, |
779 | .vmux = SAA7115_COMPOSITE2, | 779 | .vmux = SAA7115_COMPOSITE2, |
@@ -792,7 +792,7 @@ struct em28xx_board em28xx_boards[] = { | |||
792 | .name = "Pixelview Prolink PlayTV USB 2.0", | 792 | .name = "Pixelview Prolink PlayTV USB 2.0", |
793 | .tda9887_conf = TDA9887_PRESENT, | 793 | .tda9887_conf = TDA9887_PRESENT, |
794 | .tuner_type = TUNER_YMEC_TVF_5533MF, | 794 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
795 | .decoder = EM28XX_SAA7113, | 795 | .decoder = EM28XX_SAA711X, |
796 | .input = { { | 796 | .input = { { |
797 | .type = EM28XX_VMUX_TELEVISION, | 797 | .type = EM28XX_VMUX_TELEVISION, |
798 | .vmux = SAA7115_COMPOSITE2, | 798 | .vmux = SAA7115_COMPOSITE2, |
@@ -814,7 +814,7 @@ struct em28xx_board em28xx_boards[] = { | |||
814 | .has_snapshot_button = 1, | 814 | .has_snapshot_button = 1, |
815 | .tda9887_conf = TDA9887_PRESENT, | 815 | .tda9887_conf = TDA9887_PRESENT, |
816 | .tuner_type = TUNER_ABSENT, | 816 | .tuner_type = TUNER_ABSENT, |
817 | .decoder = EM28XX_SAA7113, | 817 | .decoder = EM28XX_SAA711X, |
818 | .input = { { | 818 | .input = { { |
819 | .type = EM28XX_VMUX_SVIDEO, | 819 | .type = EM28XX_VMUX_SVIDEO, |
820 | .vmux = SAA7115_SVIDEO3, | 820 | .vmux = SAA7115_SVIDEO3, |
@@ -1737,7 +1737,7 @@ void em28xx_card_setup(struct em28xx *dev) | |||
1737 | /* request some modules */ | 1737 | /* request some modules */ |
1738 | if (dev->board.has_msp34xx) | 1738 | if (dev->board.has_msp34xx) |
1739 | request_module("msp3400"); | 1739 | request_module("msp3400"); |
1740 | if (dev->board.decoder == EM28XX_SAA7113 || dev->board.decoder == EM28XX_SAA7114) | 1740 | if (dev->board.decoder == EM28XX_SAA711X) |
1741 | request_module("saa7115"); | 1741 | request_module("saa7115"); |
1742 | if (dev->board.decoder == EM28XX_TVP5150) | 1742 | if (dev->board.decoder == EM28XX_TVP5150) |
1743 | request_module("tvp5150"); | 1743 | request_module("tvp5150"); |
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index e33aa544bbbc..a7cece91cc0d 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -316,8 +316,7 @@ struct em28xx_input { | |||
316 | enum em28xx_decoder { | 316 | enum em28xx_decoder { |
317 | EM28XX_NODECODER, | 317 | EM28XX_NODECODER, |
318 | EM28XX_TVP5150, | 318 | EM28XX_TVP5150, |
319 | EM28XX_SAA7113, | 319 | EM28XX_SAA711X, |
320 | EM28XX_SAA7114 | ||
321 | }; | 320 | }; |
322 | 321 | ||
323 | struct em28xx_reg_seq { | 322 | struct em28xx_reg_seq { |