mbox series

[0/3] ALSA: control: Locking optimization and cleanups

Message ID 20240801074617.4997-1-tiwai@suse.de (mailing list archive)
Headers show
Series ALSA: control: Locking optimization and cleanups | expand

Message

Takashi Iwai Aug. 1, 2024, 7:46 a.m. UTC
Hi,

this is a series of patches to reduce the locking at control elements
look-up and cleanups of APIs.  It was inspired from the discussion
thread about the mutex inversions of Cirrus codec driver, but this
version goes further, dropping the locking in normal use cases.

The snd_ctl_find_*_unlocked() API functions are completely dropped, as
there is no real use any longer.

The patch touches / removes ASoC code to drop and replace *_locked()
API calls.


Takashi

===

Takashi Iwai (3):
  ALSA: control: Rename ctl_files_rwlock to controls_rwlock
  ALSA: control: Optimize locking for look-up
  ASoC: Drop snd_soc_card_get_kcontrol_locked()

 include/sound/control.h     |  25 ------
 include/sound/core.h        |   2 +-
 include/sound/soc-card.h    |   2 -
 sound/core/control.c        | 151 ++++++++++++++----------------------
 sound/core/control_compat.c |   2 +-
 sound/core/control_led.c    |   2 +-
 sound/core/init.c           |   2 +-
 sound/core/oss/mixer_oss.c  |  10 +--
 sound/soc/codecs/cs35l45.c  |   2 +-
 sound/soc/fsl/fsl_xcvr.c    |   2 +-
 sound/soc/soc-card-test.c   |  57 --------------
 sound/soc/soc-card.c        |  10 ---
 12 files changed, 70 insertions(+), 197 deletions(-)