All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: alsa-devel@alsa-project.org
Subject: [PATCH RFC 0/5] Add devres support to card resources
Date: Thu, 13 Sep 2018 08:05:22 +0200	[thread overview]
Message-ID: <20180913060527.24694-1-tiwai@suse.de> (raw)

Hi,

the devres or device-managed resource allocation is a popular method
among many drivers but we didn't have such a mechanism for the core
sound card objects.  Here is an attempt to implement that.

The first patch gives the devm-version of page allocator helper, and
the second patch provides the devm-version of snd_card_new().
The rest patches are examples of the new API usages.

As of now, this patch series is still an RFC.  The usefulness of this
is still unclear, but I believe this can be used in all legacy ALSA
drivers pretty well.  For ASoC, this would help very little,
supposedly, though.

The latest patches are found in topic/devres branch of my sound.git
tree, too.


thanks,

Takashi

===

Takashi Iwai (5):
  ALSA: core: Add device-managed page allocator helper
  ALSA: core: Add managed card creation
  ALSA: intel8x0: Allocate resources with device-managed APIs
  ALSA: atiixp: Allocate resources with device-managed APIs
  ALSA: hda: Allocate resources with device-managed APIs

 include/sound/core.h           |   5 ++
 include/sound/memalloc.h       |   4 +
 sound/core/init.c              |  95 +++++++++++++++++++++-
 sound/core/memalloc.c          |  88 +++++++++++++++-----
 sound/pci/atiixp.c             | 104 +++++++-----------------
 sound/pci/atiixp_modem.c       | 104 +++++++-----------------
 sound/pci/hda/hda_controller.h |   1 -
 sound/pci/hda/hda_intel.c      |  43 +++-------
 sound/pci/intel8x0.c           | 143 +++++++++++----------------------
 sound/pci/intel8x0m.c          | 143 +++++++++++----------------------
 10 files changed, 332 insertions(+), 398 deletions(-)

-- 
2.18.0

             reply	other threads:[~2018-09-13  6:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-13  6:05 Takashi Iwai [this message]
2018-09-13  6:05 ` [PATCH RFC 1/5] ALSA: core: Add device-managed page allocator helper Takashi Iwai
2018-09-13  6:05 ` [PATCH RFC 2/5] ALSA: core: Add managed card creation Takashi Iwai
2018-09-13  6:05 ` [PATCH RFC 3/5] ALSA: intel8x0: Allocate resources with device-managed APIs Takashi Iwai
2018-09-13  6:05 ` [PATCH RFC 4/5] ALSA: atiixp: " Takashi Iwai
2018-09-13  6:05 ` [PATCH RFC 5/5] ALSA: hda: " Takashi Iwai

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=20180913060527.24694-1-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    /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.