From: Shuah Khan <shuahkh@osg.samsung.com>
To: mchehab@osg.samsung.com, hans.verkuil@cisco.com,
laurent.pinchart@ideasonboard.com, tiwai@suse.de, perex@perex.cz,
agoode@google.com, pierre-louis.bossart@linux.intel.com,
gtmkramer@xs4all.nl, clemens@ladisch.de, vladcatoi@gmail.com,
damien@zamaudio.com, chris.j.arges@canonical.com,
takamichiho@gmail.com, misterpib@gmail.com, daniel@zonque.org,
pmatilai@laiskiainen.org, jussi@sonarnerd.net,
normalperson@yhbt.net, fisch602@gmail.com, joe@oampo.co.uk
Cc: Shuah Khan <shuahkh@osg.samsung.com>,
linux-media@vger.kernel.org, alsa-devel@alsa-project.org
Subject: [PATCH v2 0/2] Update ALSA driver to use media controller API
Date: Wed, 3 Jun 2015 09:12:52 -0600 [thread overview]
Message-ID: <cover.1433298842.git.shuahkh@osg.samsung.com> (raw)
This patch series updates ALSA driver to use media controller
API to share tuner with DVB and V4L2 drivers that control AU0828
media device. Two new interfaces are added to media controller
API to enable creating media device as a device resource. This
allows creating media device as a device resource on the main
struct device that is common to all drivers that control a single
media hardware and share resources on it. Drivers then can find
the common media device to register entities and manage links,
and pipelines.
Tested with and without CONFIG_MEDIA_CONTROLLER enabled.
Tested tuner entity doesn't exist case as au0828 v4l2
driver is the one that will create the tuner when it gets
updated to use media controller API.
Please note that au0828 updates media controller are necessary
before the resource sharing can work across ALSA and au0828
dvb and v4l2 drivers. This work is in progress and another
developer is working on it.
Changes since v1:
- Moved media specific code into new header and source file
- Created a new structure for media controller specific fields
- Added a new define USE_MEDIA_CONTROLLER to add media specific
code. This new define is defined only when Media Controller
support is enabled. New media specific code is active only
when this define is defined.
- Moved media_deviced_delete() check under !was_shutdown block
- Removed return check for media_device_init()
- Changed new Media Controller interface names for clarity. Now
they are named media_device_get_devres() and
media_device_find_devres().
- Calling media_entity_pipeline_stop() on a pipe that isn't active
appears to be safe. This needs further testing once AU0828
media controller patches are ready.
Shuah Khan (2):
media: new media controller API for device resource support
sound/usb: Update ALSA driver to use media controller API
drivers/media/media-device.c | 33 ++++++++
include/media/media-device.h | 2 +
sound/usb/Makefile | 3 +-
sound/usb/card.c | 5 ++
sound/usb/card.h | 1 +
sound/usb/media.c | 181 +++++++++++++++++++++++++++++++++++++++++++
sound/usb/media.h | 40 ++++++++++
sound/usb/pcm.c | 10 ++-
sound/usb/quirks-table.h | 1 +
sound/usb/quirks.c | 9 ++-
sound/usb/stream.c | 3 +
sound/usb/usbaudio.h | 1 +
12 files changed, 286 insertions(+), 3 deletions(-)
create mode 100644 sound/usb/media.c
create mode 100644 sound/usb/media.h
--
2.1.4
next reply other threads:[~2015-06-03 15:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 15:12 Shuah Khan [this message]
2015-06-03 15:12 ` [PATCH v2 1/2] media: new media controller API for device resource support Shuah Khan
2015-06-03 17:42 ` Mauro Carvalho Chehab
2015-06-03 18:14 ` Shuah Khan
2015-06-03 18:55 ` Mauro Carvalho Chehab
2015-06-03 15:12 ` [PATCH v2 2/2] sound/usb: Update ALSA driver to use media controller API Shuah Khan
2015-06-03 19:14 ` Mauro Carvalho Chehab
2015-06-06 1:37 ` Shuah Khan
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.1433298842.git.shuahkh@osg.samsung.com \
--to=shuahkh@osg.samsung.com \
--cc=agoode@google.com \
--cc=alsa-devel@alsa-project.org \
--cc=chris.j.arges@canonical.com \
--cc=clemens@ladisch.de \
--cc=damien@zamaudio.com \
--cc=daniel@zonque.org \
--cc=fisch602@gmail.com \
--cc=gtmkramer@xs4all.nl \
--cc=hans.verkuil@cisco.com \
--cc=joe@oampo.co.uk \
--cc=jussi@sonarnerd.net \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=misterpib@gmail.com \
--cc=normalperson@yhbt.net \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=pmatilai@laiskiainen.org \
--cc=takamichiho@gmail.com \
--cc=tiwai@suse.de \
--cc=vladcatoi@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox