[alsa-devel] [PATCH 00/19] ASoC: cleanup Codec reg_cache

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Fri Sep 1 08:05:14 CEST 2017


Hi Mark, Lars-Peter

> It has 3 steps.
> 	1) add new necessary functions
> 	2) remove/don't use codec hw_write/read
> 	3) remove/don't use codec reg_cache

These are 3rd step patches.
Some Codec drivers are using Codec reg_cache, or
using get_regmap.

1st, only 3 drivers are using Codec reg_cache.
ALSA SoC has reg_cache common driver for these 3 drivers,
Becase it is not a big code, We can have it on each drivers,
and remove/cleanup reg_cache code from ALSA SoC.

2nd, only 2 drivers are using snd_soc_write/read
without using regmap/reg_cache.
(snd_soc_write/read will use regmap function
or .write/.read callback)
Because of it, we need to have .write/.read callback
on Codec driver. We can remove these if this 2 drivers
call its own write/read function directly.

3rd, some drivers want to use its own regmap.
Because of it, Codec driver has .get_regmap callback.
But, we can replace it by using snd_soc_component_init_regmap().

Kuninori Morimoto (19):
  ASoC: use internal reg_cache on uda1380
  ASoC: use internal reg_cache on tlv320dac33
  ASoC: cx20442: don't use reg_cache
  ASoC: don't use snd_soc_write/read on twl6040
  ASoC: don't use snd_soc_write/read on twl4030
  ASoC: use snd_soc_component_init_regmap() on wm8998
  ASoC: use snd_soc_component_init_regmap() on wm8997
  ASoC: use snd_soc_component_init_regmap() on wm8994
  ASoC: use snd_soc_component_init_regmap() on wm8400
  ASoC: use snd_soc_component_init_regmap() on wm8350
  ASoC: use snd_soc_component_init_regmap() on wm5110
  ASoC: use snd_soc_component_init_regmap() on wm5102
  ASoC: use snd_soc_component_init_regmap() on si476x
  ASoC: use snd_soc_component_init_regmap() on mc13783
  ASoC: use snd_soc_component_init_regmap() on cq93vc
  ASoC: use snd_soc_component_init_regmap() on cs47l24
  ASoC: use snd_soc_component_init_regmap() on 88pm860x
  ASoC: use snd_soc_component_init_regmap() on msm8916
  ASoC: use snd_soc_component_init_regmap() on atmel-classd

 sound/soc/atmel/atmel-classd.c        |  6 ------
 sound/soc/codecs/88pm860x-codec.c     |  9 +--------
 sound/soc/codecs/cq93vc.c             | 10 ++++++----
 sound/soc/codecs/cs47l24.c            | 12 +++---------
 sound/soc/codecs/cx20442.c            | 21 ++++-----------------
 sound/soc/codecs/mc13783.c            |  9 +++------
 sound/soc/codecs/msm8916-wcd-analog.c |  8 ++------
 sound/soc/codecs/si476x.c             |  9 ++++++---
 sound/soc/codecs/tlv320dac33.c        | 33 +++++++++++++--------------------
 sound/soc/codecs/twl4030.c            | 10 ++++------
 sound/soc/codecs/twl6040.c            |  4 +---
 sound/soc/codecs/uda1380.c            | 24 ++++++++++++++----------
 sound/soc/codecs/wm5102.c             | 11 +++--------
 sound/soc/codecs/wm5110.c             | 12 +++---------
 sound/soc/codecs/wm8350.c             | 10 ++--------
 sound/soc/codecs/wm8400.c             |  9 +--------
 sound/soc/codecs/wm8994.c             | 10 ++--------
 sound/soc/codecs/wm8997.c             | 11 +++--------
 sound/soc/codecs/wm8998.c             | 12 +++---------
 19 files changed, 74 insertions(+), 156 deletions(-)

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list