|
@@ -131,9 +131,13 @@ static int rvin_group_link_notify(struct media_link *link, u32 flags,
|
|
|
!is_media_entity_v4l2_video_device(link->sink->entity))
|
|
!is_media_entity_v4l2_video_device(link->sink->entity))
|
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
|
|
- /* If any entity is in use don't allow link changes. */
|
|
|
|
|
|
|
+ /*
|
|
|
|
|
+ * Don't allow link changes if any entity in the graph is
|
|
|
|
|
+ * streaming, modifying the CHSEL register fields can disrupt
|
|
|
|
|
+ * running streams.
|
|
|
|
|
+ */
|
|
|
media_device_for_each_entity(entity, &group->mdev)
|
|
media_device_for_each_entity(entity, &group->mdev)
|
|
|
- if (entity->use_count)
|
|
|
|
|
|
|
+ if (entity->stream_count)
|
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
|
|
|
|
|
|
mutex_lock(&group->lock);
|
|
mutex_lock(&group->lock);
|