All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] Refactoring ALSA core device management
@ 2015-02-02 10:24 Takashi Iwai
  2015-02-02 10:24 ` [PATCH 01/14] ALSA: Allow to pass the device object to snd_register_device*() Takashi Iwai
                   ` (14 more replies)
  0 siblings, 15 replies; 21+ messages in thread
From: Takashi Iwai @ 2015-02-02 10:24 UTC (permalink / raw)
  To: alsa-devel

Hi,

this is a series of relatively small patches for refactoring the ALSA
core device management.  I experimented a similar thing some time ago
but didn't merge it in the end due to too intrusive changes.  At this
time, the approach is rather minimalistic: only the device
registration part is replaced by embedding the struct device into
each ALSA device object.

To the outside of ALSA core, there shouldn't be many visible changes.
The only possible breakage would be an access to some renamed /
dropped fields by a downstream driver.  But it must be easy to
correct.

Some patches in the series are merely cleanup patches that can be
applied individually, but included just for completeness.

The whole patches are found in test/snd-device branch of sound git
tree, too.


Takashi

===

Takashi Iwai (14):
  ALSA: Allow to pass the device object to snd_register_device*()
  ALSA: control: Provide a helper to look for the preferred subdevice
  ALSA: Add a helper to initialize device
  ALSA: control: Embed struct device
  ALSA: hwdep: Embed struct device
  ALSA: pcm: Embed struct device
  ALSA: rawmidi: Embed struct device
  ALSA: rawmidi: Use rawmidi device file for kernel messages
  ALSA: timer: Propagate the error at initialization
  ALSA: timer: Handle the device directly
  ALSA: seq: Handle the device directly
  ALSA: compress: Embed struct device
  ALSA: Simplify snd_device_register() variants
  ALSA: Drop snd_get_device() helper

 include/sound/compress_driver.h         |   4 +-
 include/sound/control.h                 |  11 +++-
 include/sound/core.h                    |  41 ++----------
 include/sound/hwdep.h                   |   3 +-
 include/sound/pcm.h                     |   2 +-
 include/sound/rawmidi.h                 |   4 +-
 sound/aoa/soundbus/i2sbus/pcm.c         |   5 +-
 sound/core/compress_offload.c           |  26 ++++++--
 sound/core/control.c                    |  66 +++++++++++--------
 sound/core/hwdep.c                      |  88 ++++++++++---------------
 sound/core/init.c                       |  19 ++++++
 sound/core/pcm.c                        |  70 ++++++--------------
 sound/core/rawmidi.c                    |  47 +++++++-------
 sound/core/seq/seq_clientmgr.c          |  14 +++-
 sound/core/sound.c                      | 112 ++++++++++----------------------
 sound/core/timer.c                      |  42 ++++++++----
 sound/pci/hda/hda_controller.c          |   3 +-
 sound/pci/hda/hda_hwdep.c               |   7 +-
 sound/soc/intel/sst-mfld-platform-pcm.c |   1 -
 19 files changed, 265 insertions(+), 300 deletions(-)

-- 
2.2.2

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

end of thread, other threads:[~2015-02-02 13:53 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-02 10:24 [PATCH 00/14] Refactoring ALSA core device management Takashi Iwai
2015-02-02 10:24 ` [PATCH 01/14] ALSA: Allow to pass the device object to snd_register_device*() Takashi Iwai
2015-02-02 10:24 ` [PATCH 02/14] ALSA: control: Provide a helper to look for the preferred subdevice Takashi Iwai
2015-02-02 10:24 ` [PATCH 03/14] ALSA: Add a helper to initialize device Takashi Iwai
2015-02-02 13:31   ` Lars-Peter Clausen
2015-02-02 13:40     ` Takashi Iwai
2015-02-02 13:43       ` Lars-Peter Clausen
2015-02-02 13:53         ` Takashi Iwai
2015-02-02 10:24 ` [PATCH 04/14] ALSA: control: Embed struct device Takashi Iwai
2015-02-02 10:24 ` [PATCH 05/14] ALSA: hwdep: " Takashi Iwai
2015-02-02 10:24 ` [PATCH 06/14] ALSA: pcm: " Takashi Iwai
2015-02-02 10:24 ` [PATCH 07/14] ALSA: rawmidi: " Takashi Iwai
2015-02-02 10:24 ` [PATCH 08/14] ALSA: rawmidi: Use rawmidi device file for kernel messages Takashi Iwai
2015-02-02 10:24 ` [PATCH 09/14] ALSA: timer: Propagate the error at initialization Takashi Iwai
2015-02-02 10:24 ` [PATCH 10/14] ALSA: timer: Handle the device directly Takashi Iwai
2015-02-02 10:24 ` [PATCH 11/14] ALSA: seq: " Takashi Iwai
2015-02-02 10:24 ` [PATCH 12/14] ALSA: compress: Embed struct device Takashi Iwai
2015-02-02 10:24 ` [PATCH 13/14] ALSA: Simplify snd_device_register() variants Takashi Iwai
2015-02-02 10:24 ` [PATCH 14/14] ALSA: Drop snd_get_device() helper Takashi Iwai
2015-02-02 11:01 ` [PATCH 00/14] Refactoring ALSA core device management Jaroslav Kysela
2015-02-02 13:25   ` Takashi Iwai

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.