diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2023-11-13 02:28:27 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-11-27 14:44:00 +0100 |
commit | 45cc50d13433a62f23b7b4af380497aae5e8ddc7 (patch) | |
tree | 848a28bbfd7fe8ef6e1a81f2eca35f62914b90c3 /include/sound/pt2258.h | |
parent | ASoC: SOF: ipc4: Add support for control change (diff) | |
download | linux-45cc50d13433a62f23b7b4af380497aae5e8ddc7.tar.xz linux-45cc50d13433a62f23b7b4af380497aae5e8ddc7.zip |
ASoC: makes CPU/Codec channel connection map more generic
Current ASoC CPU:Codec = N:M connection is using connection mapping idea,
but it is used for N < M case only. We want to use it for any case.
By this patch, not only N:M connection, but all existing connection
(1:1, 1:N, N:N) will use same connection mapping. Then, because it will
use default mapping, no conversion patch is needed to exising drivers.
More over, CPU:Codec = N:M (N > M) also supported in the same time.
ch_maps array will has CPU/Codec index by this patch.
Image
CPU0 <---> Codec0
CPU1 <-+-> Codec1
CPU2 <-/
ch_map
ch_map[0].cpu = 0 ch_map[0].codec = 0
ch_map[1].cpu = 1 ch_map[1].codec = 1
ch_map[2].cpu = 2 ch_map[2].codec = 1
Link: https://lore.kernel.org/r/87fs6wuszr.wl-kuninori.morimoto.gx@renesas.com
Link: https://lore.kernel.org/r/878r7yqeo4.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tested-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/87ttpq4f2c.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions