V4L/DVB (7706): pvrusb2: create a separate pvr2_device_desc structure for 751xx models
authorMichael Krufky <mkrufky@linuxtv.org>
Fri, 28 Mar 2008 08:48:44 +0000 (05:48 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:48 +0000 (14:09 -0300)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-devattr.c

index 6794862bbb194d6dce658ad10ececa913a133c49..9598f80ecd4d222e49541207d05729dcd6e57ab9 100644 (file)
@@ -313,9 +313,27 @@ static const char *pvr2_fw1_names_75xxx[] = {
                "v4l-pvrusb2-73xxx-01.fw",
 };
 
-static const struct pvr2_device_desc pvr2_device_75xxx = {
-               .description = "WinTV PVR USB2 Model Category 75xxx",
-               .shortname = "75xxx",
+static const struct pvr2_device_desc pvr2_device_750xx = {
+               .description = "WinTV PVR USB2 Model Category 750xx",
+               .shortname = "750xx",
+               .client_modules.lst = pvr2_client_75xxx,
+               .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx),
+               .fx2_firmware.lst = pvr2_fw1_names_75xxx,
+               .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
+               .flag_has_cx25840 = !0,
+               .flag_has_hauppauge_rom = !0,
+               .flag_has_analogtuner = !0,
+               .flag_has_composite = !0,
+               .flag_has_svideo = !0,
+               .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
+               .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
+               .default_std_mask = V4L2_STD_NTSC_M,
+               .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
+};
+
+static const struct pvr2_device_desc pvr2_device_751xx = {
+               .description = "WinTV PVR USB2 Model Category 751xx",
+               .shortname = "751xx",
                .client_modules.lst = pvr2_client_75xxx,
                .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx),
                .fx2_firmware.lst = pvr2_fw1_names_75xxx,
@@ -355,9 +373,9 @@ struct usb_device_id pvr2_device_table[] = {
        { USB_DEVICE(0x2040, 0x7300),
          .driver_info = (kernel_ulong_t)&pvr2_device_73xxx},
        { USB_DEVICE(0x2040, 0x7500),
-         .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
+         .driver_info = (kernel_ulong_t)&pvr2_device_750xx},
        { USB_DEVICE(0x2040, 0x7501),
-         .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
+         .driver_info = (kernel_ulong_t)&pvr2_device_751xx},
        { }
 };