[PATCH 0/7] ASoC: Merge CPU/Codec DAIs
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Wed Mar 11 02:06:24 CET 2020
Hi Mark
Current ALSA SoC has CPU/Codec categorized DAIs.
But it will be no longer good much for modern device.
Currently, rtd has both CPU/Codec DAIs array.
rtd->cpu_dais = [][][][][][][][][]
rtd->codec_dais = [][][][][][][][][]
This patch merges these, like below.
It still keeps rtd->cpu_dais, rtd->codec_dais
rtd->dais = [][][][][][][][][][][][][][][][][][]
^cpu_dais ^codec_dais
|--- num_cpus ---|--- num_codecs --|
After this merging, we can merge for_each_rtd_cpu/codec_dais().
- for_each_rtd_cpu_dais() {
- ...
- }
- for_each_rtd_codec_dais() {
- ...
- }
+ for_each_rtd_dais() {
+ ...
+ }
Kuninori Morimoto (7):
ASoC: soc-core: Merge CPU/Codec DAIs
ASoC: soc-core: Merge for_each_rtd_cpu/codec_dais()
ASoC: soc-dapm: Merge for_each_rtd_cpu/codec_dais()
ASoC: soc-pcm: Merge for_each_rtd_cpu/codec_dais()
ASoC: soc-core: Merge CPU/Codec for soc_dai_pcm_new()
ASoC: soc-pcm: Merge CPU/Codec MSB at soc_pcm_apply_msb()
ASoC: soc-pcm: Merge CPU/Codec at soc_pcm_pointer()
include/sound/soc.h | 7 +-
sound/soc/soc-core.c | 66 +++-----
sound/soc/soc-dapm.c | 9 +-
sound/soc/soc-pcm.c | 367 +++++++++++--------------------------------
4 files changed, 123 insertions(+), 326 deletions(-)
--
2.17.1
More information about the Alsa-devel
mailing list