aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-devattr.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2009-03-07 00:07:12 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:39 -0400
commitdd5f322f35e2a9a4d8ca5dd7c192a4137a7f5031 (patch)
tree1f152f4feb200a820121153b1dba1f907fed2091 /drivers/media/video/pvrusb2/pvrusb2-devattr.c
parent23334a22ea2c068b14f57e8b6781b1e96d2df02e (diff)
V4L/DVB (11199): pvrusb2: Convert all device definitions to use new sub-device declarations
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-devattr.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-devattr.c86
1 files changed, 41 insertions, 45 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.c b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
index cbe2a341785..de4daa7f48b 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-devattr.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
@@ -46,10 +46,10 @@ pvr2_device_desc structures.
46/*------------------------------------------------------------------------*/ 46/*------------------------------------------------------------------------*/
47/* Hauppauge PVR-USB2 Model 29xxx */ 47/* Hauppauge PVR-USB2 Model 29xxx */
48 48
49static const char *pvr2_client_29xxx[] = { 49static const struct pvr2_device_client_desc pvr2_cli_29xxx[] = {
50 "msp3400", 50 { .module_id = PVR2_CLIENT_ID_SAA7115 },
51 "saa7115", 51 { .module_id = PVR2_CLIENT_ID_MSP3400 },
52 "tuner", 52 { .module_id = PVR2_CLIENT_ID_TUNER },
53}; 53};
54 54
55static const char *pvr2_fw1_names_29xxx[] = { 55static const char *pvr2_fw1_names_29xxx[] = {
@@ -59,8 +59,8 @@ static const char *pvr2_fw1_names_29xxx[] = {
59static const struct pvr2_device_desc pvr2_device_29xxx = { 59static const struct pvr2_device_desc pvr2_device_29xxx = {
60 .description = "WinTV PVR USB2 Model Category 29xxx", 60 .description = "WinTV PVR USB2 Model Category 29xxx",
61 .shortname = "29xxx", 61 .shortname = "29xxx",
62 .client_modules.lst = pvr2_client_29xxx, 62 .client_table.lst = pvr2_cli_29xxx,
63 .client_modules.cnt = ARRAY_SIZE(pvr2_client_29xxx), 63 .client_table.cnt = ARRAY_SIZE(pvr2_cli_29xxx),
64 .fx2_firmware.lst = pvr2_fw1_names_29xxx, 64 .fx2_firmware.lst = pvr2_fw1_names_29xxx,
65 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx), 65 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx),
66 .flag_has_hauppauge_rom = !0, 66 .flag_has_hauppauge_rom = !0,
@@ -77,10 +77,10 @@ static const struct pvr2_device_desc pvr2_device_29xxx = {
77/*------------------------------------------------------------------------*/ 77/*------------------------------------------------------------------------*/
78/* Hauppauge PVR-USB2 Model 24xxx */ 78/* Hauppauge PVR-USB2 Model 24xxx */
79 79
80static const char *pvr2_client_24xxx[] = { 80static const struct pvr2_device_client_desc pvr2_cli_24xxx[] = {
81 "cx25840", 81 { .module_id = PVR2_CLIENT_ID_CX25840 },
82 "tuner", 82 { .module_id = PVR2_CLIENT_ID_TUNER },
83 "wm8775", 83 { .module_id = PVR2_CLIENT_ID_WM8775 },
84}; 84};
85 85
86static const char *pvr2_fw1_names_24xxx[] = { 86static const char *pvr2_fw1_names_24xxx[] = {
@@ -90,8 +90,8 @@ static const char *pvr2_fw1_names_24xxx[] = {
90static const struct pvr2_device_desc pvr2_device_24xxx = { 90static const struct pvr2_device_desc pvr2_device_24xxx = {
91 .description = "WinTV PVR USB2 Model Category 24xxx", 91 .description = "WinTV PVR USB2 Model Category 24xxx",
92 .shortname = "24xxx", 92 .shortname = "24xxx",
93 .client_modules.lst = pvr2_client_24xxx, 93 .client_table.lst = pvr2_cli_24xxx,
94 .client_modules.cnt = ARRAY_SIZE(pvr2_client_24xxx), 94 .client_table.cnt = ARRAY_SIZE(pvr2_cli_24xxx),
95 .fx2_firmware.lst = pvr2_fw1_names_24xxx, 95 .fx2_firmware.lst = pvr2_fw1_names_24xxx,
96 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx), 96 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx),
97 .flag_has_cx25840 = !0, 97 .flag_has_cx25840 = !0,
@@ -111,16 +111,16 @@ static const struct pvr2_device_desc pvr2_device_24xxx = {
111/*------------------------------------------------------------------------*/ 111/*------------------------------------------------------------------------*/
112/* GOTVIEW USB2.0 DVD2 */ 112/* GOTVIEW USB2.0 DVD2 */
113 113
114static const char *pvr2_client_gotview_2[] = { 114static const struct pvr2_device_client_desc pvr2_cli_gotview_2[] = {
115 "cx25840", 115 { .module_id = PVR2_CLIENT_ID_CX25840 },
116 "tuner", 116 { .module_id = PVR2_CLIENT_ID_TUNER },
117}; 117};
118 118
119static const struct pvr2_device_desc pvr2_device_gotview_2 = { 119static const struct pvr2_device_desc pvr2_device_gotview_2 = {
120 .description = "Gotview USB 2.0 DVD 2", 120 .description = "Gotview USB 2.0 DVD 2",
121 .shortname = "gv2", 121 .shortname = "gv2",
122 .client_modules.lst = pvr2_client_gotview_2, 122 .client_table.lst = pvr2_cli_gotview_2,
123 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2), 123 .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2),
124 .flag_has_cx25840 = !0, 124 .flag_has_cx25840 = !0,
125 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, 125 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
126 .flag_has_analogtuner = !0, 126 .flag_has_analogtuner = !0,
@@ -140,8 +140,8 @@ static const struct pvr2_device_desc pvr2_device_gotview_2 = {
140static const struct pvr2_device_desc pvr2_device_gotview_2d = { 140static const struct pvr2_device_desc pvr2_device_gotview_2d = {
141 .description = "Gotview USB 2.0 DVD Deluxe", 141 .description = "Gotview USB 2.0 DVD Deluxe",
142 .shortname = "gv2d", 142 .shortname = "gv2d",
143 .client_modules.lst = pvr2_client_gotview_2, 143 .client_table.lst = pvr2_cli_gotview_2,
144 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2), 144 .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2),
145 .flag_has_cx25840 = !0, 145 .flag_has_cx25840 = !0,
146 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, 146 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
147 .flag_has_analogtuner = !0, 147 .flag_has_analogtuner = !0,
@@ -187,17 +187,17 @@ static struct pvr2_dvb_props pvr2_onair_creator_fe_props = {
187}; 187};
188#endif 188#endif
189 189
190static const char *pvr2_client_onair_creator[] = { 190static const struct pvr2_device_client_desc pvr2_cli_onair_creator[] = {
191 "saa7115", 191 { .module_id = PVR2_CLIENT_ID_SAA7115 },
192 "tuner", 192 { .module_id = PVR2_CLIENT_ID_CS53L32A },
193 "cs53l32a", 193 { .module_id = PVR2_CLIENT_ID_TUNER },
194}; 194};
195 195
196static const struct pvr2_device_desc pvr2_device_onair_creator = { 196static const struct pvr2_device_desc pvr2_device_onair_creator = {
197 .description = "OnAir Creator Hybrid USB tuner", 197 .description = "OnAir Creator Hybrid USB tuner",
198 .shortname = "oac", 198 .shortname = "oac",
199 .client_modules.lst = pvr2_client_onair_creator, 199 .client_table.lst = pvr2_cli_onair_creator,
200 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_creator), 200 .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_creator),
201 .default_tuner_type = TUNER_LG_TDVS_H06XF, 201 .default_tuner_type = TUNER_LG_TDVS_H06XF,
202 .flag_has_analogtuner = !0, 202 .flag_has_analogtuner = !0,
203 .flag_has_composite = !0, 203 .flag_has_composite = !0,
@@ -247,17 +247,17 @@ static struct pvr2_dvb_props pvr2_onair_usb2_fe_props = {
247}; 247};
248#endif 248#endif
249 249
250static const char *pvr2_client_onair_usb2[] = { 250static const struct pvr2_device_client_desc pvr2_cli_onair_usb2[] = {
251 "saa7115", 251 { .module_id = PVR2_CLIENT_ID_SAA7115 },
252 "tuner", 252 { .module_id = PVR2_CLIENT_ID_CS53L32A },
253 "cs53l32a", 253 { .module_id = PVR2_CLIENT_ID_TUNER },
254}; 254};
255 255
256static const struct pvr2_device_desc pvr2_device_onair_usb2 = { 256static const struct pvr2_device_desc pvr2_device_onair_usb2 = {
257 .description = "OnAir USB2 Hybrid USB tuner", 257 .description = "OnAir USB2 Hybrid USB tuner",
258 .shortname = "oa2", 258 .shortname = "oa2",
259 .client_modules.lst = pvr2_client_onair_usb2, 259 .client_table.lst = pvr2_cli_onair_usb2,
260 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_usb2), 260 .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_usb2),
261 .default_tuner_type = TUNER_PHILIPS_FCV1236D, 261 .default_tuner_type = TUNER_PHILIPS_FCV1236D,
262 .flag_has_analogtuner = !0, 262 .flag_has_analogtuner = !0,
263 .flag_has_composite = !0, 263 .flag_has_composite = !0,
@@ -320,9 +320,10 @@ static struct pvr2_dvb_props pvr2_73xxx_dvb_props = {
320}; 320};
321#endif 321#endif
322 322
323static const char *pvr2_client_73xxx[] = { 323static const struct pvr2_device_client_desc pvr2_cli_73xxx[] = {
324 "cx25840", 324 { .module_id = PVR2_CLIENT_ID_CX25840 },
325 "tuner", 325 { .module_id = PVR2_CLIENT_ID_TUNER,
326 .i2c_address_list = "\x42"},
326}; 327};
327 328
328static const char *pvr2_fw1_names_73xxx[] = { 329static const char *pvr2_fw1_names_73xxx[] = {
@@ -332,8 +333,8 @@ static const char *pvr2_fw1_names_73xxx[] = {
332static const struct pvr2_device_desc pvr2_device_73xxx = { 333static const struct pvr2_device_desc pvr2_device_73xxx = {
333 .description = "WinTV HVR-1900 Model Category 73xxx", 334 .description = "WinTV HVR-1900 Model Category 73xxx",
334 .shortname = "73xxx", 335 .shortname = "73xxx",
335 .client_modules.lst = pvr2_client_73xxx, 336 .client_table.lst = pvr2_cli_73xxx,
336 .client_modules.cnt = ARRAY_SIZE(pvr2_client_73xxx), 337 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
337 .fx2_firmware.lst = pvr2_fw1_names_73xxx, 338 .fx2_firmware.lst = pvr2_fw1_names_73xxx,
338 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx), 339 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx),
339 .flag_has_cx25840 = !0, 340 .flag_has_cx25840 = !0,
@@ -429,11 +430,6 @@ static struct pvr2_dvb_props pvr2_751xx_dvb_props = {
429}; 430};
430#endif 431#endif
431 432
432static const char *pvr2_client_75xxx[] = {
433 "cx25840",
434 "tuner",
435};
436
437static const char *pvr2_fw1_names_75xxx[] = { 433static const char *pvr2_fw1_names_75xxx[] = {
438 "v4l-pvrusb2-73xxx-01.fw", 434 "v4l-pvrusb2-73xxx-01.fw",
439}; 435};
@@ -441,8 +437,8 @@ static const char *pvr2_fw1_names_75xxx[] = {
441static const struct pvr2_device_desc pvr2_device_750xx = { 437static const struct pvr2_device_desc pvr2_device_750xx = {
442 .description = "WinTV HVR-1950 Model Category 750xx", 438 .description = "WinTV HVR-1950 Model Category 750xx",
443 .shortname = "750xx", 439 .shortname = "750xx",
444 .client_modules.lst = pvr2_client_75xxx, 440 .client_table.lst = pvr2_cli_73xxx,
445 .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx), 441 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
446 .fx2_firmware.lst = pvr2_fw1_names_75xxx, 442 .fx2_firmware.lst = pvr2_fw1_names_75xxx,
447 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), 443 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
448 .flag_has_cx25840 = !0, 444 .flag_has_cx25840 = !0,
@@ -463,8 +459,8 @@ static const struct pvr2_device_desc pvr2_device_750xx = {
463static const struct pvr2_device_desc pvr2_device_751xx = { 459static const struct pvr2_device_desc pvr2_device_751xx = {
464 .description = "WinTV HVR-1950 Model Category 751xx", 460 .description = "WinTV HVR-1950 Model Category 751xx",
465 .shortname = "751xx", 461 .shortname = "751xx",
466 .client_modules.lst = pvr2_client_75xxx, 462 .client_table.lst = pvr2_cli_73xxx,
467 .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx), 463 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
468 .fx2_firmware.lst = pvr2_fw1_names_75xxx, 464 .fx2_firmware.lst = pvr2_fw1_names_75xxx,
469 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), 465 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
470 .flag_has_cx25840 = !0, 466 .flag_has_cx25840 = !0,