Skip to content

Commit

Permalink
v4l2-mc.h: Add stubs for the V4L2 PM/pipeline routines
Browse files Browse the repository at this point in the history
Let's add stubs for the case where the Kernel gets compiled
without MEDIA_CONTROLLER.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mchehab committed Mar 3, 2016
1 parent 7641379 commit a77bf70
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions include/media/v4l2-mc.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int v4l2_pipeline_pm_use(struct media_entity *entity, int use);
int v4l2_pipeline_link_notify(struct media_link *link, u32 flags,
unsigned int notification);

#else
#else /* CONFIG_MEDIA_CONTROLLER */

static inline int v4l2_mc_create_media_graph(struct media_device *mdev)
{
Expand All @@ -228,5 +228,17 @@ static int v4l_vb2q_enable_media_source(struct vb2_queue *q)
{
return 0;
}
#endif

int v4l2_pipeline_pm_use(struct media_entity *entity, int use);
{
return 0;
}

int v4l2_pipeline_link_notify(struct media_link *link, u32 flags,
unsigned int notification);
{
return 0;
}

#endif /* CONFIG_MEDIA_CONTROLLER */
#endif /* _V4L2_MC_H */

0 comments on commit a77bf70

Please sign in to comment.