media: avoid use of 'videobuf'
The term 'videobuf' typically refers to the old videobuf version 1 framework. Avoid using this word in drivers that are converted to vb2. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Родитель
77423a62db
Коммит
f068a6cec0
|
@ -19,7 +19,7 @@ Global video workflow
|
|||
|
||||
a) QCI stopped
|
||||
Initially, the QCI interface is stopped.
|
||||
When a buffer is queued (pxa_videobuf_ops->buf_queue), the QCI starts.
|
||||
When a buffer is queued, start_streaming is called and the QCI starts.
|
||||
|
||||
b) QCI started
|
||||
More buffers can be queued while the QCI is started without halting the
|
||||
|
|
|
@ -245,7 +245,7 @@ static void rtl2832_sdr_urb_complete(struct urb *urb)
|
|||
if (unlikely(fbuf == NULL)) {
|
||||
dev->vb_full++;
|
||||
dev_notice_ratelimited(&pdev->dev,
|
||||
"videobuf is full, %d packets dropped\n",
|
||||
"video buffer is full, %d packets dropped\n",
|
||||
dev->vb_full);
|
||||
goto skip;
|
||||
}
|
||||
|
|
|
@ -1020,7 +1020,7 @@ static int solo_g_parm(struct file *file, void *priv,
|
|||
cp->timeperframe.numerator = solo_enc->interval;
|
||||
cp->timeperframe.denominator = solo_enc->solo_dev->fps;
|
||||
cp->capturemode = 0;
|
||||
/* XXX: Shouldn't we be able to get/set this from videobuf? */
|
||||
/* XXX: Shouldn't we be able to get/set this from vb2? */
|
||||
cp->readbuffers = 2;
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -854,7 +854,7 @@ fail:
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
static void pxa_videobuf_set_actdma(struct pxa_camera_dev *pcdev,
|
||||
static void pxa_video_buf_set_actdma(struct pxa_camera_dev *pcdev,
|
||||
struct pxa_buffer *buf)
|
||||
{
|
||||
buf->active_dma = DMA_Y;
|
||||
|
@ -973,7 +973,7 @@ static void pxa_camera_wakeup(struct pxa_camera_dev *pcdev,
|
|||
* stopped. This means the tailed buffer would never be transferred by DMA.
|
||||
* This function restarts the capture for this corner case, where :
|
||||
* - DADR() == DADDR_STOP
|
||||
* - a videobuffer is queued on the pcdev->capture list
|
||||
* - a video buffer is queued on the pcdev->capture list
|
||||
*
|
||||
* Please check the "DMA hot chaining timeslice issue" in
|
||||
* Documentation/driver-api/media/drivers/pxa_camera.rst
|
||||
|
@ -1163,7 +1163,7 @@ static void pxa_camera_eof(struct tasklet_struct *t)
|
|||
pcdev->active = list_first_entry(&pcdev->capture,
|
||||
struct pxa_buffer, queue);
|
||||
buf = pcdev->active;
|
||||
pxa_videobuf_set_actdma(pcdev, buf);
|
||||
pxa_video_buf_set_actdma(pcdev, buf);
|
||||
|
||||
pxa_dma_start_channels(pcdev);
|
||||
}
|
||||
|
@ -1416,7 +1416,7 @@ static int pxac_vb2_prepare(struct vb2_buffer *vb)
|
|||
* the actual buffer is yours
|
||||
*/
|
||||
buf->inwork = 0;
|
||||
pxa_videobuf_set_actdma(pcdev, buf);
|
||||
pxa_video_buf_set_actdma(pcdev, buf);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#if !defined(MCAM_MODE_VMALLOC) && !defined(MCAM_MODE_DMA_CONTIG) && \
|
||||
!defined(MCAM_MODE_DMA_SG)
|
||||
#error One of the videobuf buffer modes must be selected in the config
|
||||
#error One of the vb2 buffer modes must be selected in the config
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ static int vsp1_video_pipeline_setup_partitions(struct vsp1_pipeline *pipe)
|
|||
* @video: the video node
|
||||
*
|
||||
* This function completes the current buffer by filling its sequence number,
|
||||
* time stamp and payload size, and hands it back to the videobuf core.
|
||||
* time stamp and payload size, and hands it back to the vb2 core.
|
||||
*
|
||||
* Return the next queued buffer or NULL if the queue is empty.
|
||||
*/
|
||||
|
|
|
@ -215,7 +215,7 @@ struct fimc_addr {
|
|||
|
||||
/**
|
||||
* struct fimc_vid_buffer - the driver's video buffer
|
||||
* @vb: v4l videobuf buffer
|
||||
* @vb: v4l vb2 buffer
|
||||
* @list: linked list structure for buffer queue
|
||||
* @addr: precalculated DMA address set
|
||||
* @index: buffer index for the output DMA engine
|
||||
|
|
|
@ -323,7 +323,7 @@ static void s5p_mfc_handle_frame_new(struct s5p_mfc_ctx *ctx, unsigned int err)
|
|||
}
|
||||
ctx->sequence++;
|
||||
/* The MFC returns address of the buffer, now we have to
|
||||
* check which videobuf does it correspond to */
|
||||
* check which vb2_buffer does it correspond to */
|
||||
list_for_each_entry(dst_buf, &ctx->dst_queue, list) {
|
||||
u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* A virtual v4l2-mem2mem example device.
|
||||
*
|
||||
* This is a virtual device driver for testing mem-to-mem videobuf framework.
|
||||
* This is a virtual device driver for testing mem-to-mem vb2 framework.
|
||||
* It simulates a device that uses memory buffers for both source and
|
||||
* destination, processes the data and issues an "irq" (simulated by a delayed
|
||||
* workqueue).
|
||||
|
|
|
@ -294,7 +294,7 @@ static void airspy_urb_complete(struct urb *urb)
|
|||
if (unlikely(fbuf == NULL)) {
|
||||
s->vb_full++;
|
||||
dev_notice_ratelimited(s->dev,
|
||||
"videobuf is full, %d packets dropped\n",
|
||||
"video buffer is full, %d packets dropped\n",
|
||||
s->vb_full);
|
||||
goto skip;
|
||||
}
|
||||
|
|
|
@ -384,7 +384,7 @@ static void au0828_copy_video(struct au0828_dev *dev,
|
|||
}
|
||||
|
||||
/*
|
||||
* video-buf generic routine to get the next available buffer
|
||||
* generic routine to get the next available buffer
|
||||
*/
|
||||
static inline void get_next_buf(struct au0828_dmaqueue *dma_q,
|
||||
struct au0828_buffer **buf)
|
||||
|
@ -459,7 +459,7 @@ static void au0828_copy_vbi(struct au0828_dev *dev,
|
|||
|
||||
|
||||
/*
|
||||
* video-buf generic routine to get the next available VBI buffer
|
||||
* generic routine to get the next available VBI buffer
|
||||
*/
|
||||
static inline void vbi_get_next_buf(struct au0828_dmaqueue *dma_q,
|
||||
struct au0828_buffer **buf)
|
||||
|
|
|
@ -558,7 +558,7 @@ u32 cx231xx_copy_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
|
|||
}
|
||||
|
||||
/*
|
||||
* video-buf generic routine to get the next available buffer
|
||||
* generic routine to get the next available buffer
|
||||
*/
|
||||
static inline void get_next_vbi_buf(struct cx231xx_dmaqueue *dma_q,
|
||||
struct cx231xx_buffer **buf)
|
||||
|
|
|
@ -220,7 +220,7 @@ static inline void print_err_status(struct cx231xx *dev, int packet, int status)
|
|||
}
|
||||
|
||||
/*
|
||||
* video-buf generic routine to get the next available buffer
|
||||
* generic routine to get the next available buffer
|
||||
*/
|
||||
static inline void get_next_buf(struct cx231xx_dmaqueue *dma_q,
|
||||
struct cx231xx_buffer **buf)
|
||||
|
|
|
@ -440,7 +440,7 @@ static inline void finish_buffer(struct em28xx *dev,
|
|||
}
|
||||
|
||||
/*
|
||||
* Copy picture data from USB buffer to videobuf buffer
|
||||
* Copy picture data from USB buffer to video buffer
|
||||
*/
|
||||
static void em28xx_copy_video(struct em28xx *dev,
|
||||
struct em28xx_buffer *buf,
|
||||
|
@ -521,7 +521,7 @@ static void em28xx_copy_video(struct em28xx *dev,
|
|||
}
|
||||
|
||||
/*
|
||||
* Copy VBI data from USB buffer to videobuf buffer
|
||||
* Copy VBI data from USB buffer to video buffer
|
||||
*/
|
||||
static void em28xx_copy_vbi(struct em28xx *dev,
|
||||
struct em28xx_buffer *buf,
|
||||
|
|
|
@ -411,7 +411,7 @@ static void msi2500_isoc_handler(struct urb *urb)
|
|||
if (unlikely(fbuf == NULL)) {
|
||||
dev->vb_full++;
|
||||
dev_dbg_ratelimited(dev->dev,
|
||||
"videobuf is full, %d packets dropped\n",
|
||||
"video buffer is full, %d packets dropped\n",
|
||||
dev->vb_full);
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ static int pvr2_dvb_feed_func(struct pvr2_dvb_adapter *adap)
|
|||
static int pvr2_dvb_feed_thread(void *data)
|
||||
{
|
||||
int stat = pvr2_dvb_feed_func(data);
|
||||
/* from videobuf-dvb.c: */
|
||||
|
||||
while (!kthread_should_stop()) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
schedule();
|
||||
|
|
Загрузка…
Ссылка в новой задаче