linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] media token resource framework
@ 2014-09-22 15:00 Shuah Khan
  2014-09-22 15:00 ` [PATCH 1/5] media: add media token device " Shuah Khan
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Shuah Khan @ 2014-09-22 15:00 UTC (permalink / raw)
  To: m.chehab, akpm, gregkh, crope, olebowle, dheitmueller, hverkuil,
	ramakrmu, sakari.ailus, laurent.pinchart
  Cc: Shuah Khan, linux-kernel, linux-media

Add media token device resource framework to allow sharing
resources such as tuner, dma, audio etc. across media drivers
and non-media sound drivers that control media hardware. The
Media token resource is created at the main struct device that
is common to all drivers that claim various pieces of the main
media device, which allows them to find the resource using the
main struct device. As an example, digital, analog, and
snd-usb-audio drivers can use the media token resource API
using the main struct device for the interface the media device
is attached to.

This patch series consists of media token resource framework
and changes to use it in dvb-core, v4l2-core, and au0828
driver.

With these changes dvb and v4l2 can share the tuner without
disrupting each other. Used tvtime, xawtv, kaffeine, and
vlc to during development to identify v4l2 vb2 and vb1 ioctls
and file operations that disrupt the digital stream and would
require changes to check tuner ownership prior to changing the
tuner configuration. vb2 changes are made in the v4l2-core and
vb1 changes are made in the au0828 driver to encourage porting
drivers to vb2 to advantage of the new media token resource
framework with changes in the core.

Shuah Khan (5):
  media: add media token device resource framework
  media: v4l2-core changes to use media tuner token api
  media: au0828-video changes to use media tuner token api
  media: dvb-core changes to use media tuner token api
  media: au0828-core changes to create and destroy media token res

 MAINTAINERS                             |    2 +
 drivers/media/dvb-core/dvb_frontend.c   |   10 +
 drivers/media/usb/au0828/au0828-core.c  |   23 ++
 drivers/media/usb/au0828/au0828-video.c |   43 +++-
 drivers/media/v4l2-core/v4l2-fh.c       |   16 ++
 drivers/media/v4l2-core/v4l2-ioctl.c    |   96 +++++++-
 include/linux/media_tknres.h            |   98 +++++++++
 lib/Makefile                            |    2 +
 lib/media_tknres.c                      |  361 +++++++++++++++++++++++++++++++
 9 files changed, 648 insertions(+), 3 deletions(-)
 create mode 100644 include/linux/media_tknres.h
 create mode 100644 lib/media_tknres.c

-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-10-06 12:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-22 15:00 [PATCH 0/5] media token resource framework Shuah Khan
2014-09-22 15:00 ` [PATCH 1/5] media: add media token device " Shuah Khan
2014-09-24 11:26   ` Hans Verkuil
2014-09-24 13:56     ` Shuah Khan
2014-09-22 15:00 ` [PATCH 2/5] media: v4l2-core changes to use media tuner token api Shuah Khan
     [not found]   ` <CAGoCfizUWx-RrRbtuv7ctTqZskmDPK-w9bRTnEwjwn6oJ=V48g@mail.gmail.com>
2014-09-22 20:43     ` Shuah Khan
2014-09-23 14:17       ` Devin Heitmueller
2014-09-23 20:46         ` Shuah Khan
2014-09-24 12:25           ` Hans Verkuil
2014-09-24 15:57             ` Shuah Khan
2014-09-25  7:15               ` Hans Verkuil
2014-10-06 12:29             ` Laurent Pinchart
2014-09-24 11:57   ` Hans Verkuil
2014-09-24 14:24     ` Shuah Khan
2014-09-24 15:30     ` Shuah Khan
2014-09-22 15:00 ` [PATCH 3/5] media: au0828-video " Shuah Khan
2014-09-22 15:00 ` [PATCH 4/5] media: dvb-core " Shuah Khan
2014-09-22 15:00 ` [PATCH 5/5] media: au0828-core changes to create and destroy media token res Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).