mbox series

[00/11] ASoC: skip the endpoint that doesn't present and

Message ID 20250414063239.85200-1-yung-chuan.liao@linux.intel.com (mailing list archive)
Headers show
Series ASoC: skip the endpoint that doesn't present and | expand

Message

Bard Liao April 14, 2025, 6:32 a.m. UTC
A codec endpoint may not be used. We could check the present SDCA
functions to know if the endpoint is used or not. Skip the endpoint
which is not used. And load the topology dynamically for each endpoint.
With this feature, we don't need to use the quirk to determine the
existence of the optional codec DAIs.

Bard Liao (11):
  ASoC: SOF: topology: allocate string for tuples
  ASoC: SOF: topology: don't convert error code
  ASoC: soc-acpi: add get_function_tplg_files ops
  ASoC: SOF: topology: load multiple topologies
  ASoC: Intel: add sof_sdw_get_tplg_files ops
  ASoC: Intel: soc-acpi-intel-lnl-match: set get_function_tplg_files ops
  ASoC: Intel: soc-acpi-intel-arl-match: set get_function_tplg_files ops
  ASoC: Intel: soc-acpi-intel-ptl-match: add get_function_tplg_files ops
  ASoC: Intel: soc-acpi-intel-mtl-match: add get_function_tplg_files ops
  ASoC: sdw_utils: split asoc_sdw_get_codec_name
  ASoC: soc_sdw_utils: skip the endpoint that doesn't present

 include/sound/soc-acpi.h                      |  13 ++
 sound/soc/intel/common/Makefile               |   2 +-
 .../intel/common/soc-acpi-intel-arl-match.c   |   9 +
 .../intel/common/soc-acpi-intel-lnl-match.c   |   9 +-
 .../intel/common/soc-acpi-intel-mtl-match.c   |  11 +-
 .../intel/common/soc-acpi-intel-ptl-match.c   |  17 +-
 .../intel/common/sof-function-topology-lib.c  | 135 ++++++++++++++
 .../intel/common/sof-function-topology-lib.h  |  15 ++
 sound/soc/sdw_utils/soc_sdw_utils.c           | 168 ++++++++++++++++--
 sound/soc/sof/topology.c                      |  92 +++++++---
 10 files changed, 428 insertions(+), 43 deletions(-)
 create mode 100644 sound/soc/intel/common/sof-function-topology-lib.c
 create mode 100644 sound/soc/intel/common/sof-function-topology-lib.h

Comments

Mark Brown April 15, 2025, 9:50 p.m. UTC | #1
On Mon, 14 Apr 2025 14:32:28 +0800, Bard Liao wrote:
> A codec endpoint may not be used. We could check the present SDCA
> functions to know if the endpoint is used or not. Skip the endpoint
> which is not used. And load the topology dynamically for each endpoint.
> With this feature, we don't need to use the quirk to determine the
> existence of the optional codec DAIs.
> 
> Bard Liao (11):
>   ASoC: SOF: topology: allocate string for tuples
>   ASoC: SOF: topology: don't convert error code
>   ASoC: soc-acpi: add get_function_tplg_files ops
>   ASoC: SOF: topology: load multiple topologies
>   ASoC: Intel: add sof_sdw_get_tplg_files ops
>   ASoC: Intel: soc-acpi-intel-lnl-match: set get_function_tplg_files ops
>   ASoC: Intel: soc-acpi-intel-arl-match: set get_function_tplg_files ops
>   ASoC: Intel: soc-acpi-intel-ptl-match: add get_function_tplg_files ops
>   ASoC: Intel: soc-acpi-intel-mtl-match: add get_function_tplg_files ops
>   ASoC: sdw_utils: split asoc_sdw_get_codec_name
>   ASoC: soc_sdw_utils: skip the endpoint that doesn't present
> 
> [...]

Applied to

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

Thanks!

[01/11] ASoC: SOF: topology: allocate string for tuples
        commit: 2c91f33c72db65a053e1aedfd662c1c984fb4c02
[02/11] ASoC: SOF: topology: don't convert error code
        commit: 18877fd3799575e0595d98d799b5509be234e50f
[03/11] ASoC: soc-acpi: add get_function_tplg_files ops
        commit: d1e70eed0b30bd2b15fc6c93b5701be564bbe353
[04/11] ASoC: SOF: topology: load multiple topologies
        commit: 6d5997c412cc4beb859b37cc4eaa61e54fc076a3
[05/11] ASoC: Intel: add sof_sdw_get_tplg_files ops
        commit: 2fbeff33381cf017facbf5f13d34693baa5a2296
[06/11] ASoC: Intel: soc-acpi-intel-lnl-match: set get_function_tplg_files ops
        commit: 143b7a87aa0f949f81e2e80d72f1455667a3d5de
[07/11] ASoC: Intel: soc-acpi-intel-arl-match: set get_function_tplg_files ops
        commit: d348b4181cd15ed432c2ae7eb33ef1bb7dfd7527
[08/11] ASoC: Intel: soc-acpi-intel-ptl-match: add get_function_tplg_files ops
        commit: 5a0c4a0925f4525743ee08aa3930fdc256d920f0
[09/11] ASoC: Intel: soc-acpi-intel-mtl-match: add get_function_tplg_files ops
        commit: cf8a4ca84cbf52700beaa40850647040af06b749
[10/11] ASoC: sdw_utils: split asoc_sdw_get_codec_name
        commit: 6d893cfb3d399a9eae95a8c23041dc42dc6dc18f
[11/11] ASoC: soc_sdw_utils: skip the endpoint that doesn't present
        commit: 4f8ef33dd44a3d1136d3934609b8a43e62aaaa0d

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