V4L/DVB: V4L2 docs: replace spaces by tabs

CC: Jonathan Corbet <corbet@lwn.net>
CC: Reviewed-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2010-02-22 18:55:00 -03:00
parent 4b586a38b0
commit 7cae112ebe
2 changed files with 22 additions and 23 deletions

View file

@ -609,4 +609,3 @@ scatter/gather method (videobuf-dma-sg), DMA with linear access
Please see Documentation/video4linux/videobuf for more information on how Please see Documentation/video4linux/videobuf for more information on how
to use the videobuf layer. to use the videobuf layer.

View file

@ -112,7 +112,7 @@ then pass it to the appropriate free routine(s):
/* Scatter/gather drivers */ /* Scatter/gather drivers */
int videobuf_dma_unmap(struct videobuf_queue *q, int videobuf_dma_unmap(struct videobuf_queue *q,
struct videobuf_dmabuf *dma); struct videobuf_dmabuf *dma);
int videobuf_dma_free(struct videobuf_dmabuf *dma); int videobuf_dma_free(struct videobuf_dmabuf *dma);
/* vmalloc drivers */ /* vmalloc drivers */
@ -120,7 +120,7 @@ then pass it to the appropriate free routine(s):
/* Contiguous drivers */ /* Contiguous drivers */
void videobuf_dma_contig_free(struct videobuf_queue *q, void videobuf_dma_contig_free(struct videobuf_queue *q,
struct videobuf_buffer *buf); struct videobuf_buffer *buf);
One way to ensure that a buffer is no longer under I/O is to pass it to: One way to ensure that a buffer is no longer under I/O is to pass it to:
@ -138,21 +138,21 @@ first step is in the open() function, which must initialize the
videobuf queue. The function to use depends on the type of buffer used: videobuf queue. The function to use depends on the type of buffer used:
void videobuf_queue_sg_init(struct videobuf_queue *q, void videobuf_queue_sg_init(struct videobuf_queue *q,
struct videobuf_queue_ops *ops, struct videobuf_queue_ops *ops,
struct device *dev, struct device *dev,
spinlock_t *irqlock, spinlock_t *irqlock,
enum v4l2_buf_type type, enum v4l2_buf_type type,
enum v4l2_field field, enum v4l2_field field,
unsigned int msize, unsigned int msize,
void *priv); void *priv);
void videobuf_queue_vmalloc_init(struct videobuf_queue *q, void videobuf_queue_vmalloc_init(struct videobuf_queue *q,
struct videobuf_queue_ops *ops, struct videobuf_queue_ops *ops,
struct device *dev, struct device *dev,
spinlock_t *irqlock, spinlock_t *irqlock,
enum v4l2_buf_type type, enum v4l2_buf_type type,
enum v4l2_field field, enum v4l2_field field,
unsigned int msize, unsigned int msize,
void *priv); void *priv);
void videobuf_queue_dma_contig_init(struct videobuf_queue *q, void videobuf_queue_dma_contig_init(struct videobuf_queue *q,
@ -183,11 +183,11 @@ easy to do that with the same code. To implement read(), the driver need
only make a call to one of: only make a call to one of:
ssize_t videobuf_read_one(struct videobuf_queue *q, ssize_t videobuf_read_one(struct videobuf_queue *q,
char __user *data, size_t count, char __user *data, size_t count,
loff_t *ppos, int nonblocking); loff_t *ppos, int nonblocking);
ssize_t videobuf_read_stream(struct videobuf_queue *q, ssize_t videobuf_read_stream(struct videobuf_queue *q,
char __user *data, size_t count, char __user *data, size_t count,
loff_t *ppos, int vbihack, int nonblocking); loff_t *ppos, int vbihack, int nonblocking);
Either one of these functions will read frame data into data, returning the Either one of these functions will read frame data into data, returning the
@ -240,15 +240,15 @@ the many ioctl() commands made available to user space. A number of these
calls. The relevant helper functions are: calls. The relevant helper functions are:
int videobuf_reqbufs(struct videobuf_queue *q, int videobuf_reqbufs(struct videobuf_queue *q,
struct v4l2_requestbuffers *req); struct v4l2_requestbuffers *req);
int videobuf_querybuf(struct videobuf_queue *q, struct v4l2_buffer *b); int videobuf_querybuf(struct videobuf_queue *q, struct v4l2_buffer *b);
int videobuf_qbuf(struct videobuf_queue *q, struct v4l2_buffer *b); int videobuf_qbuf(struct videobuf_queue *q, struct v4l2_buffer *b);
int videobuf_dqbuf(struct videobuf_queue *q, struct v4l2_buffer *b, int videobuf_dqbuf(struct videobuf_queue *q, struct v4l2_buffer *b,
int nonblocking); int nonblocking);
int videobuf_streamon(struct videobuf_queue *q); int videobuf_streamon(struct videobuf_queue *q);
int videobuf_streamoff(struct videobuf_queue *q); int videobuf_streamoff(struct videobuf_queue *q);
int videobuf_cgmbuf(struct videobuf_queue *q, struct video_mbuf *mbuf, int videobuf_cgmbuf(struct videobuf_queue *q, struct video_mbuf *mbuf,
int count); int count);
So, for example, a VIDIOC_REQBUFS call turns into a call to the driver's So, for example, a VIDIOC_REQBUFS call turns into a call to the driver's
vidioc_reqbufs() callback which, in turn, usually only needs to locate the vidioc_reqbufs() callback which, in turn, usually only needs to locate the