[media] media: v4l-core add enable/disable source common interfaces
Add a new interfaces to be used by v4l-core to invoke enable source and disable_source handlers in the media_device. The enable_source helper function invokes the enable_source handler to find media source entity connected to the entity and check is it is available or busy. If source is available, link is activated and pipeline is started. The disable_source helper function invokes the disable_source handler to deactivate and stop the pipeline. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
fb49f20438
commit
d0a164f593
@@ -87,6 +87,7 @@ struct video_device
|
||||
#if defined(CONFIG_MEDIA_CONTROLLER)
|
||||
struct media_entity entity;
|
||||
struct media_intf_devnode *intf_devnode;
|
||||
struct media_pipeline pipe;
|
||||
#endif
|
||||
/* device ops */
|
||||
const struct v4l2_file_operations *fops;
|
||||
|
Reference in New Issue
Block a user