[media] media: Entity use count
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 7 Mar 2010 18:04:59 +0000 (15:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:53:12 +0000 (04:53 -0300)
commit503c3d829eaf48837dd5bff5d97ad66369bb955a
tree9c14ed9561c5ffca07909e53d5ae0e52cdf5f99e
parenta5ccc48a7c48610e7f92fa599406738d69195d51
[media] media: Entity use count

Due to the wide differences between drivers regarding power management
needs, the media controller does not implement power management.
However, the media_entity structure includes a use_count field that
media drivers can use to track the number of users of every entity for
power management needs.

The use_count field is owned by media drivers and must not be touched by
entity drivers. Access to the field must be protected by the media
device graph_mutex lock.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/media-framework.txt
drivers/media/media-device.c
drivers/media/media-entity.c
include/media/media-device.h
include/media/media-entity.h