[alsa-devel] [PATCH 000/159] ASoC: codec cleanup - codec duplicate functions

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Aug 8 11:42:10 CEST 2016


Hi Mark

> These are codec duplicate functions cleanup patches - v1
> We would like to switch to "component" style base ASoC in the future
> instead of current "CPU/Codec/Platform/Card" style.
> 
> Current "component" already has callback functions, and "codec" is based
> on "component", but "codec" is still requesting/using its original callback.
> This is bacause of historical reason, but this is the time to cleanup.
> 
> Lars's opinion is that this kind of cleanup can be final stage,
> but I think these are needed for "component" base style switching
> 
> These are very big patch-set, but it doesn't add new features.
> [001/159] - [158/159] move callback functions from codec to component,
> and last [159/159] will remove codec side callback.
> 
> We need this kind of cleanup for .probe/.remove too, and on Platform too.
> This cares codec duplicate callback function only as 1st step.
> I will post codec .probe/.remove cleanup if these are accepted,
> and will post platform side cleanup too.
> 
> I build-tested these patches with make allyesconfig on x86,
> and tested on Lager board.

I didn't mention about base branch, and patches.
These are based on topic/hdmi branch, because this branch
has component_driver exchange, otherwise it will have conflict.

Kuninori Morimoto (159):
      ASoC: codec duplicated callback function goes to component on sun4i-codec
      ASoC: codec duplicated callback function goes to component on pistachio-internal-dac
      ASoC: codec duplicated callback function goes to component on wm8985
      ASoC: codec duplicated callback function goes to component on wm8978
      ASoC: codec duplicated callback function goes to component on wm8974
      ASoC: codec duplicated callback function goes to component on wm8903
      ASoC: codec duplicated callback function goes to component on wm8804
      ASoC: codec duplicated callback function goes to component on wm8776
      ASoC: codec duplicated callback function goes to component on wm8770
      ASoC: codec duplicated callback function goes to component on wm8753
      ASoC: codec duplicated callback function goes to component on wm8750
      ASoC: codec duplicated callback function goes to component on wm8741
      ASoC: codec duplicated callback function goes to component on wm8737
      ASoC: codec duplicated callback function goes to component on wm8731
      ASoC: codec duplicated callback function goes to component on wm8728
      ASoC: codec duplicated callback function goes to component on wm8711
      ASoC: codec duplicated callback function goes to component on wm8580
      ASoC: codec duplicated callback function goes to component on wm8523
      ASoC: codec duplicated callback function goes to component on wm8510
      ASoC: codec duplicated callback function goes to component on tlv320aic3x
      ASoC: codec duplicated callback function goes to component on tlv320aic31xx
      ASoC: codec duplicated callback function goes to component on tlv320aic23
      ASoC: codec duplicated callback function goes to component on tfa9879
      ASoC: codec duplicated callback function goes to component on tas5720
      ASoC: codec duplicated callback function goes to component on tas571x
      ASoC: codec duplicated callback function goes to component on tas5086
      ASoC: codec duplicated callback function goes to component on tas2552
      ASoC: codec duplicated callback function goes to component on sti-sas
      ASoC: codec duplicated callback function goes to component on sta350
      ASoC: codec duplicated callback function goes to component on sta32x
      ASoC: codec duplicated callback function goes to component on ssm4567
      ASoC: codec duplicated callback function goes to component on ssm2602
      ASoC: codec duplicated callback function goes to component on spdif_transmitter
      ASoC: codec duplicated callback function goes to component on spdif_receiver
      ASoC: codec duplicated callback function goes to component on sgtl5000
      ASoC: codec duplicated callback function goes to component on rt5631
      ASoC: codec duplicated callback function goes to component on rt5616
      ASoC: codec duplicated callback function goes to component on pcm512x
      ASoC: codec duplicated callback function goes to component on pcm3168a
      ASoC: codec duplicated callback function goes to component on pcm179x
      ASoC: codec duplicated callback function goes to component on pcm1681
      ASoC: codec duplicated callback function goes to component on max9860
      ASoC: codec duplicated callback function goes to component on inno_rk3036
      ASoC: codec duplicated callback function goes to component on gtm601
      ASoC: codec duplicated callback function goes to component on es8328
      ASoC: codec duplicated callback function goes to component on cs53l30
      ASoC: codec duplicated callback function goes to component on cs4349
      ASoC: codec duplicated callback function goes to component on cs42xx8
      ASoC: codec duplicated callback function goes to component on cs42l73
      ASoC: codec duplicated callback function goes to component on cs42l56
      ASoC: codec duplicated callback function goes to component on cs42l52
      ASoC: codec duplicated callback function goes to component on cs42l51
      ASoC: codec duplicated callback function goes to component on cs4271
      ASoC: codec duplicated callback function goes to component on cs4270
      ASoC: codec duplicated callback function goes to component on cs4265
      ASoC: codec duplicated callback function goes to component on cs35l33
      ASoC: codec duplicated callback function goes to component on cs35l32
      ASoC: codec duplicated callback function goes to component on bt-sco
      ASoC: codec duplicated callback function goes to component on ak5386
      ASoC: codec duplicated callback function goes to component on ak4642
      ASoC: codec duplicated callback function goes to component on ak4613
      ASoC: codec duplicated callback function goes to component on ak4554
      ASoC: codec duplicated callback function goes to component on ak4104
      ASoC: codec duplicated callback function goes to component on adau7002
      ASoC: codec duplicated callback function goes to component on adau1701
      ASoC: codec duplicated callback function goes to component on ac97
      ASoC: codec duplicated callback function goes to component on ad1980
      ASoC: codec duplicated callback function goes to component on ad73311
      ASoC: codec duplicated callback function goes to component on adau1373
      ASoC: codec duplicated callback function goes to component on ad1836
      ASoC: codec duplicated callback function goes to component on ad193x
      ASoC: codec duplicated callback function goes to component on 88pm860x-codec
      ASoC: codec duplicated callback function goes to component on atmel-classd
      ASoC: codec duplicated callback function goes to component on atmel-pdmic
      ASoC: codec duplicated callback function goes to component on ab8500-codec
      ASoC: codec duplicated callback function goes to component on adau1761
      ASoC: codec duplicated callback function goes to component on adau1781
      ASoC: codec duplicated callback function goes to component on adau1977
      ASoC: codec duplicated callback function goes to component on adav80x
      ASoC: codec duplicated callback function goes to component on ads117x
      ASoC: codec duplicated callback function goes to component on ak4535
      ASoC: codec duplicated callback function goes to component on ak4641
      ASoC: codec duplicated callback function goes to component on ak4671
      ASoC: codec duplicated callback function goes to component on alc5632
      ASoC: codec duplicated callback function goes to component on cs47l24
      ASoC: codec duplicated callback function goes to component on cx20442
      ASoC: codec duplicated callback function goes to component on da7210
      ASoC: codec duplicated callback function goes to component on da7213
      ASoC: codec duplicated callback function goes to component on da7218
      ASoC: codec duplicated callback function goes to component on da7219
      ASoC: codec duplicated callback function goes to component on da732x
      ASoC: codec duplicated callback function goes to component on da9055
      ASoC: codec duplicated callback function goes to component on dmic
      ASoC: codec duplicated callback function goes to component on hdmi-codec
      ASoC: codec duplicated callback function goes to component on isabelle
      ASoC: codec duplicated callback function goes to component on jz4740
      ASoC: codec duplicated callback function goes to component on lm49453
      ASoC: codec duplicated callback function goes to component on wm98088
      ASoC: codec duplicated callback function goes to component on wm98095
      ASoC: codec duplicated callback function goes to component on wm98357a
      ASoC: codec duplicated callback function goes to component on wm9850
      ASoC: codec duplicated callback function goes to component on wm9867
      ASoC: codec duplicated callback function goes to component on max98925
      ASoC: codec duplicated callback function goes to component on max98926
      ASoC: codec duplicated callback function goes to component on mc13783
      ASoC: codec duplicated callback function goes to component on ml26124
      ASoC: codec duplicated callback function goes to component on nau8825
      ASoC: codec duplicated callback function goes to component on pcm3008
      ASoC: codec duplicated callback function goes to component on rt286
      ASoC: codec duplicated callback function goes to component on rt298
      ASoC: codec duplicated callback function goes to component on rt5514
      ASoC: codec duplicated callback function goes to component on rt5640
      ASoC: codec duplicated callback function goes to component on rt5645
      ASoC: codec duplicated callback function goes to component on rt5651
      ASoC: codec duplicated callback function goes to component on rt5659
      ASoC: codec duplicated callback function goes to component on rt5670
      ASoC: codec duplicated callback function goes to component on rt5677
      ASoC: codec duplicated callback function goes to component on si476x
      ASoC: codec duplicated callback function goes to component on sn95031
      ASoC: codec duplicated callback function goes to component on ssm2518
      ASoC: codec duplicated callback function goes to component on sta529
      ASoC: codec duplicated callback function goes to component on stac9766
      ASoC: codec duplicated callback function goes to component on tlv320aic26
      ASoC: codec duplicated callback function goes to component on tlv320aic32x4
      ASoC: codec duplicated callback function goes to component on tlv320dac33
      ASoC: codec duplicated callback function goes to component on twl4030
      ASoC: codec duplicated callback function goes to component on twl6040
      ASoC: codec duplicated callback function goes to component on uda134x
      ASoC: codec duplicated callback function goes to component on uda1380
      ASoC: codec duplicated callback function goes to component on wl1273
      ASoC: codec duplicated callback function goes to component on wm0010
      ASoC: codec duplicated callback function goes to component on wm1250-ev1
      ASoC: codec duplicated callback function goes to component on wm2000
      ASoC: codec duplicated callback function goes to component on wm2200
      ASoC: codec duplicated callback function goes to component on wm5100
      ASoC: codec duplicated callback function goes to component on wm5102
      ASoC: codec duplicated callback function goes to component on wm5110
      ASoC: codec duplicated callback function goes to component on wm8350
      ASoC: codec duplicated callback function goes to component on wm8400
      ASoC: codec duplicated callback function goes to component on wm8727
      ASoC: codec duplicated callback function goes to component on wm8782
      ASoC: codec duplicated callback function goes to component on wm8900
      ASoC: codec duplicated callback function goes to component on wm8940
      ASoC: codec duplicated callback function goes to component on wm8955
      ASoC: codec duplicated callback function goes to component on wm8961
      ASoC: codec duplicated callback function goes to component on wm8971
      ASoC: codec duplicated callback function goes to component on wm8983
      ASoC: codec duplicated callback function goes to component on wm8988
      ASoC: codec duplicated callback function goes to component on wm8990
      ASoC: codec duplicated callback function goes to component on wm8991
      ASoC: codec duplicated callback function goes to component on wm8995
      ASoC: codec duplicated callback function goes to component on wm8996
      ASoC: codec duplicated callback function goes to component on wm8997
      ASoC: codec duplicated callback function goes to component on wm8998
      ASoC: codec duplicated callback function goes to component on wm9081
      ASoC: codec duplicated callback function goes to component on wm9705
      ASoC: codec duplicated callback function goes to component on wm9712
      ASoC: codec duplicated callback function goes to component on wm9713
      ASoC: remove codec duplicated callback function

 include/sound/soc.h                    |  8 --------
 sound/soc/atmel/atmel-classd.c         |  6 ++++--
 sound/soc/atmel/atmel-pdmic.c          |  6 ++++--
 sound/soc/codecs/88pm860x-codec.c      | 14 ++++++++------
 sound/soc/codecs/ab8500-codec.c        | 14 ++++++++------
 sound/soc/codecs/ac97.c                | 10 ++++++----
 sound/soc/codecs/ad1836.c              | 14 ++++++++------
 sound/soc/codecs/ad193x.c              | 14 ++++++++------
 sound/soc/codecs/ad1980.c              | 14 ++++++++------
 sound/soc/codecs/ad73311.c             | 10 ++++++----
 sound/soc/codecs/adau1373.c            | 14 ++++++++------
 sound/soc/codecs/adau1701.c            | 15 ++++++++-------
 sound/soc/codecs/adau1761.c            | 14 ++++++++------
 sound/soc/codecs/adau1781.c            | 14 ++++++++------
 sound/soc/codecs/adau1977.c            | 14 ++++++++------
 sound/soc/codecs/adau7002.c            | 10 ++++++----
 sound/soc/codecs/adav80x.c             | 14 ++++++++------
 sound/soc/codecs/ads117x.c             | 10 ++++++----
 sound/soc/codecs/ak4104.c              | 10 ++++++----
 sound/soc/codecs/ak4535.c              | 14 ++++++++------
 sound/soc/codecs/ak4554.c              | 10 ++++++----
 sound/soc/codecs/ak4613.c              | 14 ++++++++------
 sound/soc/codecs/ak4641.c              | 14 ++++++++------
 sound/soc/codecs/ak4642.c              | 14 ++++++++------
 sound/soc/codecs/ak4671.c              | 14 ++++++++------
 sound/soc/codecs/ak5386.c              | 10 ++++++----
 sound/soc/codecs/alc5632.c             | 14 ++++++++------
 sound/soc/codecs/bt-sco.c              | 10 ++++++----
 sound/soc/codecs/cs35l32.c             | 15 ++++++++-------
 sound/soc/codecs/cs35l33.c             | 15 ++++++++-------
 sound/soc/codecs/cs4265.c              | 15 ++++++++-------
 sound/soc/codecs/cs4270.c              | 14 ++++++++------
 sound/soc/codecs/cs4271.c              | 14 ++++++++------
 sound/soc/codecs/cs42l51.c             | 14 ++++++++------
 sound/soc/codecs/cs42l52.c             | 15 ++++++++-------
 sound/soc/codecs/cs42l56.c             | 15 ++++++++-------
 sound/soc/codecs/cs42l73.c             | 15 ++++++++-------
 sound/soc/codecs/cs42xx8.c             | 14 ++++++++------
 sound/soc/codecs/cs4349.c              | 15 ++++++++-------
 sound/soc/codecs/cs47l24.c             | 14 ++++++++------
 sound/soc/codecs/cs53l30.c             | 15 ++++++++-------
 sound/soc/codecs/cx20442.c             | 10 ++++++----
 sound/soc/codecs/da7210.c              | 15 ++++++++-------
 sound/soc/codecs/da7213.c              | 15 ++++++++-------
 sound/soc/codecs/da7218.c              | 15 ++++++++-------
 sound/soc/codecs/da7219.c              | 15 ++++++++-------
 sound/soc/codecs/da732x.c              | 14 ++++++++------
 sound/soc/codecs/da9055.c              | 15 ++++++++-------
 sound/soc/codecs/dmic.c                | 10 ++++++----
 sound/soc/codecs/es8328.c              | 14 ++++++++------
 sound/soc/codecs/gtm601.c              | 10 ++++++----
 sound/soc/codecs/hdmi-codec.c          | 12 ++++++------
 sound/soc/codecs/inno_rk3036.c         | 14 ++++++++------
 sound/soc/codecs/isabelle.c            | 14 ++++++++------
 sound/soc/codecs/jz4740.c              | 14 ++++++++------
 sound/soc/codecs/lm49453.c             | 14 ++++++++------
 sound/soc/codecs/max98088.c            | 14 ++++++++------
 sound/soc/codecs/max98095.c            | 14 ++++++++------
 sound/soc/codecs/max98357a.c           | 10 ++++++----
 sound/soc/codecs/max9850.c             | 14 ++++++++------
 sound/soc/codecs/max9860.c             | 14 ++++++++------
 sound/soc/codecs/max9867.c             | 14 ++++++++------
 sound/soc/codecs/max98925.c            | 14 ++++++++------
 sound/soc/codecs/max98926.c            | 14 ++++++++------
 sound/soc/codecs/mc13783.c             | 14 ++++++++------
 sound/soc/codecs/ml26124.c             | 14 ++++++++------
 sound/soc/codecs/nau8825.c             | 14 ++++++++------
 sound/soc/codecs/pcm1681.c             | 14 ++++++++------
 sound/soc/codecs/pcm179x.c             | 14 ++++++++------
 sound/soc/codecs/pcm3008.c             | 10 ++++++----
 sound/soc/codecs/pcm3168a.c            | 14 ++++++++------
 sound/soc/codecs/pcm512x.c             | 14 ++++++++------
 sound/soc/codecs/rt286.c               | 14 ++++++++------
 sound/soc/codecs/rt298.c               | 14 ++++++++------
 sound/soc/codecs/rt5514.c              | 14 ++++++++------
 sound/soc/codecs/rt5616.c              | 14 ++++++++------
 sound/soc/codecs/rt5631.c              | 14 ++++++++------
 sound/soc/codecs/rt5640.c              | 14 ++++++++------
 sound/soc/codecs/rt5645.c              | 14 ++++++++------
 sound/soc/codecs/rt5651.c              | 14 ++++++++------
 sound/soc/codecs/rt5659.c              | 14 ++++++++------
 sound/soc/codecs/rt5670.c              | 14 ++++++++------
 sound/soc/codecs/rt5677.c              | 14 ++++++++------
 sound/soc/codecs/sgtl5000.c            | 14 ++++++++------
 sound/soc/codecs/si476x.c              | 10 ++++++----
 sound/soc/codecs/sn95031.c             | 14 ++++++++------
 sound/soc/codecs/spdif_receiver.c      | 10 ++++++----
 sound/soc/codecs/spdif_transmitter.c   | 10 ++++++----
 sound/soc/codecs/ssm2518.c             | 14 ++++++++------
 sound/soc/codecs/ssm2602.c             | 14 ++++++++------
 sound/soc/codecs/ssm4567.c             | 14 ++++++++------
 sound/soc/codecs/sta32x.c              | 14 ++++++++------
 sound/soc/codecs/sta350.c              | 14 ++++++++------
 sound/soc/codecs/sta529.c              |  6 ++++--
 sound/soc/codecs/stac9766.c            |  6 ++++--
 sound/soc/codecs/sti-sas.c             |  8 ++++----
 sound/soc/codecs/tas2552.c             | 14 ++++++++------
 sound/soc/codecs/tas5086.c             | 14 ++++++++------
 sound/soc/codecs/tas571x.c             | 14 ++++++++------
 sound/soc/codecs/tas5720.c             | 14 ++++++++------
 sound/soc/codecs/tfa9879.c             | 15 ++++++++-------
 sound/soc/codecs/tlv320aic23.c         | 14 ++++++++------
 sound/soc/codecs/tlv320aic26.c         | 14 ++++++++------
 sound/soc/codecs/tlv320aic31xx.c       | 14 ++++++++------
 sound/soc/codecs/tlv320aic32x4.c       | 14 ++++++++------
 sound/soc/codecs/tlv320aic3x.c         | 14 ++++++++------
 sound/soc/codecs/tlv320dac33.c         | 14 ++++++++------
 sound/soc/codecs/twl4030.c             | 14 ++++++++------
 sound/soc/codecs/twl6040.c             | 14 ++++++++------
 sound/soc/codecs/uda134x.c             | 10 ++++++----
 sound/soc/codecs/uda1380.c             | 14 ++++++++------
 sound/soc/codecs/wl1273.c              | 14 ++++++++------
 sound/soc/codecs/wm0010.c              | 10 ++++++----
 sound/soc/codecs/wm1250-ev1.c          | 11 ++++++-----
 sound/soc/codecs/wm2000.c              | 14 ++++++++------
 sound/soc/codecs/wm2200.c              | 14 ++++++++------
 sound/soc/codecs/wm5100.c              | 14 ++++++++------
 sound/soc/codecs/wm5102.c              | 14 ++++++++------
 sound/soc/codecs/wm5110.c              | 14 ++++++++------
 sound/soc/codecs/wm8350.c              | 14 ++++++++------
 sound/soc/codecs/wm8400.c              | 14 ++++++++------
 sound/soc/codecs/wm8510.c              | 14 ++++++++------
 sound/soc/codecs/wm8523.c              | 14 ++++++++------
 sound/soc/codecs/wm8580.c              | 14 ++++++++------
 sound/soc/codecs/wm8711.c              | 14 ++++++++------
 sound/soc/codecs/wm8727.c              | 10 ++++++----
 sound/soc/codecs/wm8728.c              | 14 ++++++++------
 sound/soc/codecs/wm8731.c              | 14 ++++++++------
 sound/soc/codecs/wm8737.c              | 14 ++++++++------
 sound/soc/codecs/wm8741.c              | 10 ++++++----
 sound/soc/codecs/wm8750.c              | 14 ++++++++------
 sound/soc/codecs/wm8753.c              | 14 ++++++++------
 sound/soc/codecs/wm8770.c              | 14 ++++++++------
 sound/soc/codecs/wm8776.c              | 14 ++++++++------
 sound/soc/codecs/wm8782.c              | 10 ++++++----
 sound/soc/codecs/wm8804.c              | 10 ++++++----
 sound/soc/codecs/wm8900.c              | 14 ++++++++------
 sound/soc/codecs/wm8903.c              | 14 ++++++++------
 sound/soc/codecs/wm8940.c              | 14 ++++++++------
 sound/soc/codecs/wm8955.c              | 14 ++++++++------
 sound/soc/codecs/wm8961.c              | 14 ++++++++------
 sound/soc/codecs/wm8971.c              | 14 ++++++++------
 sound/soc/codecs/wm8974.c              | 14 ++++++++------
 sound/soc/codecs/wm8978.c              | 14 ++++++++------
 sound/soc/codecs/wm8983.c              | 14 ++++++++------
 sound/soc/codecs/wm8985.c              | 14 ++++++++------
 sound/soc/codecs/wm8988.c              | 14 ++++++++------
 sound/soc/codecs/wm8990.c              | 14 ++++++++------
 sound/soc/codecs/wm8991.c              | 14 ++++++++------
 sound/soc/codecs/wm8995.c              | 14 ++++++++------
 sound/soc/codecs/wm8996.c              | 14 ++++++++------
 sound/soc/codecs/wm8997.c              | 14 ++++++++------
 sound/soc/codecs/wm8998.c              | 14 ++++++++------
 sound/soc/codecs/wm9081.c              | 14 ++++++++------
 sound/soc/codecs/wm9705.c              | 14 ++++++++------
 sound/soc/codecs/wm9712.c              | 14 ++++++++------
 sound/soc/codecs/wm9713.c              | 14 ++++++++------
 sound/soc/img/pistachio-internal-dac.c | 14 ++++++++------
 sound/soc/soc-core.c                   | 13 -------------
 sound/soc/sunxi/sun4i-codec.c          | 14 ++++++++------
 160 files changed, 1196 insertions(+), 921 deletions(-)



More information about the Alsa-devel mailing list