]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: amd: acp: Add generic machine driver support for ACP cards
authorAjit Kumar Pandey <AjitKumar.Pandey@amd.com>
Tue, 19 Oct 2021 07:09:34 +0000 (12:39 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 20 Oct 2021 10:12:53 +0000 (11:12 +0100)
commit37065ae1f0cf40323d98f5177c89e1f62cd35f64
tree88f4e34b53a85a6e71dc9bc1081fcce3be95ad52
parentb7acde003667e71eb759b4c58cfb82e52ebe3746
ASoC: amd: acp: Add generic machine driver support for ACP cards

We have machines with different audio endpoints configurations
across various distributions. We need to support multiple sound
cards for different combinations of I2S instance and codecs hw.
Now we also need to support SOF-DSP endpoints based sound cards.
All such card combinations slightly differs in terms of machine
ops callback. This patch adds ACP generic machine driver module
that exposes method to create ACP cards dai links and define new
ops for audio endpoints configurations. Initially we have added
dailink support for RT5682 and RT1019 codec connection with ACP
I2S_SP instance. We will add newer codecs in this module to use
this for all AMD's ACP block sound cards supports in future.

Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
Link: https://lore.kernel.org/r/20211019070938.5076-5-AjitKumar.Pandey@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/Kconfig
sound/soc/amd/acp/Makefile
sound/soc/amd/acp/acp-mach-common.c [new file with mode: 0644]
sound/soc/amd/acp/acp-mach.h [new file with mode: 0644]