diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-04-01 06:15:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-08 16:18:02 +0200 |
commit | f2138aed231c88d5c4fa8d06aa15ad19685087c2 (patch) | |
tree | e3e81874d7635687fc1cb67b99c5bbcf7bcb0ac1 /include/sound/simple_card_utils.h | |
parent | Merge series "Adds SPI support" from Jiri Prchal <jiri.prchal@aksignal.cz>: (diff) | |
download | linux-f2138aed231c88d5c4fa8d06aa15ad19685087c2.tar.xz linux-f2138aed231c88d5c4fa8d06aa15ad19685087c2.zip |
ASoC: simple-card-utils: enable flexible CPU/Codec/Platform
Current simple-card / audio-graph are assuming fixed
single-CPU/Codec/Platform.
This patch prepares multi-CPU/Codec/Platform support.
Note is that it is not yet full-multi-support.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87v996od2c.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/simple_card_utils.h')
-rw-r--r-- | include/sound/simple_card_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index 86e46cbf9e14..475f8cb14492 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -38,6 +38,12 @@ struct asoc_simple_jack { struct snd_soc_jack_gpio gpio; }; +struct prop_nums { + int cpus; + int codecs; + int platforms; +}; + struct asoc_simple_priv { struct snd_soc_card snd_card; struct simple_dai_props { @@ -48,6 +54,7 @@ struct asoc_simple_priv { struct snd_soc_dai_link_component *platforms; struct asoc_simple_data adata; struct snd_soc_codec_conf *codec_conf; + struct prop_nums num; unsigned int mclk_fs; } *dai_props; struct asoc_simple_jack hp_jack; @@ -71,6 +78,7 @@ struct link_info { int link; /* number of link */ int conf; /* number of codec_conf */ int cpu; /* turn for CPU / Codec */ + struct prop_nums num[SNDRV_MINOR_DEVICES]; }; int asoc_simple_parse_daifmt(struct device *dev, |