linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/22] Sharing media resources across ALSA and au0828 drivers
@ 2016-02-11 23:41 Shuah Khan
  2016-02-11 23:41 ` [PATCH v3 01/22] [media] Docbook: media-types.xml: Add ALSA Media Controller Intf types Shuah Khan
                   ` (21 more replies)
  0 siblings, 22 replies; 49+ messages in thread
From: Shuah Khan @ 2016-02-11 23:41 UTC (permalink / raw)
  To: mchehab, tiwai, clemens, hans.verkuil, laurent.pinchart,
	sakari.ailus, javier
  Cc: Shuah Khan, pawel, m.szyprowski, kyungmin.park, perex, arnd,
	dan.carpenter, tvboxspy, crope, ruchandani.tina, corbet,
	chehabrafael, k.kozlowski, stefanr, inki.dae, jh1009.sung,
	elfring, prabhakar.csengg, sw0312.kim, p.zabel, ricardo.ribalda,
	labbott, pierre-louis.bossart, ricard.wanderlof, julian,
	takamichiho, dominic.sacre, misterpib, daniel, gtmkramer,
	normalperson, joe, linuxbugs, johan, klock.android, nenggun.kim,
	j.anaszewski, geliangtang, albert, linux-kernel, linux-media,
	alsa-devel

This patch series updates ALSA driver, and au0828 core
driver to use Managed Media controller API and Media
Controller API to share media resource (tuner).

This Patch v3 series is based on linux_media master.
This work addresses Mauro and Takashi's comments on
Patch v2 series.

Changes since Patch v2 series:
- Added documentation for uapi and new MC interfaces
  1. Ran make for documentation and Mauro's doc script.
     Thanks for sharing the script.
- Updated commit logs as needed for clarity.
- media: v4l-core add enable/disable source common interfaces
  Addressed comments - added static inlines in header file
- media: dvb-frontend invoke enable/disable_source handlers
  Moved the patch after enable/disable handlers and left
  pipe in dvb_frontend_private
- media: au0828 video remove au0828_enable_analog_tuner() and
  media: au0828 video change to use v4l_enable_media_source()
  1. Collapsed these two patches - it doesn't make sense to keep
     them separate. Also added FIXME as per Mauro's suggestion.
- media: au0828 change to use Managed Media Controller API
  1. Added comment explaining the need for using udev->product
     instead of dev->board.name
- media: au0828 add enable, disable source handlers
  1. Changed to handle S-Video and Composite inputs.
  2. Fixed a bug that lets Video in when ALSA holds the
     source.
  3. Added comments to one FIXME for s_input changes.
     Fix is in progress and will send it in a day or two
     combined with other issues found in au0828 video in
     the way it handles input. Doesn't impact this routine,
     changes are all in au0828-video.
- sound/usb: Use Media Controller API to share media resources
  1. Addressed comments from Mauro and Takashi about void pointer
     use.
  2. Fixed kbuildbot error when MEDIA_SUPPORT=m
- Dropped media: Ensure media device unregister is done only once
  Device removal worked without any changes to media unregister
  path. This work isn't necessary.

Shuah Khan (22):
  [media] Docbook: media-types.xml: Add ALSA Media Controller Intf types
  uapi/media.h: Declare interface types for ALSA
  [media] Docbook: media-types.xml: Add Audio Function Entities
  media: Add ALSA Media Controller function entities
  media: Media Controller register/unregister entity_notify API
  media: Media Controller enable/disable source handler API
  media: Media Controller export non locking __media_entity_setup_link()
  edia: Media Controller non-locking
    __media_entity_pipeline_start/stop()
  media: v4l-core add enable/disable source common interfaces
  media: Move au8522_media_pads enum to au8522.h from au8522_priv.h
  media: au8522 change to create MC pad for ALSA Audio Out
  media: au0828 Use au8522_media_pads enum for pad defines
  media: Change v4l-core to check if source is free
  media: au0828 change to use Managed Media Controller API
  media: au0828 handle media_init and media_register window
  media: au0828 create tuner to decoder link in disabled state
  media: au0828 disable tuner to demod link
  media: au0828-core register entity_notify hook
  media: au0828 add enable, disable source handlers
  media: dvb-frontend invoke enable/disable_source handlers
  media: au0828 video change to use v4l_enable_media_source()
  sound/usb: Use Media Controller API to share media resources

 Documentation/DocBook/media/v4l/media-types.xml |  52 ++++
 drivers/media/dvb-core/dvb_frontend.c           | 135 ++--------
 drivers/media/dvb-frontends/au8522.h            |   8 +
 drivers/media/dvb-frontends/au8522_decoder.c    |   1 +
 drivers/media/dvb-frontends/au8522_priv.h       |   8 -
 drivers/media/media-device.c                    |  42 +++
 drivers/media/media-entity.c                    |  51 +++-
 drivers/media/usb/au0828/au0828-core.c          | 325 ++++++++++++++++++++++--
 drivers/media/usb/au0828/au0828-video.c         | 102 +++-----
 drivers/media/usb/au0828/au0828.h               |   6 +
 drivers/media/v4l2-core/Makefile                |   1 +
 drivers/media/v4l2-core/v4l2-fh.c               |   2 +
 drivers/media/v4l2-core/v4l2-ioctl.c            |  30 +++
 drivers/media/v4l2-core/v4l2-mc.c               |  52 ++++
 drivers/media/v4l2-core/videobuf2-core.c        |   4 +
 include/media/media-device.h                    |  86 +++++++
 include/media/media-entity.h                    |  19 ++
 include/media/v4l2-dev.h                        |   1 +
 include/media/v4l2-mc.h                         |  65 +++++
 include/uapi/linux/media.h                      |  17 ++
 sound/usb/Kconfig                               |   4 +
 sound/usb/Makefile                              |   2 +
 sound/usb/card.c                                |  14 +
 sound/usb/card.h                                |   3 +
 sound/usb/media.c                               | 318 +++++++++++++++++++++++
 sound/usb/media.h                               |  72 ++++++
 sound/usb/mixer.h                               |   3 +
 sound/usb/pcm.c                                 |  28 +-
 sound/usb/quirks-table.h                        |   1 +
 sound/usb/stream.c                              |   2 +
 sound/usb/usbaudio.h                            |   6 +
 31 files changed, 1240 insertions(+), 220 deletions(-)
 create mode 100644 drivers/media/v4l2-core/v4l2-mc.c
 create mode 100644 sound/usb/media.c
 create mode 100644 sound/usb/media.h

-- 
2.5.0

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

end of thread, other threads:[~2016-03-17  9:30 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-11 23:41 [PATCH v3 00/22] Sharing media resources across ALSA and au0828 drivers Shuah Khan
2016-02-11 23:41 ` [PATCH v3 01/22] [media] Docbook: media-types.xml: Add ALSA Media Controller Intf types Shuah Khan
2016-02-17 12:19   ` Mauro Carvalho Chehab
2016-02-17 14:59     ` Shuah Khan
2016-02-26 19:28     ` Shuah Khan
2016-02-11 23:41 ` [PATCH v3 02/22] uapi/media.h: Declare interface types for ALSA Shuah Khan
2016-02-17 12:21   ` Mauro Carvalho Chehab
2016-02-26 19:30     ` Shuah Khan
2016-02-26 19:38       ` Takashi Iwai
2016-03-03 14:59   ` Hans Verkuil
2016-03-03 15:57     ` Shuah Khan
2016-02-11 23:41 ` [PATCH v3 03/22] [media] Docbook: media-types.xml: Add Audio Function Entities Shuah Khan
2016-02-17 12:23   ` Mauro Carvalho Chehab
2016-02-26 19:40     ` Takashi Iwai
     [not found]   ` <1886674.Y0SDWvK9bd@avalon>
2016-03-03 22:50     ` Shuah Khan
2016-02-11 23:41 ` [PATCH v3 04/22] media: Add ALSA Media Controller function entities Shuah Khan
2016-02-17 12:25   ` Mauro Carvalho Chehab
2016-02-26 19:40     ` Takashi Iwai
2016-02-11 23:41 ` [PATCH v3 05/22] media: Media Controller register/unregister entity_notify API Shuah Khan
2016-02-11 23:41 ` [PATCH v3 06/22] media: Media Controller enable/disable source handler API Shuah Khan
2016-03-10  7:35   ` Sakari Ailus
2016-03-10 14:29     ` Shuah Khan
2016-03-13 20:11       ` Sakari Ailus
2016-03-14 15:22         ` Shuah Khan
2016-03-17  9:30           ` Sakari Ailus
2016-02-11 23:41 ` [PATCH v3 07/22] media: Media Controller export non locking __media_entity_setup_link() Shuah Khan
2016-02-11 23:41 ` [PATCH v3 08/22] media: Media Controller non-locking __media_entity_pipeline_start/stop() Shuah Khan
2016-02-11 23:41 ` [PATCH v3 09/22] media: v4l-core add enable/disable source common interfaces Shuah Khan
2016-02-11 23:41 ` [PATCH v3 10/22] media: Move au8522_media_pads enum to au8522.h from au8522_priv.h Shuah Khan
2016-02-11 23:41 ` [PATCH v3 11/22] media: au8522 change to create MC pad for ALSA Audio Out Shuah Khan
2016-02-11 23:41 ` [PATCH v3 12/22] media: au0828 Use au8522_media_pads enum for pad defines Shuah Khan
2016-02-11 23:41 ` [PATCH v3 13/22] media: Change v4l-core to check if source is free Shuah Khan
2016-02-11 23:41 ` [PATCH v3 14/22] media: au0828 change to use Managed Media Controller API Shuah Khan
2016-02-11 23:41 ` [PATCH v3 15/22] media: au0828 handle media_init and media_register window Shuah Khan
2016-02-11 23:41 ` [PATCH v3 16/22] media: au0828 create tuner to decoder link in disabled state Shuah Khan
2016-02-11 23:41 ` [PATCH v3 17/22] media: au0828 disable tuner to demod link Shuah Khan
2016-02-11 23:41 ` [PATCH v3 18/22] media: au0828-core register entity_notify hook Shuah Khan
2016-02-11 23:41 ` [PATCH v3 19/22] media: au0828 add enable, disable source handlers Shuah Khan
2016-02-11 23:41 ` [PATCH v3 20/22] media: dvb-frontend invoke enable/disable_source handlers Shuah Khan
2016-02-11 23:41 ` [PATCH v3 21/22] media: au0828 video change to use v4l_enable_media_source() Shuah Khan
2016-02-11 23:41 ` [PATCH v3 22/22] sound/usb: Use Media Controller API to share media resources Shuah Khan
2016-02-26 19:33   ` Shuah Khan
2016-02-26 19:55   ` Takashi Iwai
2016-02-26 20:08     ` Shuah Khan
2016-02-26 20:50       ` Takashi Iwai
2016-02-27  2:55         ` Shuah Khan
2016-02-27  7:48           ` Takashi Iwai
2016-02-27 12:41             ` Mauro Carvalho Chehab
2016-02-29  6:01             ` 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).