}
}
- if (list_empty(&q->active)) {
+ if (list_empty(&q->active))
dprintk(2, "active queue empty!\n");
- }
}
static struct videobuf_queue_ops cx25821_video_qops = {
struct cx25821_fh *fh;
enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
- printk("open dev=%s type=%s\n", video_device_node_name(vdev),
+ printk(KERN_INFO "open dev=%s type=%s\n", video_device_node_name(vdev),
v4l2_type_names[type]);
/* allocate + initialize per filehandle data */
}
static ssize_t video_read(struct file *file, char __user * data, size_t count,
- loff_t * ppos)
+ loff_t *ppos)
{
struct cx25821_fh *fh = file->private_data;
struct cx25821_fh *fh = file->private_data;
struct cx25821_dev *dev = fh->dev;
- //stop the risc engine and fifo
- //cx_write(channel11->dma_ctl, 0);
+ /* stop the risc engine and fifo */
+ /* cx_write(channel11->dma_ctl, 0); */
/* stop video capture */
if (cx25821_res_check(fh, RESOURCE_VIDEO11)) {
struct cx25821_fh *fh = priv;
struct cx25821_dev *dev = fh->dev;
- if (unlikely(fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)) {
+ if (unlikely(fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE))
return -EINVAL;
- }
- if (unlikely(i != fh->type)) {
+ if (unlikely(i != fh->type))
return -EINVAL;
- }
- if (unlikely(!cx25821_res_get(dev, fh, cx25821_get_resource(fh, RESOURCE_VIDEO11)))) {
+ if (unlikely(!cx25821_res_get(dev, fh, cx25821_get_resource(fh, RESOURCE_VIDEO11))))
return -EBUSY;
- }
return videobuf_streamon(get_queue(fh));
}
command = data_from_user->command;
- if (command != UPSTREAM_START_AUDIO && command != UPSTREAM_STOP_AUDIO) {
+ if (command != UPSTREAM_START_AUDIO && command != UPSTREAM_STOP_AUDIO)
return 0;
- }
dev->input_filename = data_from_user->input_filename;
dev->input_audiofilename = data_from_user->input_filename;
return 0;
}
-// exported stuff
+/* exported stuff */
static const struct v4l2_file_operations video_fops = {
.owner = THIS_MODULE,
.open = video_open,