diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-v4l2.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 878fd52a73b3..9e0f2b07b93b 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |||
@@ -91,7 +91,7 @@ static struct v4l2_capability pvr_capability ={ | |||
91 | .card = "Hauppauge WinTV pvr-usb2", | 91 | .card = "Hauppauge WinTV pvr-usb2", |
92 | .bus_info = "usb", | 92 | .bus_info = "usb", |
93 | .version = KERNEL_VERSION(0,8,0), | 93 | .version = KERNEL_VERSION(0,8,0), |
94 | .capabilities = (V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VBI_CAPTURE | | 94 | .capabilities = (V4L2_CAP_VIDEO_CAPTURE | |
95 | V4L2_CAP_TUNER | V4L2_CAP_AUDIO | V4L2_CAP_RADIO | | 95 | V4L2_CAP_TUNER | V4L2_CAP_AUDIO | V4L2_CAP_RADIO | |
96 | V4L2_CAP_READWRITE), | 96 | V4L2_CAP_READWRITE), |
97 | .reserved = {0,0,0,0} | 97 | .reserved = {0,0,0,0} |
@@ -952,10 +952,6 @@ static long pvr2_v4l2_ioctl(struct file *file, | |||
952 | unsigned int cmd, unsigned long arg) | 952 | unsigned int cmd, unsigned long arg) |
953 | { | 953 | { |
954 | 954 | ||
955 | /* Temporary hack : use ivtv api until a v4l2 one is available. */ | ||
956 | #define IVTV_IOC_G_CODEC 0xFFEE7703 | ||
957 | #define IVTV_IOC_S_CODEC 0xFFEE7704 | ||
958 | if (cmd == IVTV_IOC_G_CODEC || cmd == IVTV_IOC_S_CODEC) return 0; | ||
959 | return video_usercopy(file, cmd, arg, pvr2_v4l2_do_ioctl); | 955 | return video_usercopy(file, cmd, arg, pvr2_v4l2_do_ioctl); |
960 | } | 956 | } |
961 | 957 | ||
@@ -1268,8 +1264,9 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, | |||
1268 | dip->minor_type = pvr2_v4l_type_video; | 1264 | dip->minor_type = pvr2_v4l_type_video; |
1269 | nr_ptr = video_nr; | 1265 | nr_ptr = video_nr; |
1270 | if (!dip->stream) { | 1266 | if (!dip->stream) { |
1271 | err("Failed to set up pvrusb2 v4l video dev" | 1267 | pr_err(KBUILD_MODNAME |
1272 | " due to missing stream instance"); | 1268 | ": Failed to set up pvrusb2 v4l video dev" |
1269 | " due to missing stream instance\n"); | ||
1273 | return; | 1270 | return; |
1274 | } | 1271 | } |
1275 | break; | 1272 | break; |
@@ -1286,8 +1283,8 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, | |||
1286 | break; | 1283 | break; |
1287 | default: | 1284 | default: |
1288 | /* Bail out (this should be impossible) */ | 1285 | /* Bail out (this should be impossible) */ |
1289 | err("Failed to set up pvrusb2 v4l dev" | 1286 | pr_err(KBUILD_MODNAME ": Failed to set up pvrusb2 v4l dev" |
1290 | " due to unrecognized config"); | 1287 | " due to unrecognized config\n"); |
1291 | return; | 1288 | return; |
1292 | } | 1289 | } |
1293 | 1290 | ||
@@ -1303,7 +1300,8 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, | |||
1303 | dip->v4l_type, mindevnum) < 0) && | 1300 | dip->v4l_type, mindevnum) < 0) && |
1304 | (video_register_device(&dip->devbase, | 1301 | (video_register_device(&dip->devbase, |
1305 | dip->v4l_type, -1) < 0)) { | 1302 | dip->v4l_type, -1) < 0)) { |
1306 | err("Failed to register pvrusb2 v4l device"); | 1303 | pr_err(KBUILD_MODNAME |
1304 | ": Failed to register pvrusb2 v4l device\n"); | ||
1307 | } | 1305 | } |
1308 | 1306 | ||
1309 | printk(KERN_INFO "pvrusb2: registered device %s%u [%s]\n", | 1307 | printk(KERN_INFO "pvrusb2: registered device %s%u [%s]\n", |