Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138332
b: refs/heads/master
c: d211bfc
h: refs/heads/master
v: v3
  • Loading branch information
Janne Grunau authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 13e3ff4 commit 2571f79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ddacee6ebbbdd20af96663f96f5b4de6bff90cc
refs/heads/master: d211bfcbd0f13f1234aaa6e565013dba051a408c
27 changes: 10 additions & 17 deletions trunk/drivers/media/video/hdpvr/hdpvr-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@

#define BULK_URB_TIMEOUT 1250 /* 1.25 seconds */

#define print_buffer_status() v4l2_dbg(MSG_BUFFER, hdpvr_debug, dev->video_dev,\
"%s:%d buffer stat: %d free, %d proc\n",\
__func__, __LINE__, \
list_size(&dev->free_buff_list), \
list_size(&dev->rec_buff_list))

struct hdpvr_fh {
struct hdpvr_device *dev;
};
Expand Down Expand Up @@ -191,10 +197,7 @@ static int hdpvr_submit_buffers(struct hdpvr_device *dev)
list_move_tail(&buf->buff_list, &dev->rec_buff_list);
}
err:
v4l2_dbg(MSG_BUFFER, hdpvr_debug, dev->video_dev,
"buffer queue stat: %d free, %d proc\n",
list_size(&dev->free_buff_list),
list_size(&dev->rec_buff_list));
print_buffer_status();
mutex_unlock(&dev->io_mutex);
return ret;
}
Expand Down Expand Up @@ -399,11 +402,7 @@ static ssize_t hdpvr_read(struct file *file, char __user *buffer, size_t count,
mutex_unlock(&dev->io_mutex);
goto err;
}

v4l2_dbg(MSG_BUFFER, hdpvr_debug, dev->video_dev,
"buffer queue stat: %d free, %d proc\n",
list_size(&dev->free_buff_list),
list_size(&dev->rec_buff_list));
print_buffer_status();
}
mutex_unlock(&dev->io_mutex);

Expand Down Expand Up @@ -463,10 +462,7 @@ static ssize_t hdpvr_read(struct file *file, char __user *buffer, size_t count,

list_move_tail(&buf->buff_list, &dev->free_buff_list);

v4l2_dbg(MSG_BUFFER, hdpvr_debug, dev->video_dev,
"buffer queue stat: %d free, %d proc\n",
list_size(&dev->free_buff_list),
list_size(&dev->rec_buff_list));
print_buffer_status();

mutex_unlock(&dev->io_mutex);

Expand Down Expand Up @@ -499,10 +495,7 @@ static unsigned int hdpvr_poll(struct file *filp, poll_table *wait)
dev->status = STATUS_IDLE;
}

v4l2_dbg(MSG_BUFFER, hdpvr_debug, dev->video_dev,
"buffer queue stat: %d free, %d proc\n",
list_size(&dev->free_buff_list),
list_size(&dev->rec_buff_list));
print_buffer_status();
}
mutex_unlock(&dev->io_mutex);

Expand Down

0 comments on commit 2571f79

Please sign in to comment.