mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
media: v4l2-mc: switch it to use the new approach to setup pipelines
Instead of relying on a static map for pids, use the new sig_type "taint" type to setup the pipelines with the same tipe between different entities. Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
c1a37dd5e8
commit
9d6d20e652
3 changed files with 106 additions and 23 deletions
|
|
@ -670,6 +670,24 @@ static inline void media_entity_cleanup(struct media_entity *entity) {}
|
|||
#define media_entity_cleanup(entity) do { } while (false)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* media_get_pad_index() - retrieves a pad index from an entity
|
||||
*
|
||||
* @entity: entity where the pads belong
|
||||
* @is_sink: true if the pad is a sink, false if it is a source
|
||||
* @sig_type: type of signal of the pad to be search
|
||||
*
|
||||
* This helper function finds the first pad index inside an entity that
|
||||
* satisfies both @is_sink and @sig_type conditions.
|
||||
*
|
||||
* Return:
|
||||
*
|
||||
* On success, return the pad number. If the pad was not found or the media
|
||||
* entity is a NULL pointer, return -EINVAL.
|
||||
*/
|
||||
int media_get_pad_index(struct media_entity *entity, bool is_sink,
|
||||
enum media_pad_signal_type sig_type);
|
||||
|
||||
/**
|
||||
* media_create_pad_link() - creates a link between two entities.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue