media token resource framework
Status from this message: Nacked-by: Hans Verkuil <[email protected]>
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 50 repliesNAK
- v15 patches 12 repliesSuperseded
Patches in v2
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | media: add media token device resource frameworkMAINTAINERS include/ lib/ +1 more | +291 | 9 replies | |
| 2/6 | media: v4l2-core changes to use media token apidrivers/ drivers/ | +68 | 0 replies | |
| 3/6 | media: au0828-video changes to use media token apidrivers/ | +41 | 0 replies | |
| 4/6 | media: dvb-core changes to use media token apidrivers/ | +13 | 0 replies | |
| 5/6 | sound/usb: pcm changes to use media token apisound/ | +9 | 36 replies | |
| 6/6 | media: au0828-core changes to create and destroy mediadrivers/ | +23 | 0 replies |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by.
| Patch | Hans Verkuil |
|---|---|
| 1/6 | Nacked-by |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] media token resource framework
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, au0828 driver, and snd-usb-audio driver.
With these changes dvb and v4l2 can share the tuner without disrupting each other. Used tvtime, xawtv, kaffeine, and vlc, vlc audio capture option, arecord/aplay 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.
In this patch v2 series, fixed problems identified in the patch v1 series. Important ones are changing snd-usb-audio to use media tokens, holding tuner lock in VIDIOC_ENUMINPUT, and VIDIOC_QUERYSTD.
Shuah Khan (6):
media: add media token device resource framework
media: v4l2-core changes to use media token api
media: au0828-video changes to use media token api
media: dvb-core changes to use media token api sound/usb: pcm changes to use media token api
media: au0828-core changes to create and destroy media
MAINTAINERS | 2 + drivers/media/dvb-core/dvb_frontend.c | 14 +- drivers/media/usb/au0828/au0828-core.c | 23 +++ drivers/media/usb/au0828/au0828-video.c | 42 +++++- drivers/media/v4l2-core/v4l2-fh.c | 7 + drivers/media/v4l2-core/v4l2-ioctl.c | 61 ++++++++ include/linux/media_tknres.h | 50 +++++++ lib/Makefile | 2 + lib/media_tknres.c | 237 +++++++++++++++++++++++++++++++ sound/usb/pcm.c | 9 ++ 10 files changed, 445 insertions(+), 2 deletions(-) create mode 100644 include/linux/media_tknres.h create mode 100644 lib/media_tknres.c
Signature · 1 line
1.7.10.4