]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: new media controller API for device resource support
authorShuah Khan <shuahkh@osg.samsung.com>
Wed, 3 Jun 2015 15:12:53 +0000 (12:12 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:05:48 +0000 (12:05 -0200)
commita7f655a5ad68f6b8e14518f839d03de10954b000
tree0fc61740f5da65f8c599bb7658d92d25f5ff019c
parentd94668ef4016e65a332d73ea2192e15eea3c7d06
[media] media: new media controller API for device resource support

Add new media controller API to allocate media device as a
device resource. When a media device is created on the main
struct device which is the parent device for the interface
device, it will be available to all drivers associated with
that interface. For example, if a usb media device driver
creates the media device on the main struct device which is
common for all the drivers that control the media device,
including the non-media ALSA driver, media controller API
can be used to share access to the resources on the media
device. This new interface provides the above described
feature. A second interface that finds and returns the media
device is added to allow drivers to find the media device
created by any of the drivers associated with the device.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c
include/media/media-device.h