mbox series

[00/14] ASoC: add multi Component support

Message ID 87r0q5blta.wl-kuninori.morimoto.gx@renesas.com (mailing list archive)
Headers show
Series ASoC: add multi Component support | expand

Message

Kuninori Morimoto June 21, 2023, 2:17 a.m. UTC
Hi Mark

On below HW case, we would like to use it as "2 Cards",
but unfortunately it is impossible in intuitive way
or possible but not intuitive way.
In reality, it is handled as "1 big Card" today.

	+-- basic board --------+
	|+--------+             |
	|| CPU ch0| <--> CodecA |
	||     ch1| <-+         |
	|+--------+   |         |
	+-------------|---------+
	+-- expansion board ----+
	|             |         |
	|             +-> CodecB|
	+-----------------------+

To handling it as intuitive "2 Cards", this patch-set
adds multi Component support.

Link: https://lore.kernel.org/all/87a6b6cofh.wl-kuninori.morimoto.gx@renesas.com/

Kuninori Morimoto (14):
  ASoC: soc-core.c: initialize dlc on snd_soc_get_dai_id()
  ASoC: soc-core.c: cleanup soc_dai_link_sanity_check()
  ASoC: soc-dai.c: add DAI get/match functions
  ASoC: soc-core.c: enable multi Component
  ASoC: soc-core.c: add snd_soc_get_dai_via_args()
  ASoC: soc-core.c: add snd_soc_dlc_use_cpu_as_platform()
  ASoC: soc-core.c: add snd_soc_copy_dai_args()
  ASoC: simple-card-utils.c: enable multi Component support
  ASoC: simple-card.c: enable multi Component support
  ASoC: rsnd: use DAI driver ID instead of DAI ID
  ASoC: rsnd: cleanup rsnd_dai_of_node()
  ASoC: rsnd: enable multi Component support for Audio Graph Card/Card2
  ASoC: dt-bindings: renesas,rsnd.yaml: add common port-def
  ASoC: dt-bindings: renesas,rsnd.yaml: enable multi ports for multi Component support

 .../bindings/sound/renesas,rsnd.yaml          |  60 ++--
 include/sound/simple_card_utils.h             |   5 +-
 include/sound/soc-dai.h                       |   3 +
 include/sound/soc.h                           |   6 +
 sound/soc/generic/audio-graph-card.c          |   2 +-
 sound/soc/generic/audio-graph-card2.c         |   2 +-
 sound/soc/generic/simple-card-utils.c         |  23 +-
 sound/soc/generic/simple-card.c               |  20 +-
 sound/soc/sh/rcar/core.c                      | 146 +++++++---
 sound/soc/sh/rcar/rsnd.h                      |   4 +
 sound/soc/soc-core.c                          | 267 +++++++++++++-----
 11 files changed, 374 insertions(+), 164 deletions(-)

Comments

Mark Brown July 12, 2023, 11:47 a.m. UTC | #1
On Wed, 21 Jun 2023 02:17:53 +0000, Kuninori Morimoto wrote:
> On below HW case, we would like to use it as "2 Cards",
> but unfortunately it is impossible in intuitive way
> or possible but not intuitive way.
> In reality, it is handled as "1 big Card" today.
> 
> 	+-- basic board --------+
> 	|+--------+             |
> 	|| CPU ch0| <--> CodecA |
> 	||     ch1| <-+         |
> 	|+--------+   |         |
> 	+-------------|---------+
> 	+-- expansion board ----+
> 	|             |         |
> 	|             +-> CodecB|
> 	+-----------------------+
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[01/14] ASoC: soc-core.c: initialize dlc on snd_soc_get_dai_id()
        commit: 521d675d2497f890e881dc48e954a1559460e97c
[02/14] ASoC: soc-core.c: cleanup soc_dai_link_sanity_check()
        commit: 0e66a2c694096abc54ed58b3be654103f155ea43
[03/14] ASoC: soc-dai.c: add DAI get/match functions
        (no commit info)
[04/14] ASoC: soc-core.c: enable multi Component
        (no commit info)
[05/14] ASoC: soc-core.c: add snd_soc_get_dai_via_args()
        (no commit info)
[06/14] ASoC: soc-core.c: add snd_soc_dlc_use_cpu_as_platform()
        (no commit info)
[07/14] ASoC: soc-core.c: add snd_soc_copy_dai_args()
        (no commit info)
[08/14] ASoC: simple-card-utils.c: enable multi Component support
        (no commit info)
[09/14] ASoC: simple-card.c: enable multi Component support
        (no commit info)
[10/14] ASoC: rsnd: use DAI driver ID instead of DAI ID
        (no commit info)
[11/14] ASoC: rsnd: cleanup rsnd_dai_of_node()
        (no commit info)
[12/14] ASoC: rsnd: enable multi Component support for Audio Graph Card/Card2
        (no commit info)
[13/14] ASoC: dt-bindings: renesas,rsnd.yaml: add common port-def
        (no commit info)
[14/14] ASoC: dt-bindings: renesas,rsnd.yaml: enable multi ports for multi Component support
        (no commit info)

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark