Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1400907

[PATCH 0/3] Media Device Allocator API

From Shuah Khan <shuahkh@osg.samsung.com>
Newsgroups linux.kernel
Subject [PATCH 0/3] Media Device Allocator API
Date 2016-05-13 19:20 +0200
Message-ID <ryoUN-7ZA-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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
the references are released.

This patch series has been tested with au0828 and snd-usb-audio drivers.
snd-usb-audio patch isn't included in this series. Once this patch series
is reviews and gets a stable state, I will send out the snd-usb-audio
patch.

Shuah Khan (3):
  media: Media Device Allocator API
  media: add media_device_unregister_put() interface
  media: change au0828 to use Media Device Allocator API

 drivers/media/Makefile                 |   3 +-
 drivers/media/media-dev-allocator.c    | 139 +++++++++++++++++++++++++++++++++
 drivers/media/media-device.c           |  11 +++
 drivers/media/usb/au0828/au0828-core.c |  12 +--
 drivers/media/usb/au0828/au0828.h      |   1 +
 include/media/media-dev-allocator.h    | 118 ++++++++++++++++++++++++++++
 include/media/media-device.h           |  15 ++++
 7 files changed, 290 insertions(+), 9 deletions(-)
 create mode 100644 drivers/media/media-dev-allocator.c
 create mode 100644 include/media/media-dev-allocator.h

-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] Media Device Allocator API  Shuah Khan <shuahkh@osg.samsung.com> - 2016-05-13 19:20 +0200
  [PATCH 2/3] media: add media_device_unregister_put() interface Shuah Khan <shuahkh@osg.samsung.com> - 2016-05-13 19:20 +0200
    Re: [PATCH 2/3] media: add media_device_unregister_put() interface Hans Verkuil <hverkuil@xs4all.nl> - 2016-05-23 13:40 +0200
      Re: [PATCH 2/3] media: add media_device_unregister_put() interface Shuah Khan <shuahkh@osg.samsung.com> - 2016-05-24 19:20 +0200
  [PATCH 3/3] media: change au0828 to use Media Device Allocator API Shuah Khan <shuahkh@osg.samsung.com> - 2016-05-13 19:20 +0200
  [PATCH 1/3] media: Media Device Allocator API Shuah Khan <shuahkh@osg.samsung.com> - 2016-05-13 19:20 +0200
    Re: [PATCH 1/3] media: Media Device Allocator API Hans Verkuil <hverkuil@xs4all.nl> - 2016-05-23 13:30 +0200
      Re: [PATCH 1/3] media: Media Device Allocator API Shuah Khan <shuahkh@osg.samsung.com> - 2016-05-24 19:10 +0200

csiph-web