Lines Matching refs:entity

216 	struct media_entity *entity, *mixer = NULL, *decoder = NULL;
224 media_device_for_each_entity(entity, dev->media_dev) {
225 if (entity->function == MEDIA_ENT_F_AUDIO_MIXER)
226 mixer = entity;
227 else if (entity->function == MEDIA_ENT_F_ATV_DECODER)
228 decoder = entity;
241 media_device_for_each_entity(entity, dev->media_dev) {
242 if (entity->function == MEDIA_ENT_F_AUDIO_MIXER)
243 mixer = entity;
266 struct media_entity *entity)
275 if (entity->function == MEDIA_ENT_F_IO_V4L ||
276 entity->function == MEDIA_ENT_F_AUDIO_CAPTURE ||
277 entity->function == MEDIA_ENT_F_IO_VBI)
288 static int au0828_enable_source(struct media_entity *entity,
295 struct media_device *mdev = entity->graph_obj.mdev;
304 * For Audio and V4L2 entity, find the link to which decoder
308 * and any other entity. If one exists, source is busy. If
310 * For DVB FE entity, the source for the link is the tuner.
314 if (entity->function == MEDIA_ENT_F_DTV_DEMOD) {
315 sink = entity;
357 if (dev->active_link_owner == entity) {
362 pr_debug("%s already owns the tuner\n", entity->name);
366 entity)) {
370 * Starting pipeline between sharing entity and sink
377 dev->active_link_user = entity;
381 entity->name);
392 if (link->sink->entity == sink &&
393 link->source->entity == find_source) {
405 source = found_link->source->entity;
413 ret = __media_pipeline_start(entity->pads, pipe);
416 source->name, entity->name, ret);
428 dev->active_link_owner = entity;
437 __func__, entity->name, entity->function, ret);
442 static void au0828_disable_source(struct media_entity *entity)
445 struct media_device *mdev = entity->graph_obj.mdev;
457 * (tuner/s-video/Composite) to the entity
461 if (dev->active_link->sink->entity == dev->active_sink &&
462 dev->active_link->source->entity == dev->active_source) {
478 entity->name, dev->users);
488 if (dev->active_link_owner != entity) {
531 if (dev->active_link_owner != entity)
563 struct media_entity *entity, *demod = NULL;
603 media_device_for_each_entity(entity, dev->media_dev) {
604 switch (entity->function) {
606 dev->tuner = entity;
609 dev->decoder = entity;
612 demod = entity;
620 if (demod && link->sink->entity == demod)
622 if (dev->decoder && link->sink->entity == dev->decoder)