From: shuah@kernel.org
To: mchehab@kernel.org, perex@perex.cz, tiwai@suse.com
Cc: Shuah Khan <shuah@kernel.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
alsa-devel@alsa-project.org
Subject: [RFC PATCH v8 0/4] Media Device Allocator API
Date: Thu, 1 Nov 2018 18:31:29 -0600 [thread overview]
Message-ID: <cover.1541118238.git.shuah@kernel.org> (raw)
From: Shuah Khan <shuah@kernel.org>
This patch series has been on the ice for the last couple of years.
Mauro asked me to restart the discussion on this and see if we can
make progress.
I rebased the series to Linux 4.19. It has been surprisingly well
preserved with one small merge conflict resolved in 0004.
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.
- No changes to 0001,0002 code since the v7 referenced below.
- 0003 is a new patch to enable ALSA defines that have been
disabled for kernel between 4.9 and 4.19.
- Minor merge conflict resolution in 0004.
- Added SPDX to new files.
References:
https://www.mail-archive.com/linux-media@vger.kernel.org/msg105854.html
Please review. I am sending this as RFC even though it has been tested
several times prior to this non-event rebased v8. I ran sanity tests.
Shuah Khan (4):
media: Media Device Allocator API
media: change au0828 to use Media Device Allocator API
media: media.h: Enable ALSA MEDIA_INTF_T* interface types
sound/usb: Use Media Controller API to share media resources
Documentation/media/kapi/mc-core.rst | 37 +++
drivers/media/Makefile | 3 +-
drivers/media/media-dev-allocator.c | 132 ++++++++++
drivers/media/usb/au0828/au0828-core.c | 12 +-
drivers/media/usb/au0828/au0828.h | 1 +
include/media/media-dev-allocator.h | 53 ++++
include/uapi/linux/media.h | 25 +-
sound/usb/Kconfig | 4 +
sound/usb/Makefile | 2 +
sound/usb/card.c | 14 ++
sound/usb/card.h | 3 +
sound/usb/media.c | 320 +++++++++++++++++++++++++
sound/usb/media.h | 73 ++++++
sound/usb/mixer.h | 3 +
sound/usb/pcm.c | 29 ++-
sound/usb/quirks-table.h | 1 +
sound/usb/stream.c | 2 +
sound/usb/usbaudio.h | 6 +
18 files changed, 692 insertions(+), 28 deletions(-)
create mode 100644 drivers/media/media-dev-allocator.c
create mode 100644 include/media/media-dev-allocator.h
create mode 100644 sound/usb/media.c
create mode 100644 sound/usb/media.h
--
2.17.0
next reply other threads:[~2018-11-02 0:31 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 0:31 shuah [this message]
[not found] ` <cover.1541109584.git.shuah@kernel.org>
2018-11-02 0:31 ` [RFC PATCH v8 1/4] media: Media Device Allocator API shuah
2018-11-19 8:59 ` Pavel Machek
2018-12-06 15:33 ` shuah
2018-12-09 8:09 ` Pavel Machek
2018-12-09 8:09 ` Pavel Machek
2018-12-09 11:27 ` Mauro Carvalho Chehab
2018-12-09 11:27 ` Mauro Carvalho Chehab
2018-12-09 11:37 ` Pavel Machek
2018-12-09 11:37 ` Pavel Machek
2018-11-20 11:20 ` Hans Verkuil
2018-12-06 15:27 ` shuah
2018-11-02 0:31 ` [RFC PATCH v8 2/4] media: change au0828 to use " shuah
2018-11-02 0:31 ` [RFC PATCH v8 3/4] media: media.h: Enable ALSA MEDIA_INTF_T* interface types shuah
2018-11-20 11:22 ` Hans Verkuil
2018-12-06 15:29 ` shuah
2018-11-02 0:31 ` [RFC PATCH v8 4/4] sound/usb: Use Media Controller API to share media resources shuah
2018-11-20 11:54 ` Hans Verkuil
2018-12-06 15:34 ` shuah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1541118238.git.shuah@kernel.org \
--to=shuah@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.