Re: [PATCH v2 1/2] media: Media Device Allocator API

2016-05-27 Thread Shuah Khan
On 05/27/2016 07:26 AM, Hans Verkuil wrote: > On 05/25/2016 01:39 AM, Shuah Khan wrote: >> Media Device Allocator API to allows multiple drivers share a media device. >> Using this API, drivers can allocate a media device with the shared struct >> device as the key. Once the media device is

Re: [PATCH v2 1/2] media: Media Device Allocator API

2016-05-27 Thread Hans Verkuil
On 05/25/2016 01:39 AM, Shuah Khan wrote: > Media Device Allocator API to allows multiple drivers share a media device. > Using this API, drivers can allocate a media device with the shared struct > device as the key. Once the media device is allocated by a driver, other > drivers can get a

[PATCH v2 1/2] media: Media Device Allocator API

2016-05-24 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. Using this API, drivers can allocate a media device with the shared struct device as the key. Once the media device is allocated by a driver, other drivers can get a reference to it. The media device is released when all