Commit 98d79dc3 authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Mauro Carvalho Chehab

media: drivers: use video_device_pipeline()

Use video_device_pipeline() in the drivers instead of
media_entity_pipeline().
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 12cecbf9
...@@ -402,7 +402,7 @@ static int xvip_dma_start_streaming(struct vb2_queue *vq, unsigned int count) ...@@ -402,7 +402,7 @@ static int xvip_dma_start_streaming(struct vb2_queue *vq, unsigned int count)
* Use the pipeline object embedded in the first DMA object that starts * Use the pipeline object embedded in the first DMA object that starts
* streaming. * streaming.
*/ */
pipe = to_xvip_pipeline(&dma->video.entity) ? : &dma->pipe; pipe = to_xvip_pipeline(&dma->video) ? : &dma->pipe;
ret = video_device_pipeline_start(&dma->video, &pipe->pipe); ret = video_device_pipeline_start(&dma->video, &pipe->pipe);
if (ret < 0) if (ret < 0)
...@@ -447,7 +447,7 @@ static int xvip_dma_start_streaming(struct vb2_queue *vq, unsigned int count) ...@@ -447,7 +447,7 @@ static int xvip_dma_start_streaming(struct vb2_queue *vq, unsigned int count)
static void xvip_dma_stop_streaming(struct vb2_queue *vq) static void xvip_dma_stop_streaming(struct vb2_queue *vq)
{ {
struct xvip_dma *dma = vb2_get_drv_priv(vq); struct xvip_dma *dma = vb2_get_drv_priv(vq);
struct xvip_pipeline *pipe = to_xvip_pipeline(&dma->video.entity); struct xvip_pipeline *pipe = to_xvip_pipeline(&dma->video);
struct xvip_dma_buffer *buf, *nbuf; struct xvip_dma_buffer *buf, *nbuf;
/* Stop the pipeline. */ /* Stop the pipeline. */
......
...@@ -45,9 +45,9 @@ struct xvip_pipeline { ...@@ -45,9 +45,9 @@ struct xvip_pipeline {
struct xvip_dma *output; struct xvip_dma *output;
}; };
static inline struct xvip_pipeline *to_xvip_pipeline(struct media_entity *e) static inline struct xvip_pipeline *to_xvip_pipeline(struct video_device *vdev)
{ {
struct media_pipeline *pipe = media_entity_pipeline(e); struct media_pipeline *pipe = video_device_pipeline(vdev);
if (!pipe) if (!pipe)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment