diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 199b5e2e5c43..6ab6fd187340 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -38,9 +38,7 @@ | |||
38 | 38 | ||
39 | struct usb_device_id pvr2_device_table[] = { | 39 | struct usb_device_id pvr2_device_table[] = { |
40 | [PVR2_HDW_TYPE_29XXX] = { USB_DEVICE(0x2040, 0x2900) }, | 40 | [PVR2_HDW_TYPE_29XXX] = { USB_DEVICE(0x2040, 0x2900) }, |
41 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
42 | [PVR2_HDW_TYPE_24XXX] = { USB_DEVICE(0x2040, 0x2400) }, | 41 | [PVR2_HDW_TYPE_24XXX] = { USB_DEVICE(0x2040, 0x2400) }, |
43 | #endif | ||
44 | { } | 42 | { } |
45 | }; | 43 | }; |
46 | 44 | ||
@@ -48,9 +46,7 @@ MODULE_DEVICE_TABLE(usb, pvr2_device_table); | |||
48 | 46 | ||
49 | static const char *pvr2_device_names[] = { | 47 | static const char *pvr2_device_names[] = { |
50 | [PVR2_HDW_TYPE_29XXX] = "WinTV PVR USB2 Model Category 29xxxx", | 48 | [PVR2_HDW_TYPE_29XXX] = "WinTV PVR USB2 Model Category 29xxxx", |
51 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
52 | [PVR2_HDW_TYPE_24XXX] = "WinTV PVR USB2 Model Category 24xxxx", | 49 | [PVR2_HDW_TYPE_24XXX] = "WinTV PVR USB2 Model Category 24xxxx", |
53 | #endif | ||
54 | }; | 50 | }; |
55 | 51 | ||
56 | struct pvr2_string_table { | 52 | struct pvr2_string_table { |
@@ -58,14 +54,12 @@ struct pvr2_string_table { | |||
58 | unsigned int cnt; | 54 | unsigned int cnt; |
59 | }; | 55 | }; |
60 | 56 | ||
61 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
62 | // Names of other client modules to request for 24xxx model hardware | 57 | // Names of other client modules to request for 24xxx model hardware |
63 | static const char *pvr2_client_24xxx[] = { | 58 | static const char *pvr2_client_24xxx[] = { |
64 | "cx25840", | 59 | "cx25840", |
65 | "tuner", | 60 | "tuner", |
66 | "wm8775", | 61 | "wm8775", |
67 | }; | 62 | }; |
68 | #endif | ||
69 | 63 | ||
70 | // Names of other client modules to request for 29xxx model hardware | 64 | // Names of other client modules to request for 29xxx model hardware |
71 | static const char *pvr2_client_29xxx[] = { | 65 | static const char *pvr2_client_29xxx[] = { |
@@ -79,12 +73,10 @@ static struct pvr2_string_table pvr2_client_lists[] = { | |||
79 | pvr2_client_29xxx, | 73 | pvr2_client_29xxx, |
80 | sizeof(pvr2_client_29xxx)/sizeof(pvr2_client_29xxx[0]), | 74 | sizeof(pvr2_client_29xxx)/sizeof(pvr2_client_29xxx[0]), |
81 | }, | 75 | }, |
82 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
83 | [PVR2_HDW_TYPE_24XXX] = { | 76 | [PVR2_HDW_TYPE_24XXX] = { |
84 | pvr2_client_24xxx, | 77 | pvr2_client_24xxx, |
85 | sizeof(pvr2_client_24xxx)/sizeof(pvr2_client_24xxx[0]), | 78 | sizeof(pvr2_client_24xxx)/sizeof(pvr2_client_24xxx[0]), |
86 | }, | 79 | }, |
87 | #endif | ||
88 | }; | 80 | }; |
89 | 81 | ||
90 | static struct pvr2_hdw *unit_pointers[PVR_NUM] = {[ 0 ... PVR_NUM-1 ] = NULL}; | 82 | static struct pvr2_hdw *unit_pointers[PVR_NUM] = {[ 0 ... PVR_NUM-1 ] = NULL}; |
@@ -363,7 +355,6 @@ static int ctrl_freq_set(struct pvr2_ctrl *cptr,int m,int v) | |||
363 | return 0; | 355 | return 0; |
364 | } | 356 | } |
365 | 357 | ||
366 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
367 | static int ctrl_hres_max_get(struct pvr2_ctrl *cptr,int *vp) | 358 | static int ctrl_hres_max_get(struct pvr2_ctrl *cptr,int *vp) |
368 | { | 359 | { |
369 | /* If we're dealing with a 24xxx device, force the horizontal | 360 | /* If we're dealing with a 24xxx device, force the horizontal |
@@ -385,7 +376,6 @@ static int ctrl_hres_min_get(struct pvr2_ctrl *cptr,int *vp) | |||
385 | if (cptr->hdw->hdw_type == PVR2_HDW_TYPE_24XXX) *vp = 720; | 376 | if (cptr->hdw->hdw_type == PVR2_HDW_TYPE_24XXX) *vp = 720; |
386 | return 0; | 377 | return 0; |
387 | } | 378 | } |
388 | #endif | ||
389 | 379 | ||
390 | static int ctrl_cx2341x_is_dirty(struct pvr2_ctrl *cptr) | 380 | static int ctrl_cx2341x_is_dirty(struct pvr2_ctrl *cptr) |
391 | { | 381 | { |
@@ -745,12 +735,10 @@ static const struct pvr2_ctl_info control_defs[] = { | |||
745 | .default_value = 720, | 735 | .default_value = 720, |
746 | DEFREF(res_hor), | 736 | DEFREF(res_hor), |
747 | DEFINT(320,720), | 737 | DEFINT(320,720), |
748 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
749 | /* Hook in check for clamp on horizontal resolution in | 738 | /* Hook in check for clamp on horizontal resolution in |
750 | order to avoid unsolved problem involving cx25840. */ | 739 | order to avoid unsolved problem involving cx25840. */ |
751 | .get_max_value = ctrl_hres_max_get, | 740 | .get_max_value = ctrl_hres_max_get, |
752 | .get_min_value = ctrl_hres_min_get, | 741 | .get_min_value = ctrl_hres_min_get, |
753 | #endif | ||
754 | },{ | 742 | },{ |
755 | .desc = "Vertical capture resolution", | 743 | .desc = "Vertical capture resolution", |
756 | .name = "resolution_ver", | 744 | .name = "resolution_ver", |
@@ -966,22 +954,18 @@ static int pvr2_upload_firmware1(struct pvr2_hdw *hdw) | |||
966 | static const char *fw_files_29xxx[] = { | 954 | static const char *fw_files_29xxx[] = { |
967 | "v4l-pvrusb2-29xxx-01.fw", | 955 | "v4l-pvrusb2-29xxx-01.fw", |
968 | }; | 956 | }; |
969 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
970 | static const char *fw_files_24xxx[] = { | 957 | static const char *fw_files_24xxx[] = { |
971 | "v4l-pvrusb2-24xxx-01.fw", | 958 | "v4l-pvrusb2-24xxx-01.fw", |
972 | }; | 959 | }; |
973 | #endif | ||
974 | static const struct pvr2_string_table fw_file_defs[] = { | 960 | static const struct pvr2_string_table fw_file_defs[] = { |
975 | [PVR2_HDW_TYPE_29XXX] = { | 961 | [PVR2_HDW_TYPE_29XXX] = { |
976 | fw_files_29xxx, | 962 | fw_files_29xxx, |
977 | sizeof(fw_files_29xxx)/sizeof(fw_files_29xxx[0]), | 963 | sizeof(fw_files_29xxx)/sizeof(fw_files_29xxx[0]), |
978 | }, | 964 | }, |
979 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
980 | [PVR2_HDW_TYPE_24XXX] = { | 965 | [PVR2_HDW_TYPE_24XXX] = { |
981 | fw_files_24xxx, | 966 | fw_files_24xxx, |
982 | sizeof(fw_files_24xxx)/sizeof(fw_files_24xxx[0]), | 967 | sizeof(fw_files_24xxx)/sizeof(fw_files_24xxx[0]), |
983 | }, | 968 | }, |
984 | #endif | ||
985 | }; | 969 | }; |
986 | hdw->fw1_state = FW1_STATE_FAILED; // default result | 970 | hdw->fw1_state = FW1_STATE_FAILED; // default result |
987 | 971 | ||